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 ?

Yakov

Reply via email to