On Saturday, March 15, 2014 8:20:49 PM UTC+5:30, Ben Fritz wrote:
> On Saturday, March 15, 2014 9:00:59 AM UTC-5, Arup Rakshit wrote:
> > Hi,
> >
> > From the doc I got the line :
> >
> > This autocommand jumps to the last known position in a file just after
> > opening it, if the '" mark is set:
> > :au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe
> > "normal! g`\"" | endif
> >
> > How to set *'" mark is set* ?
> >
>
> From elsewhere in the help (:help '") you can see that this mark gets set
> automatically whenever you quit a buffer. It stores the last position in the
> buffer before quitting it. By default, this mark gets stored in your .viminfo
> file when you exit Vim, so it gets remembered between editing sessions also.
Hi,
I put the line in my ~/.vimrc file :
:au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal!
g`\"" | endif
Now upon exiting, when I open the vim and try :"", I didn't get the file back,
which I wanted resume.
What wrong am I doing? Any pointer please.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.