Make vim remember last location
Asked by
U N Gaitonde
I am unable to find a setting that makes vim remember the line where it was the last time a file was edited.
For example:
Action 1: Open a file 'file1' in vim. Do some editing. Note that the cursor is in line 'nnn' at end of editing session. Save a quit using either ZZ or :wq.
Action 2: After some time, open the same file 'file1' in vim.
Note that the cursor is on line 1, column 1.
Prefer to have the cursor anyone on line 'nnn'.
Any help will be appreciated!
My Ubuntu is 8.10.
Vim version info is as follows:
VIM - Vi IMproved 7.1 (2007 May 12, compiled Jul 21 2008 13:41:18)
Included patches: 1-314
Compiled by <email address hidden>
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu vim Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Dominik Stadler
- Solved:
- Last query:
- Last reply:
To post a message you must log in.