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
I'm not sure if this is applicable but if you're connection is at all temperamental and likely to drop out I'd use vim with "screen". screen gives you a virtual terminal which you can just reconnect to if it drops out so you're vim window is persistent.
Slow vim startup by Depesz is probably not your case, but maybe it helps you too.
do not set the option
cursorline
orcolorcolumn
. Otherwise vim will lag considerably.You can try setting off timeout and ttimeout, this way Vim will wait until either the complete mapping or key sequence has been received.
Or you can increase the timeoutlen value, this is the time in milliseconds waited for a key code or mapped key sequence to complete.
I think the best thing to do is edit it locally and transfer the file. This can be automated so that it feels like editing remotely:
http://vim.wikia.com/wiki/Editing_remote_files_via_scp_in_vim
See also the answers to this related question:
Remotely Programming
For repeated tasks, you can map a series of commands to a single keystroke. Lets say you want to find and replace a word (foo with bar), but not all instances of it
Type g if you want to replace and n to skip