| DiffGoFile : Jump to file from diff output 
 
 
  | script karma | Rating 11/7,
    Downloaded by 1208 | Comments, bugs, improvements | Vim wiki |  
 
script versions (upload new version)| created by |  | Vladimir Marek |  |  |  | script type |  | utility |  |  |  | description |  | Script home: https://github.com/vlmarek/DiffGoFile 
 
 Description:
 If you are editing diff file and you want to jump quickly to corresponding source files, function DiffGoFile does that. Place cursor on the spot in diff file which interests you, call DiffGoFile and you will be presented with the source file exactly at the place you were looking at. Currently only unified diff is supported, but the script has framework for adding more types.
 
 Invocation:
 Place cursor on the line you are interested in and
 :call DiffGoFile('X')
 Where X is one of: n - open in New window
 v - open in Vertical split
 h - open in Horizontal split
 t - open in new Tab
 
 Configuration:
 You may wish to setup a hotkey, I'm using CTRL-] (:tag) for example
 
 autocmd FileType diff nnoremap <buffer> <C-]> :call DiffGoFile('n')<CR>
 
 |  |  |  | install details |  | If you are upgrading from version 1 - remove ~/.vim/plugin/diffgofile.vim
 
 Copy the file to the proper location
 - mkdir -p ~/.vim/ftplugin
 - cp diff_gofile.vim ~/.vim/ftplugin
 
 Make sure that you are using ftplugins
 - add "filetype plugin on" to your ~/.vimrc
 
 |  |  |  
Click on the package to download.
 
ip used for rating: 216.73.216.155 |