FunWithElectronics.com
          - Collection of Information for those with Electronics as a Hobby
Up one level (Linux command line)

Make vim restore last line position





Add this to the end of /etc/vim/vimrc:
function! ResCur()
  if line("'\"") <= line("$")
    normal! g`"
    return 1
  endif
endfunction

augroup resCur
  autocmd!
  autocmd BufWinEnter * call ResCur()
augroup END



Add a comment:

Fill in number
Name:
Title:
Text:
 


Privacy | Contact