Add GitOrig command to vim

This commit is contained in:
Talia 2019-11-18 13:48:13 +01:00
parent bae0247305
commit a08f4a7ceb

View file

@ -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'