Re-index for vim history
vim吧
全部回复
仅看楼主
level 2
humanmage1022 楼主
Is there any method to re-index history? I wanna do this to make history index always starting from 1 to the MAX history value.
Calling "his i" or "his @" to show input history.
For example, if set history=20, after reaching the max history items, input new item will edge out the oldest history item, so the history index will be :
# input history
2...
3...
...
21...
Calling histdel() would also make the index uncontinuous.
Is there anyway to re-index the history before calling "his i" ?
2017年02月15日 06点02分 1
level 9
有这样做的必要吗,还是说开发什么插件需要这个功能,建议你把原始问题表述出来-_-
2017年02月16日 12点02分 2
多谢回复,我已经弄好了,自己改一个grep的插件,可以从grep历史里选择,我后来用的histget() 加inputlist()重新列了一下所有grep过的历史并重新编号。
2017年02月17日 03点02分
1