【发布时间】:2013-04-12 16:06:57
【问题描述】:
我的 .vimrc 中有这个函数,我得到了 here
function! SetExecutableBit()
let fname = expand("%:p")
checktime
execute "au FileChangedShell " . fname . " :echo"
silent !chmod a+x %
checktime
execute "au! FileChangedShell " . fname
endfunction
command! Xbit call SetExecutableBit()
当我运行:call SetExecutableBit() 时,它按预期工作。但是当我运行:Xbit 时,所有字符都会从我的术语中消失(但在 Gvim 中不会)。我已经在 gnome-terminal 和 urxvt 上复制了这个。如果我尝试用鼠标或ggVG 突出显示某些文本,该文本将重新出现。
“之前”截图:
运行:Xbit后的词条截图:
选择一些文本后的屏幕截图:
更新,因为--noplugin 会发生此错误,但-u NONE 不会发生,它一定是我的 .vimrc 文件中的内容:https://gist.github.com/dbb/5373175
【问题讨论】: