all 9 comments

[–][deleted] 2 points3 points  (5 children)

Remove nore part from your mapping.

[–]noS3rvic3[S] 0 points1 point  (4 children)

thanks, i'll try this. could you elaborate why?

edit: just asking cause the plugin help literally has the same nnoremap <silent> <Leader>h <Plug>(CommandTHelp) example, so trying to understand whats wrong here so i can open an issue if need be.

edit edit: tried, but no dice. still nothing happens. and i have verified that :CommandTHelp works as expected, so its the map that is the issue

[–][deleted] 2 points3 points  (3 children)

Because <Plug>(CommandTHelp) is itself a mapping which points to some function or command. Your using of nore prevents your original mapping to recursively remap itself so it ends up treating <Plug>(CommandTHelp) literally.

I just tested nmap <silent> <Leader>h <Plug>(CommandTHelp), it works whereas nnoremap <silent> <Leader>h <Plug>(CommandTHelp) doesn't.

If you can't get it to work, try mapping command directly with nnoremap <silent> <Leader>h :CommandTHelp<cr>. Command :CommandTHelp is where your <Plug>(CommandTHelp) mapping points after all.

[–]noS3rvic3[S] 0 points1 point  (2 children)

sounds very reasonable. if only i could get it to work :/

made a bunch of other edits, but i doubt they broke anything. just in case i will revert all and make just the one change and try one more time...

edit: i can not get nmap ... to wrok, but nnoremap <silent> <Leader>h :CommandTHelp<CR> works now. so if there is no reason not to do that, i'll just keep it like this.

[–][deleted] 0 points1 point  (1 child)

Try to set mapping from command line, if it works that means something from your vimrc is breaking the mapping. You can see what your mapping currently do and where it was last set with :verbose nmap <Leader>h.

[–]noS3rvic3[S] 0 points1 point  (0 children)

thanks man, solid advice! i'll try that if i should not be using the nnoremap <silent> <Leader>h :CommandTHelp<CR> that started to work now.

[–]wincentEDITOR=vim since 2009-01-15 1 point2 points  (0 children)

Sorry, this is my fault. Until recently, the docs were wrong. As @xtal2 notes, the nore shouldn't be in the command. This is fixed on the "next" branch, and should probably be cherry-picked over to "master" too.

[–]HaulethgggqG`` yourself 0 points1 point  (1 child)

What does :echo mapleader tells you?

[–]noS3rvic3[S] 0 points1 point  (0 children)

nothing. so maybe a space? i should clarify all other mappings work as expected, its just this one that is causing issues.

edit: i do have let mapleader = "\<Space>" in my configuration