Bram Moolenaar, 17.05.2009:
> 
> Markus Heidelberg wrote:
> 
> > The autocommand exists in these files:
> > runtime/doc/eval.txt
> > runtime/doc/usr_05.txt
> > runtime/vimrc_example.vim
> > 
> > eval.txt contains the most up-to-date autocommand, so adjust the others
> > to it:
> >   * don't jump when the mark is in the first line
> >   * use :normal! instead of :normal to avoid mappings
> >   * use '" instead of `" with the g command for consistency
> 
> I think it's fine to use g`".  It helps when using long lines.
> 
> I'll change usr_05.txt.

The ! for :normal is still missing in usr_05.txt after the runtime
updates today, I should have sent a corrected patch after your feedback.


diff --git a/runtime/doc/usr_05.txt b/runtime/doc/usr_05.txt
index ff21dea..5c4de6e 100644
--- a/runtime/doc/usr_05.txt
+++ b/runtime/doc/usr_05.txt
@@ -206,7 +206,7 @@ to 78, but only locally in one file.
                                                        *restore-cursor*  >
        autocmd BufReadPost *
            \ if line("'\"") > 1 && line("'\"") <= line("$") |
-           \   exe "normal g`\"" |
+           \   exe "normal! g`\"" |
            \ endif
 
 Another autocommand.  This time it is used after reading any file.  The


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui