On Wednesday, February 6, 2013 11:23:34 AM UTC-6, Ilya Esteban wrote:
> Thanks for the clarification. I think it would make sense to change the 
> behavior so that when exiting Vim the viminfo file just saves all the 
> currently active marks, rather than the union of the current marks + all the 
> deleted marks.
> 
> Two reasons:
> 
> 1) All files with marks get loaded into hidden buffers on startup. So if you 
> have a bunch of files you once marked, they will keep getting loaded even if 
> you dont need them anymore (with the additional side-effect that any new 
> buffers you create during your session start with a double digit ID number)
> 
> 2) If you use a plugin or a customization that visually shows the marks, you 
> end up with visual garbage in your files (the old tags), that you cant get 
> rid of unless you delete viminfo or reuse the marks in a different file.
> 

No. The whole point of saving marks in .viminfo is that when you edit the file 
again you will see the marks. If you save your file with marks, quit Vim, 
launch Vim to edit a completely different file, :wq, then load your first file 
again, under your proposal the marks would be gone.

If you actually want this, then you could very easily (pseudocode):

autocmd VimEnter {set 'viminfo' option to not save marks}
autocmd VimEnter {force-create the .viminfo file}
autocmd VimEnter {restore the 'viminfo' option to save marks again}

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to