Don't mess with the cursor on commit or rebase stuff either.

Fri, 03 Feb 2017 15:50:12 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 03 Feb 2017 15:50:12 -0500
changeset 498
238a0de521e6
parent 497
5df02ebeedf9
child 499
47fcadea275e

Don't mess with the cursor on commit or rebase stuff either.

.vimrc file | annotate | diff | comparison | revisions
--- a/.vimrc
+++ b/.vimrc
@@ -302,7 +302,7 @@ augroup vimrc
 
   " Jump to last known pos
   autocmd BufReadPost *
-    \ if &filetype != 'mail' && line("'\"") >= 1 && line("'\"") <= line("$") |
+    \ if &filetype !~ 'mail\|^git\|^hg' && line("'\"") >= 1 && line("'\"") <= line("$") |
     \   exe "normal! g`\"" |
     \ endif
 

mercurial