Add GitOrig command to vim
This commit is contained in:
parent
bae0247305
commit
a08f4a7ceb
1 changed files with 1 additions and 0 deletions
1
git.vim
1
git.vim
|
@ -198,6 +198,7 @@ command! Uncommited try
|
||||||
\| echo 'Not a git repo!'
|
\| echo 'Not a git repo!'
|
||||||
\| endtry
|
\| endtry
|
||||||
command! GitRoot call <SID>cd_git_root('.')
|
command! GitRoot call <SID>cd_git_root('.')
|
||||||
|
command! GitOrig exec 'e '.b:git_original_file
|
||||||
command! ShowGitRoot try
|
command! ShowGitRoot try
|
||||||
\| echo <sid>gitroot()
|
\| echo <sid>gitroot()
|
||||||
\| catch | echo 'Not a git repository'
|
\| catch | echo 'Not a git repository'
|
||||||
|
|
Loading…
Reference in a new issue