vim last position

if has("autocmd")
  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif

  

posted @ 2018-11-08 20:36  hao.ma  阅读(123)  评论(0)    收藏  举报