-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
72 lines (58 loc) · 1.22 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
set nocompatible
runtime bundle/pathogen/autoload/pathogen.vim
execute pathogen#infect()
execute pathogen#helptags()
filetype indent plugin on
" Syntax highlighting
syntax on
colorscheme molokai
" Custom leader key
let mapleader=","
" Status line config
set ruler
set showcmd
set showmode
" File encoding
set encoding=utf-8
" Indentation configuration
set autoindent
set expandtab
set shiftwidth=4
set softtabstop=4
set tabstop=4
set smarttab
set shiftround
" Searching configuration
set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set hlsearch
nnoremap <leader><space> :noh<cr>
" Editing configuration
set scrolloff=3
set backspace=indent,eol,start
set nonumber
set numberwidth=4
nnoremap <leader>n :set number!<CR>
nnoremap <leader>N :set relativenumber!<CR>
set autoread
set hidden
" Completion configuration
set wildmenu
set wildmode=longest:list
set wildignorecase
" Spelling
set nospell
nnoremap <leader>s :setlocal spell!<CR>
set spelllang=en_nz
" history
set history=2000
set undolevels=2000
" Don't show invisibles, but allow them to be turned on with ,i
set nolist
set listchars=tab:▸\ ,trail:.
nnoremap <leader>i :setlocal list!<CR>
" Reload vimrc with ,r
nnoremap <leader>r :source ~/.vimrc<cr>