Yakov Lerner wrote:

> I suggest new flag for 'viminfo'; flag to turn on the *last-position-jump*
> functionality (say, letter j). Such it will be much easier method to
> turn on the last-position-jump functionality. With new flag, it will be mere:
> 
>       :set viminfo='20,<50,s10,j
> or
>       :set viminfo+=j
> -- as easy as addding flag j to 'viminfo'.
> 
> Currently, the magic sequence to turn on the *last-position-jump*
> 
>   :set viminfo='20,<50,s10
>   augroup lastPositionJump
>   au!
>   autocmd BufReadPost *    \ if line("'\"") > 0 && line("'\"") <= line("$") |
>     \   exe "normal g`\"" |endif
>   augroup END
> 
> This proves difficult for novice vim user to figure out even with the
> help of vimhelp.
> It's demanded and requested features, why not  to make it easier to turn on ?
> 
> I mean that internally, new flag would add/remove that same autocmd.
> It's not difficult to implement, right ? And it's backward-compatible.
> Can I make a patch ?

I think finding the "j" flag in the 'viminfo' option is much harder than
finding the hint to source the $VIMRUNTIME/vimrc_example.vim script.

Also keep in mind that sometimes jumping to some position is undesired,
thus we would also need a mechanism to disable it.

-- 
hundred-and-one symptoms of being an internet addict:
24. You realize there is not a sound in the house and you have no idea where
    your children are.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to