ktonga / vim-follow-my-lead

Vim plugin for showing all your <Leader> mappings in a readable table including the descriptions.
105 stars 9 forks source link

Description not detected if leader hardcoded #9

Closed SnoringFrog closed 9 years ago

SnoringFrog commented 9 years ago

I had this old mapping in my vimrc (my leader is comma):

" Clear current search highlighting
nnoremap <silent> ,/ :nohlsearch<CR>

While this was detected by fml, it's description was not. So the description text ended up being :nohlsearch<CR> instead of the comment above it.

ktonga commented 9 years ago

This is intentionally not supported, you are mapping to the ',' not to the <Leader>. When I parse the output of :verbose map the leader is already replaced so I have no way to differentiate from hardcoded. That's why it's included in the mappings.

It is this way to help you to do the right thing ☺. You should update this old mapping so it uses the placeholder.

ktonga commented 9 years ago

As commend before it is intentionally not supported.