Răsfoiți Sursa

Update vim commenting shortcut to `cc`

Now that `<space>` is leader, it is impractical to type `<space>,`. It turns out
that `cc` is a synonym mapping for `S`, and since `S` is easier to use (and has
been used), `cc` has been taken over for single-line and visual commenting.
Weiyi Lou 10 ani în urmă
părinte
comite
ff3e856afb
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      vim/settings/nerdcommenter.vim

+ 2 - 2
vim/settings/nerdcommenter.vim

@@ -1,3 +1,3 @@
 " Toggle Commenting out lines with NERDCommenter
-nnoremap <silent> <Leader>, :call NERDComment("n", "toggle")<CR>
-vnoremap <silent> <Leader>, <Esc>:call NERDComment("x", "toggle")<CR>
+nnoremap <silent> cc :call NERDComment("n", "toggle")<CR>
+vnoremap <silent> cc <Esc>:call NERDComment("x", "toggle")<CR>