我对 vim/gvim 很陌生。这是我第一次尝试修改 ~/.vimrc 文件。我正在尝试将 F11 映射到多个命令。我正在尝试的是
inoremap jj <ESC>
map <F11> h e a , jj && l && x
Run Code Online (Sandbox Code Playgroud)
虽然手动输入h e a , jj l x对我有用,但使用F11key 不是。我想要实现的是-
1. get to the end of the current word
2. append ','
3. move right one place and delete that space between ',' and the start of next word.
Run Code Online (Sandbox Code Playgroud)
我不明白我的映射有什么问题。请在这里帮助我。
vim ×1