On Thursday, December 12, 2013 3:13:33 PM UTC-6, Manuel Ortega wrote: > > > :bwipe doesn't mean "I'm done with this file forever" it just means > > > > "I'm done with this file for this edit session." > > > Exactly, which is why it is bizarre for :bwipe to wipeout the lowercase > marks that are associated with that file. Maybe when I come back to the > > file, I want my lowercase marks that help me jump to different parts of > that file. I don't know why those should vanish just because "I'm done > with this file for this edit session". > > > > :bwipe should wipe away all lowercase marks when the buffer being wiped > has no associated file. In this case there are no uppercase or numbered > marks to preserve anyway. :bwipe should preserve all marks when the > > buffer being wiped does have an associated file. >
This I can agree would be useful. I don't actually know why it needs to remove any marks at all. But at least that behavior is documented. I suppose the workaround for all this is probably the same: write the .viminfo file manually. Still I don't think the two types of mark are at all alike. File marks are more like bookmarks of files. You use them to quickly jump to a desired file. Lowercase marks are used to mark places in a buffer you're working on right now, to help you keep your place or do quick edits without remembering line numbers. A :bwipe *does* say "I'm done with my changes for now and I don't want to come back for a while". So lowercase marks make some sense to get rid of, since they're for work-in-progress, like the position I've scrolled my browser window to on a long webpage. Uppercase marks are more useful though for "this file is interesting to me and I look at it frequently", like a browser bookmark. When I exit a page in my browser I expect the scroll to get reset because I'm not working on the same thing as before. But I don't expect my bookmark to also get deleted; I will probably revisit this page later. If you're not done with work-in-progress, it makes sense to keep the buffer in your buffer list, thus you wouldn't want to use :bwipe. But if you're done with work-in-progress on a file you need to edit frequently in different ways, it makes sense to keep a global bookmark while removing all the little work-in-progress positions of interest. -- -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
