开发者

MacVim and netrw - Press ENTER

开发者 https://www.devze.com 2022-12-27 06:47 出处:网络
I\'ve set up MacVim to work with netrw for remote editing (yaaay!), but whenever I save a file, I get the following error:

I've set up MacVim to work with netrw for remote editing (yaaay!), but whenever I save a file, I get the following error:

:!scp -q '/var/folders/PN/PNhWJAr5GGC0WfeLdFgWV++++TU/-Tmp-/v771493/0' 'remot_host:path/remote_file.css'

Press ENTER or type command to continue

Hitting Ent开发者_Go百科er removes it and I can edit again. I don't know what it is and it's annoying, but perhaps not broken.

Tips?


I realized this problem wasn't unique to MacVim and thus looked in the pi_netrw documentation (help netrw-p10).

set cmdheight=3 in .vimrc removes the prompt when saving a file, but not when opening. That is an enough solution for me.


It's probably much better to change it temporary, while reading new file:

au BufReadPre   * set cmdheight=3
au BufReadPost  * set cmdheight=1
au BufWritePre  * set cmdheight=3
au BufWritePost * set cmdheight=1
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号