I'm using the nerdcommenter to comment and uncomment my c++ code.
Basically I use \cc
to comment one line, \cu
to uncomment, \ca
to switch the delimiters (switch //
to /**/
or switch back).
Now I want to set a shortcut named \cv
for this case:
\cv: \ca + \cc + \ca
so that I can use the other delimiter quickly.
I've tried to add nnoremap <leader>cv <leader>ca \| <leader>cc \| <leader>\ca
into my ~/.vimrc
but it doesn't work.