V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  diverless  ›  全部回复第 1 页 / 共 1 页
回复总数  1
@xiaocaibaozi
我把<Leader>设置成;,把 esc 映射成<Leader><Leader>和;;,然后不管中英文,按两下小指就行了再用 hjkl 移动。
---
我按你的提示设置了,确实很好用:
-------------
let maplead = ";"
inoremap <leader><leader> <ESC>
inoremap ;; <ESC>
------------
但有一个问题:在中文状态的 insert 模式下,你确实可以切换回 normal 模式。但是,你的中文输入法没办法同时切换回英文呀,所以你这时候是无法使用 hjkl 的,对不?

除非你已经设置了 smartim 这类在退出 insert 模式同时自动切换回英文的扫插件。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2742 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 9ms · UTC 04:49 · PVG 12:49 · LAX 21:49 · JFK 00:49
♥ Do have faith in what you're doing.