Made ,gf / ctrl-f aware of line numbers
Now you can `,gf` or can `ctrl-f` file.rb:123
This commit is contained in:
7
vim/plugin/settings/gotofile.vim
Normal file
7
vim/plugin/settings/gotofile.vim
Normal file
@@ -0,0 +1,7 @@
|
||||
" 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>
|
||||
@@ -133,9 +133,6 @@ nnoremap <silent> ,f <C-]>
|
||||
" 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>
|
||||
|
||||
|
||||
"Move back and forth through previous and next buffers
|
||||
"with ,z and ,x
|
||||
|
||||
Reference in New Issue
Block a user