[vim] fix cursor restoration w/vim-vinegar

pull/28/head
Alpha Chen 7 years ago
parent 37eb2bdc6a
commit a51fdb60ff

@ -88,7 +88,8 @@ set virtualedit=block
set noshowmode
function! RestoreCursor()
if line("'\"") <= line("$")
let pos = line("'\"")
if pos > 0 && pos <= line("$")
normal! g`"zz
return 1
endif

Loading…
Cancel
Save