Просмотр исходного кода

~/.vimrc: Add handy bindings for ternjs.vim.

Of these, `cw` is kind of troubling, because it also tries to "rename"
non-variables (e.g. in strings or comments).
Lucas Stadler лет назад: 12
Родитель
Сommit
822a2adf98
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      .vimrc

+ 4 - 0
.vimrc

24
	Bundle 'terryma/vim-multiple-cursors'
24
	Bundle 'terryma/vim-multiple-cursors'
25
25
26
	Bundle 'marijnh/tern_for_vim'
26
	Bundle 'marijnh/tern_for_vim'
27
	au FileType javascript nnoremap <buffer> gd :TernDef<cr>
28
	au FileType javascript nnoremap <buffer> gu :TernRefs<cr>
29
	au FileType javascript nnoremap <buffer> gt :TernType<cr>
30
	au FileType javascript nnoremap <buffer> cw :TernRename<cr>
27
endif
31
endif
28
32
29
" Have syntax highlighting and non-vi features
33
" Have syntax highlighting and non-vi features