I'm using vim over a slow connection and it is a little painful. Is there anything I can do in vim to alleviate the pain?
相关问题
- JavaScript File Transfer SSH
- Emacs shell: save commit message
- How to change the first two uppercase characters o
- Insert text into current buffer from function
- Why does this bash script work at console but fail
相关文章
- 如何让 vim 支持 .cshtml 文件的代码高亮
- Check if directory exists on remote machine with s
- Auto-save in VIM as you type
- Git Clone Fails: Server Certificate Verification F
- How can I use gcc's -I command to add recursiv
- Test if File/Dir exists over SSH/Sudo in Python/Ba
- Vim: overloaded mapping for multiple modes
- Can't access AWS CodeCommit with SSH
One can dull the pain a wee by using shortcuts to move up and down the file and along the lines, but as I have experienced often, doing anything on a slow connection is very painful. I find that when it is possible I can save a lot of time and frustration by
scp
'ing the file over to my workstation, editing it there peacefully, and loading it back.My recommendation is to turn off syntax highlighting in vim. Particularly for large files, this makes vim respond much faster for me. (
:syntax off
)Edit: This might also help, from the vim documentation:
http://www.vim.org/htmldoc/term.html#slow-fast-terminal (it looks like the suggestions posted already have some of the things from this doc)
Use mosh: http://www.linuxscrew.com/2012/04/11/why-mosh-is-better-than-ssh/?replytocom=804158#respond
And then just use "mosh" instead of "ssh".
It was designed for slow connections, and from a quick test over my slow 3G connection, to a server, it seems to support it quite well.
NB When connecting to a non-standard port, be sure to update /etc/ssh/ssh_config