I often repeat the following commands when I edit code:
yy- yank the line
gcc- comment out the line (so that I can visually see all the changes later)
p- paste back the copied version what I will edit
i- jump into insert mode
I tried to do the mapping as
nnoremap yc yygccpi
The problem seems to be with the commentary plugin's key-combination. Even if I remap
yc, nothing happens. Other bindings, like
3l, are working.
nnoremap is at the end of my vimrc, well after the
How could I accomplish this keymapping, and what was the problem?