使用 h、j、k、l 键可以节省时间吗?

发布于 2024-12-08 20:36:02 字数 108 浏览 1 评论 0原文

我曾尝试在 Vim 中使用 h、j、k 和 l 键一段时间,但没有习惯,于是又转而使用箭头键。我的问题是:根据您的经验,是否值得切换到这些键?您是否实现了更快的打字/导航速度?

I've tried using the h, j, k and l keys for a while in Vim, but did not get used to it and fell back to using the arrow keys. My question is: from your experience, is it worth switching to these keys? Did you achieve faster typing/navigating?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

眼泪也成诗 2024-12-15 20:36:02

当我第一次使用 Vim 时,在多年来保持使用方向键导航的习惯之后,坚持使用 hjkl 似乎非常困难。

然后我学会了实际的触摸打字

之后,hjkl不仅感觉比方向键更自然。 一切与计算机相关的事情都变得更快。这确实值得时间上的投资(我假设你不是触摸打字机,否则你不会问这个问题)。

顺便说一句,Vim 在学习盲打时非常有用。学习时,只需让键盘图更靠近屏幕而不是实际键盘,最好是 带有 vim 使用的键盘图

When I first used Vim, it seemed very difficult to stick to hjkl after years of maintining a habit of navigating with arrow keys.

Then I learned actual touch typing.

After that, not only did hjkl feel more natural than the arrow keys. Everything computer-related became faster. It's really worth the investment timewise (I'm assuming you're not a touch typer, otherwise you wouldn't have asked this question).

By the way, Vim is incredibly useful when learning to touch type. Just keep a keyboard diagram closer to the screen than to the actual keyboard when learning, ideally a keybord diagram with vim usage on it.

蔚蓝源自深海 2024-12-15 20:36:02

恕我直言,不,不值得这么麻烦。我试过了,我也不太习惯。

使用这些键的全部要点是,在 Vi 创建时,大多数键盘都没有箭头键。我还没有遇到过没有这些键的现代键盘。

我可能是错的。

IMHO, no, it's not worth the trouble. I've tried it, and I couldn't get used to it either.

The whole point of those using those keys was that most keyboards, at the time of Vi's creation, did not have arrow keys. I've yet to run across a modern keyboard without those keys.

I could be wrong.

北恋 2024-12-15 20:36:02

我喜欢它。发现与 f/F 和 t/T 一起使用的视觉模式可以如此快速地剪切和替换,因此轻松访问 ; 变得必要。您也可以用第三根手指直接转到 .

I like it. Having discovered visual mode used with f/F and t/T could cut and replace so quickly, easy access to ; became necessary. And you can go straight to . with the 3rd finger too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文