do not set cursor position to last editing position for git commit messages
This commit is contained in:
parent
40a3ce0dea
commit
848779f332
2
vimrc
2
vimrc
@ -165,7 +165,7 @@ if has("autocmd")
|
||||
" Don't do it when the position is invalid or when inside an event handler
|
||||
" (happens when dropping a file on gvim).
|
||||
autocmd BufReadPost *
|
||||
\ if line("'\"") > 0 && line("'\"") <= line("$") |
|
||||
\ if (bufname("%") =~ "COMMIT_EDITMSG") == 0 && line("'\"") > 0 && line("'\"") <= line("$") |
|
||||
\ exe "normal! g`\"" |
|
||||
\ endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user