为什么在vim中使用Esc? [英] Why use Esc in vim?

查看:363
本文介绍了为什么在vim中使用Esc?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Vi编辑器最初是在ADM-3A终端上编写的,该终端具有 Escape 键代替了 Tab 键(与大多数现代键盘相比).许多触摸打字员欣赏这样的事实,即在使用Vim时,他们可以将手放在键盘上的那一行上,但是 Esc 的使用使得必须离开手来按下 Esc .我目前正在学习vim.应该将 Esc 重新映射到其他地方吗?这种情况下最常见的重映射是什么?还是应该放弃重新映射 Esc 并继续使用的想法?专业的vim用户会做什么?

The Vi editor was originally written on an ADM-3A terminal, which had the Escape key in place of the Tab key (compared to most modern keyboards). Many touch typists appreciate the fact that they can leave their hands on the keyboard home row while using Vim but the use of Esc makes it compulsory to leave the hands to press Esc. I am currently learning vim. Should remap Esc to somewhere else ? What is the most common remap for this case ? or should I leave the idea of remapping Esc and continue using it ? What do pro users of vim do ?

推荐答案

我已将Escape映射到其他未使用的Caps Lock上.这是简化vim使用的常用方法. 本文也有一些替代解决方案.同一篇文章还链接了一些调整,如果您愿意,可以在整个系统范围内使用Escape-Capslock开关.

I have mapped Escape to otherwise unused Caps Lock. This is a common method to streamline vim's usage. This article has some alternative solutions, too. The same article links to tweaks to make the Escape-Capslock switch system-wide if you prefer.

这篇关于为什么在vim中使用Esc?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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