Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找到了这个很酷的 exrc 文件来制作事物的 F 键,例如map #2 :set number,它把它放在那个 ex 命令中,然后让我按 Enter 键确认。但是,我做了一个关闭(map #4 :q),如果它自动添加一个输入,我希望它,所以它只是关闭而无需我先按输入。然后我会打它并关闭。
map #2 :set number
map #4 :q
如何添加该输入字符?
您只需要<CR>在映射末尾添加:
<CR>
map <F4> :q<CR>
见:help key-notation。
:help key-notation