Browse Source

~/.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 years ago
parent
commit
822a2adf98
1 changed files with 4 additions and 0 deletions
  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