dotar/vim/plugin/settings/gotofile.vim
Yan Pritzker f2288cd94e Made ,gf / ctrl-f aware of line numbers
Now you can `,gf` or can `ctrl-f` file.rb:123
2012-09-27 11:12:38 -07:00

8 lines
313 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>
nnoremap <silent> <C-F> :vertical botright wincmd F<CR>