简体   繁体   中英

Mapping leader key to execute something without having to press enter

I mapped leader lf to LustyFileSystemExplorer and it works properly. 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.

Add a carriage return to your mapping:

map <Leader>lf :LustyFileSystemExplorer<CR>

And you're done!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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