sponsor Vim development Vim logo Vim Book Ad

fix-git-diff-path.vim : Fix file paths from git diff output to DoTheRightThing

 script karma  Rating 0/0, Downloaded by 475  Comments, bugs, improvements  Vim wiki

created by
Adrian LIkins
 
script type
ftplugin
 
description
https://github.com/alikins/vim-fix-git-diff-path

git diff includes a "a/path/to/file" in git diff
output. This is a pain, if you want to cut and
paste that path. This tries to let you just
c&p that entire prefixed path and do the
right thing. Ie, open the file referenced.
It should work anywhere in the git project
of the current working dir. It's mostly
intended for use from the command line but
in theory, any file loading command should work
we well.

bugs: - doesn't work if you are out of the git project
        directory.
      - probably confused if you have an actual file
        name something like a/path/to/file


this is based heavily on file_line.vim form
https://github.com/bogado/file-line
 
install details
https://github.com/alikins/vim-fix-git-diff-path
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-fix-git-diff-path-37.4.0.tar.gz 37.4.0 2012-07-11 7.0 Adrian LIkins Initial upload
ip used for rating: 34.207.178.236

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github