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.
我创建了一个键映射,通过按 清除搜索突出显示.。
.
map . :nohlsearch
但是,按.只能输入nohlsearch命令,需要我按Enter才能执行命令。有没有办法让键绑定同时输入和执行命令?
nohlsearch
添加<CR>到最后,像这样:
<CR>
map . :nohlsearch<CR>
这<CR>是一个“回车”,与 press 的Enter作用相同。