简体   繁体   English

映射领导者键,无需按回车键即可执行某些操作

[英]Mapping leader key to execute something without having to press enter

I mapped leader lf to LustyFileSystemExplorer and it works properly. 我将leader lf映射到LustyFileSystemExplorer ,它可以正常工作。 I press leader lf and it shows the explorer, however when I change it to any other key binding, pressing leader lf shows :LustyFileSystemExplorer and I've to press enter to use it. 我按leader lf ,它显示资源管理器,但是当我将其更改为任何其他按键绑定时,按leader lf显示:LustyFileSystemExplorer ,我必须按Enter才能使用它。

Add a carriage return to your mapping: 在地图上添加回车符:

map <Leader>lf :LustyFileSystemExplorer<CR>

And you're done! 大功告成!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM