-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markbar plugin messing with viminfo history #56
Comments
Hi, sorry for the delay. I was able to reproduce the issue with Vim 8.2. I narrowed the source of the issue down to a single line: 96 function! g:MarkbarSerializeRosters() abort
97 ┊ " update v:oldfiles with the files whose marks will be recorded in
98 ┊ " shada or viminfo
99 ┊ if has('nvim')
100 ┊ ┊ rshada!
101 ┊ else
102 ┊ ┊ rviminfo! " <-- this line Changing this line to You can stop vim-markbar from clobbering Sorry that I'm not able to provide a fix. Even so, I appreciate the issue report; I'll make a note of this in the documentation. |
Setting g:markbar_persist_mark_names to v:true causes vim (not neovim) to clobber timestamps and reorder history in the viminfo file, ref: Issue #56. Unfortunately, this can't be fixed without entirely breaking persistent mark names for vim users. Document the issue in the README and help text.
Setting g:markbar_persist_mark_names to v:true causes vim (not neovim) to clobber timestamps and reorder history in the viminfo file, ref: Issue #56. Unfortunately, this can't be fixed without entirely breaking persistent mark names for vim users. Document the issue in the README and help text.
With markbar plugin enabled, if I open vim, run several commands, close vim and then examine viminfo.vim, Command Line, Search and Expression History and Search History have been overwritten with the same timestamp.
Invariably, all command, search etc timestamps are overwritten with the same timestamp of the last command i.e.
:q
et al. That is all history timestamps in viminfo files not just last session's history.I have recently installed:
Tested with gvim running with Administrator and also no Admin privileges.
Testing with vimfiles including only:
Contents of
vimrc
is:Resulting
viminfo
example when opening vim, running a couple of commands, and closing. Note that none of the commands, searches or expressions were run in previous session. The order of the history is all messed up as well. The timestamp is the time closed last session.The text was updated successfully, but these errors were encountered: