From a08f4a7cebca16a689d71a862d2183deebcc37f9 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 18 Nov 2019 13:48:13 +0100 Subject: [PATCH] Add GitOrig command to vim --- git.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/git.vim b/git.vim index 3183168..9de8379 100644 --- a/git.vim +++ b/git.vim @@ -198,6 +198,7 @@ command! Uncommited try \| echo 'Not a git repo!' \| endtry command! GitRoot call cd_git_root('.') +command! GitOrig exec 'e '.b:git_original_file command! ShowGitRoot try \| echo gitroot() \| catch | echo 'Not a git repository'