当我在.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:
打开命令行窗口时(它打开了我键入的所有先前命令),它会产生错误:
如何解决此问题,并确保不会发生此错误?