Vim start with cursor where last went off [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . How do i make Vim always start at the line I was at when i exited that given file last time? 回答1: Put this in your .vimrc: " When editing a file, always jump to the last cursor position au BufReadPost * \ if ! exists("g:leave_my_cursor_position_alone") | \ if line("'\"") > 0 && line ("'\"") <= line("$") | \ exe