Skip to content

Instantly share code, notes, and snippets.

@stepancheg
Created August 29, 2012 14:49
Show Gist options
  • Save stepancheg/3513729 to your computer and use it in GitHub Desktop.
Save stepancheg/3513729 to your computer and use it in GitHub Desktop.
function! ResCur()
if line("'\"") <= line("$")
normal! g`"
return 1
endif
endfunction
augroup resCur
autocmd!
autocmd BufWinEnter * call ResCur()
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment