fix-git-diff-path.vim : Fix file paths from git diff output to DoTheRightThing
script karma |
Rating 0/0,
Downloaded by 562 |
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 |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.225.72.113
|