I use vim under iterm2. I\'m using the NERDCommenter plugin, and I\'d like to use Ctrl+/ to toggle comments (Trying to switch from Idea/Eclipse to vim). This is my mapping i
If you're using iTerm2 + vim, maybe the following steps can help you:
Add following code to your .vimrc file.
map ,cc
NERDCommenterToggle
or if you have defined your
map
cc NERDCommenterToggle
Check if you can use ,cc to toggle comments in vim
Open iTerm2 -> Preferences -> Keys, click the + button
Select Send Text with "vim" Special Chars, enter ,cc, like this.
Now you can use C-/ to toggle comments in vim.