On 7/10/06, dave--uk <[EMAIL PROTECTED]> wrote:
2) when i edited a file, vim remembered the last position I was at
For this to work, you need certain definitions in your ~/.vimrc. 1) You need some definition for 'viminfo' option, for example: set viminfo='20,<50,s10,:20,h ( does not need to be exactly like this. See :help 'viminfo') 2) You need specific BufReadPost autocommand in your ~/.vimrc, which looks like this: :au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif or like this: autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g`\"" | \ endif or like this: if has("autocmd") "... augroup vimrcEx au! "... autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g`\"" | \ endif augroup END " ... endif Yakov