Explorar el Código

~/.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 %!s(int64=12) %!d(string=hace) años
padre
commit
822a2adf98
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      .vimrc

+ 4 - 0
.vimrc

@ -24,6 +24,10 @@ if isdirectory($HOME . '/.vim/bundle/vundle')
24 24
	Bundle 'terryma/vim-multiple-cursors'
25 25
26 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 31
endif
28 32
29 33
" Have syntax highlighting and non-vi features