Tip: #492 - Jump to file from CVSDiff output
Created: June 24, 2003 2:07 Complexity: basic Author: daniel kullmann Version: 5.7 Karma: 1/1 Imported from: Tip#492
I use :CVSDiff from cvscommand.vim quite often to get an overview of the changes i made to a file.
I always want to jump from the diff to the corresponding line in the original file.
So I wrote a small script that does that, and put it in $VIM/after/syntax/diff.vim
Pressing <Return> will execute that script.
function! DiffJumpToFile()
let a=line(".") " current line number
let b=search("^\\(---\\