Reputation: 22114
I found I've been using easy motion a lot recently, I want to map
<leader><leader>
f to a key, say ;
so I add the following line to vimrc
file
imap ; <leader><leader>f
but it doesn't work,
any idea?
Upvotes: 0
Views: 929
Reputation: 172698
Your :imap
covers insert mode and would prevent you from inserting a ;
character into the text. The easymotion plugin is triggered from normal mode; therefore, you have to use :nmap
:
nmap ; <leader><leader>f
Though the usual recommendation is to use :noremap
(it makes the mapping immune to remapping and recursion), here, because you're mapping to (the plugin's) mapping, you need to use :nmap
.
Upvotes: 4