【发布时间】:2019-11-20 08:33:56
【问题描述】:
当我在我的 .vimrc 中使用这个脚本时:
"Save and restore folds when a file is closed and re-opened
autocmd BufWinEnter ?* if(!empty(glob(expand("%:p")))) | silent loadview | endif
autocmd BufWritePost,BufLeave,WinLeave ?* if(!empty(glob(expand("%:p")))) | mkview | endif
当我通过q: 打开命令行窗口时会产生错误(这会打开我之前输入的所有命令):
我该如何解决这个问题,并确保不会发生此错误?
【问题讨论】: