在慢速连接上使用 vim 的技巧? [英] Tips for using vim over a slow connection?

查看:33
本文介绍了在慢速连接上使用 vim 的技巧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过慢速连接使用 vim,这有点痛苦.我可以在 vim 中做些什么来减轻痛苦吗?

解决方案

vi 被创建来使用超过 300 波特的调制解调器,这就是为什么有所有那些有趣和奇怪(和简短)的命令来移动和导航.学习它们...

玩玩像

<前>:10 -> 跳转到第 10 行7j -> 向下移动 7 行

因为我的键盘在 f 和 j 键上有一个小点,我使用键 j 上的点来轻松找到 vim 导航hjkl".

但最好的事情是永远不要滚动,寻找移动是一个救生员.当您搜索时,您的指针正好位于您要搜索的地方,这意味着不需要那些缓慢的导航.如果您最终通过 ssh 编辑非常大的文件,这真的很有用...

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?

解决方案

vi was created to use over 300 baud modem, that is why there is all those funny and strange (and short) command to move and navigate. Learn them...

Play with things like

 :10 -> jump to line 10
 7j -> move 7lines down

And since my keyboard has a little physical dot at the keys f and j, I use the dot on key j to easy find the vim navigation "hjkl".

But the best thing is to never ever scroll at all, search to move is a life saver. When you search your pointer ends up right at the thing you search for, meaning that those slow navigations is not needed. This is really useful if you end up editing really big files over ssh...

这篇关于在慢速连接上使用 vim 的技巧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆