Mercurial > dotfiles.old
annotate vimrc @ 34:3ed98613040a
Add mapping to switch between tabs in vim
author | zegervdv <zegervdv@me.com> |
---|---|
date | Tue, 08 Apr 2014 18:40:54 +0200 |
parents | 3bc2e4f5cc59 |
children | 63f450f5c3fb |
rev | line source |
---|---|
27 | 1 " vim:fdm=marker |
2 | |
3 " General Settings {{{ | |
0 | 4 set nocompatible |
5 set laststatus=2 | |
6 set noshowmode | |
7 | |
8 execute pathogen#infect() | |
9 | |
10 set backspace=2 | |
11 set autowrite | |
12 | |
13 set vb | |
14 set guioptions-=r | |
15 set guioptions-=l | |
16 set guioptions-=R | |
17 set guioptions-=L | |
18 | |
19 syntax on | |
20 set expandtab | |
21 set number | |
22 set ruler | |
23 set nocursorline | |
24 set showmatch | |
25 set title | |
26 set wrap | |
27 set wrapmargin=2 | |
28 set linebreak | |
29 set lbr | |
30 set tabstop=2 shiftwidth=2 | |
21
bf5c5093bad9
Add Base16-Ocean-Dark colorscheme
zegervdv <zegervdv@me.com>
parents:
19
diff
changeset
|
31 if has("gui_running") |
bf5c5093bad9
Add Base16-Ocean-Dark colorscheme
zegervdv <zegervdv@me.com>
parents:
19
diff
changeset
|
32 set background=dark |
22 | 33 color hybrid |
21
bf5c5093bad9
Add Base16-Ocean-Dark colorscheme
zegervdv <zegervdv@me.com>
parents:
19
diff
changeset
|
34 else |
bf5c5093bad9
Add Base16-Ocean-Dark colorscheme
zegervdv <zegervdv@me.com>
parents:
19
diff
changeset
|
35 color hybrid |
bf5c5093bad9
Add Base16-Ocean-Dark colorscheme
zegervdv <zegervdv@me.com>
parents:
19
diff
changeset
|
36 endif |
0 | 37 set guifont=Inconsolata\ for\ Powerline:h12 |
38 set autowrite | |
39 set hidden | |
40 set hlsearch | |
41 set incsearch | |
42 set ignorecase | |
32
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
29
diff
changeset
|
43 set gdefault |
0 | 44 set smartcase |
45 set smartindent | |
46 set autoindent | |
47 set scrolloff=4 | |
48 set textwidth=80 | |
49 | |
50 set history=100 | |
51 set wildmenu | |
19 | 52 set wildmode=full |
0 | 53 |
54 set diffopt+=iwhite | |
55 | |
56 set formatoptions= | |
57 set formatoptions+=c " Format comments | |
58 set formatoptions+=r " Continue comments by default | |
59 set formatoptions+=o " Make comment when using o or O from comment line | |
60 set formatoptions+=q " Format comments with gq | |
61 set formatoptions+=n " Recognize numbered lists | |
62 set formatoptions+=2 " Use indent from 2nd line of a paragraph | |
63 set formatoptions+=l " Don't break lines that are already long | |
64 set formatoptions+=1 " Break before 1-letter words | |
65 | |
66 set splitright | |
67 set virtualedit=block | |
68 set conceallevel=0 | |
69 | |
70 set cryptmethod=blowfish | |
71 | |
72 filetype plugin indent on | |
73 autocmd FileType ruby set tabstop=2|set shiftwidth=2 | |
74 | |
75 set clipboard=unnamed | |
76 | |
32
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
29
diff
changeset
|
77 set undofile |
16 | 78 set viminfo='10,\"100,:20,%,n~/.viminfo |
32
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
29
diff
changeset
|
79 |
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
29
diff
changeset
|
80 " set list |
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
29
diff
changeset
|
81 " set listchars=tab:▸\ ,eol:¬ |
27 | 82 " }}} |
83 " Custom remaps and tricks {{{ | |
16 | 84 " When editing a file, always jump to the last known cursor position. |
85 " Don't do it for commit messages, when the position is invalid, or when | |
86 " inside an event handler (happens when dropping a file on gvim). | |
87 autocmd BufReadPost * | |
88 \ if &ft != 'gitcommit' && line("'\"") > 0 && line("'\"") <= line("$") | | |
89 \ exe "normal g`\"" | | |
90 \ endif | |
0 | 91 |
92 map <Leader>d :bp<bar>sp<bar>bn<bar>bd<CR> | |
93 | |
94 " See long lines as line breaks | |
95 map j gj | |
96 map k gk | |
97 | |
98 " remap tag-search to better place | |
99 nmap <C-$> <C-]> | |
100 | |
101 " Jump to end of line in insert mode | |
33 | 102 inoremap <C-a> <C-o>I |
0 | 103 inoremap <C-e> <C-o>A |
104 | |
33 | 105 nnoremap <C-a> ^ |
106 nnoremap <C-e> $ | |
107 | |
108 nnoremap + <C-a> | |
109 | |
110 " Jump out of inner bracket | |
111 inoremap <C-f> <ESC>%%a | |
0 | 112 |
4
050d4d8c6796
Vim: use double space to alternate files
zegervdv <zegervdv@me.com>
parents:
3
diff
changeset
|
113 " Switch between the last two files |
050d4d8c6796
Vim: use double space to alternate files
zegervdv <zegervdv@me.com>
parents:
3
diff
changeset
|
114 nnoremap <SPACE><SPACE> <C-^> |
050d4d8c6796
Vim: use double space to alternate files
zegervdv <zegervdv@me.com>
parents:
3
diff
changeset
|
115 |
0 | 116 " Very Magic search patterns |
117 nmap / /\v | |
118 cmap s/ s/\v | |
119 | |
120 inoremap £ \ | |
121 | |
32
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
29
diff
changeset
|
122 nnoremap <TAB> % |
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
29
diff
changeset
|
123 vnoremap <TAB> % |
0 | 124 |
32
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
29
diff
changeset
|
125 " Move between windows |
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
29
diff
changeset
|
126 nnoremap <C-l> <C-w><C-l> |
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
29
diff
changeset
|
127 nnoremap <C-h> <C-w><C-h> |
34
3ed98613040a
Add mapping to switch between tabs in vim
zegervdv <zegervdv@me.com>
parents:
33
diff
changeset
|
128 nnoremap <C-j> <C-w>j |
32
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
29
diff
changeset
|
129 nnoremap <C-k> <C-w><C-k> |
24 | 130 |
34
3ed98613040a
Add mapping to switch between tabs in vim
zegervdv <zegervdv@me.com>
parents:
33
diff
changeset
|
131 nnoremap <C-S-TAB> :tabprevious<CR> |
3ed98613040a
Add mapping to switch between tabs in vim
zegervdv <zegervdv@me.com>
parents:
33
diff
changeset
|
132 nnoremap <C-TAB> :tabnext<CR> |
3ed98613040a
Add mapping to switch between tabs in vim
zegervdv <zegervdv@me.com>
parents:
33
diff
changeset
|
133 inoremap <C-S-TAB> <ESC>:tabprevious<CR> |
3ed98613040a
Add mapping to switch between tabs in vim
zegervdv <zegervdv@me.com>
parents:
33
diff
changeset
|
134 inoremap <C-TAB> <ESC>:tabnext<CR> |
3ed98613040a
Add mapping to switch between tabs in vim
zegervdv <zegervdv@me.com>
parents:
33
diff
changeset
|
135 |
33 | 136 " highlight last inserted text |
137 nnoremap gV `[v`] | |
138 | |
139 " Briefly change colour of last highlight | |
0 | 140 nnoremap <silent> n n:call HLNext(0.4)<cr> |
141 nnoremap <silent> N N:call HLNext(0.4)<cr> | |
142 | |
143 function! HLNext (blinktime) | |
144 highlight WhiteOnRed ctermfg=white ctermbg=red guifg=white guibg=red | |
145 let [bufnum, lnum, col, off] = getpos('.') | |
146 let matchlen = strlen(matchstr(strpart(getline('.'),col-1),@/)) | |
147 let target_pat = '\c\%#'.@/ | |
148 let ring = matchadd('WhiteOnRed', target_pat, 101) | |
149 redraw | |
150 exec 'sleep ' . float2nr(a:blinktime * 1000) . 'm' | |
151 call matchdelete(ring) | |
152 redraw | |
153 endfunction | |
154 | |
155 " Swap v and CTRL-V | |
156 nnoremap v <C-V> | |
157 nnoremap <C-V> v | |
158 | |
159 vnoremap v <C-V> | |
160 vnoremap <C-V> v | |
161 | |
162 " Use backspace as delete in visual mode | |
163 vmap <BS> x | |
164 | |
165 " Keep selection when shifting | |
166 vmap <expr> > KeepVisualSelection(">") | |
167 vmap <expr> < KeepVisualSelection("<") | |
168 | |
169 function! KeepVisualSelection(cmd) | |
170 set nosmartindent | |
171 if mode() ==# "V" | |
172 return a:cmd . ":set smartindent\<CR>gv" | |
173 else | |
174 return a:cmd . ":set smartindent\<CR>" | |
175 endif | |
176 endfunction | |
177 | |
178 let g:indent_guides_auto_colors = 0 | |
179 let g:indent_guides_guide_size = 1 | |
180 highlight IndentGuidesEven guibg=background | |
181 highlight IndentGuidesOdd guibg='#282a2e' | |
182 | |
27 | 183 " }}} |
184 " Plugin Settings {{{ | |
0 | 185 " Vim Math plugin; make simple calculations |
186 vmap <expr> ++ VMATH_YankAndAnalyse() | |
187 nmap ++ vip++ | |
188 | |
189 " Airline configuration | |
190 let g:airline_inactive_collapse=0 | |
191 let g:airline_powerline_fonts=1 | |
192 | |
193 let g:airline_left_sep = '' | |
194 let g:airline_right_sep = '' | |
195 | |
196 let g:airline_theme = 'tomorrow' | |
197 | |
198 let g:airline#extensions#syntastic#enabled = 0 | |
199 | |
200 nnoremap <F5> :buffers<CR>:buffer<Space> | |
201 | |
202 " Set leader to , | |
203 let mapleader = "," | |
204 | |
205 " Custom key mappings | |
206 | |
207 let g:yankring_replace_n_pkey = 'cp' | |
208 | |
209 " Nerdtree | |
210 map <F2> :NERDTreeToggle<CR> | |
211 map <Leader>e :NERDTreeToggle<CR> | |
212 let NERDTreeIgnore = ['\.aux$', '\.log$', '\.out$'] | |
213 | |
214 " Vim - Rspec | |
215 map <leader>t :call RunCurrentSpecFile()<CR> | |
216 map <leader>s :call RunNearestSpec()<CR> | |
217 map <leader>l :call RunLastSpec()<CR> | |
218 map <leader>r :call RunAllSpecs()<CR> | |
219 | |
220 " Cucumber | |
221 map <leader>f :call RunAllFeatures()<CR> | |
222 map <leader>k :call RunCurrentFeature()<CR> | |
223 | |
224 " Autocomplete | |
225 inoremap <C-Space> <C-N> | |
226 | |
227 " Single char insertion | |
228 " nmap <Space> i_<Esc>r | |
229 | |
230 " Clear highlight | |
231 nnoremap <silent> <leader>n :nohlsearch<CR> | |
232 | |
233 " ctrl p - Fuzzy file finder | |
234 noremap <C-p> :CtrlP<CR> | |
235 let g:ctrl_map = '<c-p>' | |
236 let g:ctrl_cmd = 'CtrlP' | |
237 | |
33 | 238 nnoremap <C-o> :CtrlPBuffer<CR> |
32
2da8d8daa033
Add remaps to vim and aliases to zsh
zegervdv <zegervdv@me.com>
parents:
29
diff
changeset
|
239 " map <C-m> :CtrlPTag<CR> |
0 | 240 |
5 | 241 if executable('ag') |
242 let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' | |
243 let g:ctrlp_use_caching = 0 | |
244 endif | |
245 | |
0 | 246 " ctrl p - Commands |
247 map <leader>p :CtrlPCmdPalette<CR> | |
248 | |
249 " Markdown | |
250 let g:vim_markdown_folding_disabled=1 | |
251 | |
252 " tComment remap | |
253 nmap <leader>c <C-_><C-_> | |
254 | |
255 " Neo Complete | |
29 | 256 let g:acp_enableAtStartup = 0 |
257 let g:neocomplete#enable_at_startup = 1 | |
258 let g:neocomplete#enable_smart_case = 1 | |
259 let g:neocomplete#enable_fuzzy_completion = 1 | |
260 let g:neocomplete#sources#syntax#min_keyword_length = 3 | |
261 let g:neocomplete#lock_buffer_name_pattern = '\*ku\*' | |
0 | 262 |
263 " Define dictionary. | |
264 let g:neocomplete#sources#dictionary#dictionaries = { | |
265 \ 'default' : '', | |
266 \ 'vimshell' : $HOME.'/.vimshell_hist', | |
267 \ 'scheme' : $HOME.'/.gosh_completions' | |
268 \ } | |
27 | 269 |
270 " Define keyword. | |
271 if !exists('g:neocomplete#keyword_patterns') | |
272 let g:neocomplete#keyword_patterns = {} | |
273 endif | |
274 | |
275 let g:neocomplete#keyword_patterns['default'] = '\h\w*' | |
0 | 276 " Recommended key-mappings. |
277 " <CR>: close popup and save indent. | |
278 inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR> | |
279 function! s:my_cr_function() | |
29 | 280 " return neocomplete#close_popup() . "\<CR>" |
0 | 281 " For no inserting <CR> key. |
29 | 282 return pumvisible() ? neocomplete#close_popup() : "\<CR>" |
0 | 283 endfunction |
284 " <TAB>: completion. | |
285 inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" | |
286 " <C-h>, <BS>: close popup and delete backword char. | |
287 inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>" | |
288 | |
28 | 289 let s:clang_library_path='/Library/Developer/CommandLineTools/usr/lib' |
290 if isdirectory(s:clang_library_path) | |
291 let g:clang_library_path=s:clang_library_path | |
292 endif | |
293 let g:clang_complete_auto = 0 | |
294 let g:clang_auto_select = 0 | |
29 | 295 let g:clang_use_library = 1 |
28 | 296 |
0 | 297 autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS |
298 autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags | |
299 autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS | |
300 autocmd FileType python setlocal omnifunc=pythoncomplete#Complete | |
301 autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags | |
302 autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete | |
303 if !exists('g:neocomplete#sources#omni#input_patterns') | |
304 let g:neocomplete#sources#omni#input_patterns = {} | |
305 endif | |
306 | |
26 | 307 " autocmd FileType c NeoCompleteTagMakeCache |
24 | 308 |
0 | 309 " Neo Snippets |
310 imap <C-k> <Plug>(neosnippet_expand_or_jump) | |
311 smap <C-k> <Plug>(neosnippet_expand_or_jump) | |
312 xmap <C-k> <Plug>(neosnippet_expand_target) | |
313 | |
23
4112c6eb9f47
Correct tab completion with snippets
zegervdv <zegervdv@me.com>
parents:
22
diff
changeset
|
314 " imap <expr><TAB> neosnippet#expandable_or_jumpable() ? |
4112c6eb9f47
Correct tab completion with snippets
zegervdv <zegervdv@me.com>
parents:
22
diff
changeset
|
315 " \ "\<Plug>(neosnippet_expand_or_jump)" |
4112c6eb9f47
Correct tab completion with snippets
zegervdv <zegervdv@me.com>
parents:
22
diff
changeset
|
316 " \: pumvisible() ? "\<C-n>" : "\<TAB>" |
4112c6eb9f47
Correct tab completion with snippets
zegervdv <zegervdv@me.com>
parents:
22
diff
changeset
|
317 " smap <expr><TAB> neosnippet#expandable_or_jumpable() ? |
4112c6eb9f47
Correct tab completion with snippets
zegervdv <zegervdv@me.com>
parents:
22
diff
changeset
|
318 " \ "\<Plug>(neosnippet_expand_or_jump)" |
4112c6eb9f47
Correct tab completion with snippets
zegervdv <zegervdv@me.com>
parents:
22
diff
changeset
|
319 " \: "\<TAB>" |
4112c6eb9f47
Correct tab completion with snippets
zegervdv <zegervdv@me.com>
parents:
22
diff
changeset
|
320 |
4112c6eb9f47
Correct tab completion with snippets
zegervdv <zegervdv@me.com>
parents:
22
diff
changeset
|
321 |
4112c6eb9f47
Correct tab completion with snippets
zegervdv <zegervdv@me.com>
parents:
22
diff
changeset
|
322 imap <expr><TAB> neosnippet#expandable() == 1 ? "\<Plug>(neosnippet_expand_or_jump)" : pumvisible() ? "\<C-n>" : "\<TAB>" |
4112c6eb9f47
Correct tab completion with snippets
zegervdv <zegervdv@me.com>
parents:
22
diff
changeset
|
323 imap <expr><C-k> neosnippet#expandable_or_jumpable() == 1 ? "\<Plug>(neosnippet_expand_or_jump)" : pumvisible() ? "\<C-n>" : "\<TAB>" |
4112c6eb9f47
Correct tab completion with snippets
zegervdv <zegervdv@me.com>
parents:
22
diff
changeset
|
324 smap <expr><TAB> neosnippet#expandable() == 1 ? "\<Plug>(neosnippet_expand_or_jump)" : pumvisible() ? "\<C-n>" : "\<TAB>" |
0 | 325 let g:neocomplete#sources#omni#input_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::' |
326 | |
327 let g:neosnippet#snippets_directory='~/.vim/snippets' | |
328 | |
329 " Tabular | |
330 inoremap <silent> <Bar> <Bar><Esc>:call <SID>align()<CR>a | |
331 | |
332 function! s:align() | |
333 let p = '^\s*|\s.*\s|\s*$' | |
334 if exists(':Tabularize') && getline('.') =~# '^\s*|' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p) | |
335 let column = strlen(substitute(getline('.')[0:col('.')],'[^|]','','g')) | |
336 let position = strlen(matchstr(getline('.')[0:col('.')],'.*|\s*\zs.*')) | |
337 Tabularize/|/l1 | |
338 normal! 0 | |
339 call search(repeat('[^|]*|',column).'\s\{-\}'.repeat('.',position),'ce',line('.')) | |
340 endif | |
341 endfunction | |
342 | |
343 " Align Migration files | |
344 vmap <c-a> :Tabularize /:/l1l0l0<CR> | |
345 | |
346 nmap <Leader>a= :Tabularize /=<CR> | |
347 vmap <Leader>a= :Tabularize /=<CR> | |
348 nmap <Leader>a=> :Tabularize /=><CR> | |
349 vmap <Leader>a=> :Tabularize /=><CR> | |
350 nmap <Leader>a: :Tabularize /:\zs/l0l1<CR> | |
351 vmap <Leader>a: :Tabularize /:\zs/l0l1<CR> | |
352 nmap <Leader>a, :Tabularize /,\zs/l0l1<CR> | |
353 vmap <Leader>a, :Tabularize /,\zs/l0l1<CR> | |
354 vmap <Leader>a- :Tabularize /-<CR> | |
355 | |
356 | |
357 | |
358 augroup markdown | |
359 au! | |
360 au BufNewFile,BufRead *.md,*.markdown setlocal filetype=ghmarkdown | |
361 augroup END | |
362 | |
363 | |
364 " Latex plugin | |
365 au BufNewFile,BufRead,BufEnter *.tex setlocal spell spelllang=en_gb | |
366 au BufNewFile,BufRead,BufEnter *.tex setlocal textwidth=0 | |
367 au BufNewFile,BufRead,BufEnter *.txt setlocal spell spelllang=en_gb | |
368 au BufNewFile,BufRead,BufEnter *.txt setlocal textwidth=0 | |
369 | |
370 let g:tex_conseal = "" | |
371 | |
372 let g:tex_comment_nospell=1 | |
373 let g:Tex_DefaultTargetFormat = 'pdf' | |
374 let g:tex_flavor = 'latex' | |
375 let g:Tex_TreatMacViewerAsUNIX = 1 | |
376 let g:Tex_ExecuterUNIXViewerInForeground = 1 | |
377 let g:Tex_ViewRule_pdf = 'open -a Preview' | |
378 let g:Tex_ViewRule_ps = 'open -a Preview' | |
379 | |
380 " Tagbar mapping | |
381 nmap <F8> :TagbarToggle<CR> | |
382 | |
383 " The silver searcher | |
384 " let g:ackprg = 'ag --nogroup --nocolor --column' | |
385 | |
386 " Multiple cursor insert | |
387 let g:multi_cursor_next_key='<C-n>' | |
388 let g:multi_cursor_prev_key='<C-m>' | |
389 let g:multi_cursor_skip_key='<C-x>' | |
390 let g:multi_cursor_quit_key='<Esc>' | |
391 | |
392 " Gundo tree | |
393 nnoremap <leader>u :GundoToggle<CR> | |
394 | |
395 " Yank ring | |
396 nnoremap <silent> <leader>y :YRShow<CR> | |
397 | |
13 | 398 " Open pdf in Preview |
0 | 399 let g:livepreview_previewer = 'open -a Preview' |
3
44d3af8838f8
Add support for local zshrc and vimrc files
zegervdv <zegervdv@me.com>
parents:
0
diff
changeset
|
400 |
13 | 401 |
402 " Smalls | |
403 nmap s <Plug>(smalls) | |
404 omap s <Plug>(smalls) | |
405 xmap s <Plug>(smalls) | |
406 | |
14
09c60bc0fc38
Add vim-textmanip for visual block dragging
zegervdv <zegervdv@me.com>
parents:
13
diff
changeset
|
407 " Textmanip |
09c60bc0fc38
Add vim-textmanip for visual block dragging
zegervdv <zegervdv@me.com>
parents:
13
diff
changeset
|
408 xmap <C-j> <Plug>(textmanip-move-down) |
09c60bc0fc38
Add vim-textmanip for visual block dragging
zegervdv <zegervdv@me.com>
parents:
13
diff
changeset
|
409 xmap <C-k> <Plug>(textmanip-move-up) |
09c60bc0fc38
Add vim-textmanip for visual block dragging
zegervdv <zegervdv@me.com>
parents:
13
diff
changeset
|
410 xmap <C-h> <Plug>(textmanip-move-left) |
09c60bc0fc38
Add vim-textmanip for visual block dragging
zegervdv <zegervdv@me.com>
parents:
13
diff
changeset
|
411 xmap <C-l> <Plug>(textmanip-move-right) |
09c60bc0fc38
Add vim-textmanip for visual block dragging
zegervdv <zegervdv@me.com>
parents:
13
diff
changeset
|
412 xmap <F10> <Plug>(textmanip-toggle-mode) |
09c60bc0fc38
Add vim-textmanip for visual block dragging
zegervdv <zegervdv@me.com>
parents:
13
diff
changeset
|
413 |
27 | 414 let g:startify_session_dir = "~/.vim/sessions" |
415 " }}} | |
416 | |
13 | 417 " Load local vimrc |
3
44d3af8838f8
Add support for local zshrc and vimrc files
zegervdv <zegervdv@me.com>
parents:
0
diff
changeset
|
418 if filereadable($HOME . "/.vimrc.local") |
44d3af8838f8
Add support for local zshrc and vimrc files
zegervdv <zegervdv@me.com>
parents:
0
diff
changeset
|
419 source ~/.vimrc.local |
44d3af8838f8
Add support for local zshrc and vimrc files
zegervdv <zegervdv@me.com>
parents:
0
diff
changeset
|
420 endif |
24 | 421 |
422 nnoremap <Enter> o<ESC> |