我想知道在某个特定的vim会话中存储的命令历史记录.我知道我们可以滚动浏览历史.我的目标是采取我使用试错法执行的一部分命令,并创建一个vim源文件.
它存储在$HOME / .viminfo
原文链接:https://www.f2er.com/bash/386668.html从vim帮助命令:
The viminfo file is used to store: - The command line history. - The search string history. - The input-line history. - Contents of registers. - Marks for several files. - File marks,pointing to locations in files. - Last search/substitute pattern (for 'n' and '&'). - The buffer list. - Global variables.