Skip to content

Instantly share code, notes, and snippets.

@skwp
Created March 13, 2012 19:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skwp/2031016 to your computer and use it in GitHub Desktop.
Save skwp/2031016 to your computer and use it in GitHub Desktop.
vim navigate to vertical splits
" use ,F to jump to tag in a vertical split
nnoremap <silent> ,F :let word=expand("<cword>")<CR>:vsp<CR>:wincmd w<cr>:exec("tag ". word)<cr>
" use ,gf to go to file in a vertical split
nnoremap <silent> ,gf :vertical botright wincmd f<CR>
" see more at http://skwp.github.com/dotfiles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment