Reputation: 5007
How can I store the bookmarks belonging to a session not belonging to a file ? I want to have multiple sessions and each one have different bookmarks for the same files. I want to mimic an IDE behavior.
BR
Upvotes: 0
Views: 214
Reputation: 172748
File marks are stored in the viminfo file, not in sessions, and there's unfortunately no value in 'sessionoptions'
that would enable that.
So, there's no easy solution, just workarounds that are more involved. Some ideas:
:wviminfo [file]
, and then read them via :rviminfo
. You could use that (maybe with a tweak to the 'viminfo'
option to reduce what gets written) in addition to session files.globals
value.:call setpos("'[mark]", ...)
in there.Upvotes: 2