在功能完成之前,禁止刷新屏幕
我有一个功能,可以将大量文本移动并输出到当前的vim缓冲区中,当我运行它时,看到以盲目速度发生的所有事情让人有些不安。 在功能完成之前,如何冻结屏幕? 这是有问题的功能: function! MakeChoices() :let save_view = winsaveview() let start = line('.') "Locate previous *choice. (b=backwards, W=nowrap, n=doNot move cursor) let choiceStartLine = search('^*choice', 'bW') if !choiceStartLine echo "No *choice found. (*choice must not be indented. This is to avoid finding *choice blocks nested in another *choice block.)" return …