在 cygwin 上运行 vim 时,我想在活动缓冲区名称上自动设置窗口标题。
我写了这个:
function! SetMinttyTitle()
silent !clear
execute "!" . "echo -ne '\\e]0;". @% . "\\a' 2>&1 > /dev/null"
endfunction
au BufNewFile,BufEnter,BufRead * call SetMinttyTitle()
不幸的是,它没有按预期工作。我没有找到摆脱这条消息的方法
"Press ENTER or type command to continue"
如何在后台运行我的命令?