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* ?
On Saturday, March 15, 2014 5:55:21 PM UTC+5:30, Eike Rathke wrote:
> Hi Arup,
>
>
>
> On Friday, 2014-03-14 16:46:51 -0700, Arup Rakshit wrote:
>
>
>
> > [... jump to the last position when reopening a file ...]
>
>
>
> In your .vimrc have
>
>
>
> au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
>
>
>
> Taken from :h last-position-jump
>
> Works like a charme.
>
>
>
> Eike
>
>
>
> --
>
> OpenPGP/GnuPG encrypted mail preferred in all private communication.
>
> Key ID: 0x65632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
>
> Support the FSFE, care about Free Software! https://fsfe.org/support/?erack
>
> Use LibreOffice! https://www.libreoffice.org/
On Saturday, March 15, 2014 5:55:21 PM UTC+5:30, Eike Rathke wrote:
> Hi Arup,
>
>
>
> On Friday, 2014-03-14 16:46:51 -0700, Arup Rakshit wrote:
>
>
>
> > [... jump to the last position when reopening a file ...]
>
>
>
> In your .vimrc have
>
>
>
> au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
>
>
>
> Taken from :h last-position-jump
>
> Works like a charme.
>
>
>
> Eike
>
>
>
> --
>
> OpenPGP/GnuPG encrypted mail preferred in all private communication.
>
> Key ID: 0x65632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
>
> Support the FSFE, care about Free Software! https://fsfe.org/support/?erack
>
> Use LibreOffice! https://www.libreoffice.org/
On Saturday, March 15, 2014 5:55:21 PM UTC+5:30, Eike Rathke wrote:
> Hi Arup,
>
>
>
> On Friday, 2014-03-14 16:46:51 -0700, Arup Rakshit wrote:
>
>
>
> > [... jump to the last position when reopening a file ...]
>
>
>
> In your .vimrc have
>
>
>
> au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
>
>
>
> Taken from :h last-position-jump
>
> Works like a charme.
>
>
>
> Eike
>
>
>
> --
>
> OpenPGP/GnuPG encrypted mail preferred in all private communication.
>
> Key ID: 0x65632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
>
> Support the FSFE, care about Free Software! https://fsfe.org/support/?erack
>
> Use LibreOffice! https://www.libreoffice.org/
--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Saturday, March 15, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment