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.
我想在 nodetree 中添加一个命令。
例如,如果我按“c”,它必须在 NNERDTree 中执行“o”命令,在 vim 中执行 Alternateplugin 的 :AS 命令。
我尝试在 vimrc 中使用 nmap 进行一些尝试,但我没有成功
此映射应该可以执行两个命令:
nmap c o <Bar> :AS<CR>
<Bar>用于分隔多个命令,允许多个命令在同一行。详情请参阅:help :\bar。
<Bar>
:help :\bar
我建议您避免重新映射c,因为c{motion}它是一个相当有用的内置 vim 命令(请参阅:help c详细信息)。
c
c{motion}
:help c