我正试图“轻松”进入VIM作为我的主要编码编辑器。当我学习VIM的许多模式/功能时,我发现我仍在做大量的“误操作”。当我处于插入模式时,我注意到击键组合会产生特殊字符 - 主要是非拉丁字母表中的字符。)我想暂时禁用它。可能吗?换句话说,为了防止在插入模式下显示多字节字符?
编辑:(添加示例)
这方面的一个例子是当我删除一个字符(mac键盘上的删除键)并快速跟随另一个字符。例如,delete + d产生“ض”。
谢谢!
史蒂夫
答案 0 :(得分:0)
This sounds suspiciously like keys not timing out as controlled by 'timeout'
, 'timeoutlen'
, 'ttimeout'
and 'ttimeoutlen'
. You might try
:set timeout timeoutlen=5000 ttimeoutlen=50
which should cut the time vim will wait between keystrokes to see if they're the "same" (pseudo-)key down to 50ms.
The exact numbers you want would vary depending on your connection. If you're editing over a low-bandwidth connection, you might have to bump up the 50ms to something higher if you use function keys, 6-pack, or arrow keys (anything that transmits as a sequence of characters).
答案 1 :(得分:0)
在vim中,如果设置了digraph,则在它们之间输入两个带有退格的字符将产生digraph
option。如果您要禁用此功能,请查看vimrc
中是否有from PIL import Image, ImageTk
# other imports
# ....
# def initUI(self):
pic1 = Image.open("pic1.jpg")
pic1_img = ImageTk.PhotoImage(pic1)
label1 = Label(self, image=pic1_img)
label1.image = pic1_img
label1.place(x=20, y=20)
并将其删除。
您的终端设置可能会将删除键映射到退格键。 如果您不想要,则必须change that in the settings。