使用非英语键盘在 Vim 上更快书写的最佳方法是什么?
我通常使用 Vim,它能够比其他编辑器更快地执行某些操作。然而,由于我住在阿根廷,我有一个拉丁美洲键盘,这使得 Vim 中的所有内容都变得相当慢(要写入/搜索,我必须按 Shift+7)。
因为我不想一直改变键盘布局(而且很难习惯像英文键盘一样按下符号),所以我想知道是否有一个 vim 插件(.vimrc 文件)可以对国际用户有用。
只是为了方便起见,拉丁美洲键盘的布局如下:
(来源:pages.slc 支持.edu)
顺便说一句,我很想去买一个英文键盘,但不幸的是我使用的是笔记本电脑。
I usually use Vim, and its great for the ability to do faster some actions than other editors. However, since I live in Argentina I have a Latin American keyboard, that makes everything in Vim pretty slower (to write / to search, I must press Shift+7).
Since I don't want to be changing Keyboard layouts all the time (and its pretty difficult to get used to pressing symbols as in an English keyboard), I was wondering if there was a vim plugin (of .vimrc file) that may be useful for international users.
Just for the sake of it, here's how the Latin American keyboard is laid out:
(source: support at pages.slc.edu)
By the way, I would love to go and buy an English keyboard, but unfortunately I use a Laptop.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我表示同情。您至少有几个选择:
loadkeys
。在 X11 下,您可以使用setxkbmap
。我使用德沃夏克键盘布局,并且就这样接受它。如果有一两个命令非常麻烦,请将它们映射到键盘上的简单命令上。由于键盘布局的不同,不可避免地会有其他更容易的快捷键,但整体效率将取决于您的布局和您使用的功能。
I sympathize. You have at least a couple of options:
loadkeys
. Under X11 you can usesetxkbmap
.I use the Dvorak keyboard layout and I just live with it the way it is. If there's a command or two that are very cumbersome, map them to something easy on your keyboard. There will inevitably be other shortcuts that are easier because of the different keyboard layout, but overall efficiency will depend on your layout and what features you use.
你可以使用我的 translit3 插件在 latin1 上输入非 latin1 符号键盘。只需选择一种键盘布局并编写音译表即可使用其他符号。
You can use my translit3 plugin to enter non-latin1 symbols on latin1 keyboard. Just choose one keyboard layout and write a transliteration table in order to use other symbols.