dotar/vim/settings/gotofile.vim
2015-07-26 21:56:08 -05:00

7 lines
257 B
VimL

" Automatically jump to a file at the correct line number
" i.e. if your cursor is over /some/path.rb:50 then using 'gf' on it will take
" you to that line
" use ,gf to go to file in a vertical split
nnoremap <silent> ,gf :vertical botright wincmd F<CR>