Created
November 8, 2012 17:11
-
-
Save zah/4040134 to your computer and use it in GitHub Desktop.
vim jump to definition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun! JumpToDef() | |
if exists("*GotoDefinition_" . &filetype) | |
call GotoDefinition_{&filetype}() | |
else | |
exe "norm! \<C-]>" | |
endif | |
endf | |
" Jump to tag | |
nn <M-g> :call JumpToDef()<cr> | |
ino <M-g> <esc>:call JumpToDef()<cr>i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment