I am using https://github.com/scrooloose/nerdcommenter/ plugin to comment the code. It's working fine, but I would like to do a modification.
Currently these are the default mappings:
<leader>cccomments the line
<leader>ciinverts the comment
<leader>cuundo last comment/uncomment action
I am looking to map
<leader>cc to the action of invert comment i.e.
<leader>ci. It's not a nerdcommenter question, but a question of vim mappings itself, hence asking here.
nnoremap <leader>cc <leader>ci
nmap <leader>cc <leader>ci
But there doesn't seems to be any effect of these mapping. On pressing
<leader>cc, I am seeing original action of it not the one I am trying to define.
FYI, answer to this question https://vi.stackexchange.com/a/763/8092 doesn't help either. i.e. to define custom mappings in