Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mapping leader key to execute something without having to press enter

Tags:

vim

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.

like image 707
sent-hil Avatar asked May 15 '11 07:05

sent-hil


1 Answers

Add a carriage return to your mapping:

map <Leader>lf :LustyFileSystemExplorer<CR>

And you're done!

like image 180
Johnsyweb Avatar answered Oct 19 '22 09:10

Johnsyweb