dotar/SpaceVim.d/autoload/gotofile.vim
2020-02-10 10:56:29 +08: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>