comparison vim/vimrc @ 309:5b7acab16766

Make NERDTree ignore stuff, and other Vim tweaks.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 26 Jun 2015 22:46:41 -0700
parents 01ec865443b6
children de5090faf408
comparison
equal deleted inserted replaced
303:01ec865443b6 309:5b7acab16766
216 augroup END 216 augroup END
217 217
218 " }}} 218 " }}}
219 219
220 " Plugin Settings {{{ 220 " Plugin Settings {{{
221
222 " NERDTree {{{
223
224 let NERDTreeIgnore=['\~$', '*.pyc', '*.pyo']
225
226 " }}}
221 227
222 " Ctrl-P {{{ 228 " Ctrl-P {{{
223 229
224 " We'll set our own mappings. 230 " We'll set our own mappings.
225 let g:ctrlp_map = '' 231 let g:ctrlp_map = ''
384 noremap <end> g<end> 390 noremap <end> g<end>
385 391
386 " Tab navigation 392 " Tab navigation
387 noremap <C-Tab> :tabnext<cr> 393 noremap <C-Tab> :tabnext<cr>
388 noremap <C-S-Tab> :tabprevious<cr> 394 noremap <C-S-Tab> :tabprevious<cr>
395 noremap <C-t> :tabnew<cr>
389 396
390 " Window navigation 397 " Window navigation
391 nnoremap <C-up> :wincmd k<cr> 398 nnoremap <C-up> :wincmd k<cr>
392 nnoremap <C-down> :wincmd j<cr> 399 nnoremap <C-down> :wincmd j<cr>
393 nnoremap <C-left> :wincmd h<cr> 400 nnoremap <C-left> :wincmd h<cr>
488 " the result selection window either. 495 " the result selection window either.
489 nnoremap <c-]> <c-]>zvzz 496 nnoremap <c-]> <c-]>zvzz
490 nnoremap <c-\> <c-w>v<c-]>zMzvzz 497 nnoremap <c-\> <c-w>v<c-]>zMzvzz
491 nnoremap <F9> :tprevious 498 nnoremap <F9> :tprevious
492 nnoremap <F10> :tnext 499 nnoremap <F10> :tnext
500 nnoremap <c-s-]> :pop<cr>
493 501
494 " Keep search matches in the middle of the window. 502 " Keep search matches in the middle of the window.
495 nnoremap n nzvzz 503 nnoremap n nzvzz
496 nnoremap N Nzvzz 504 nnoremap N Nzvzz
497 505