diff --git a/README.markdown b/README.markdown index 328ae97..a177db4 100644 --- a/README.markdown +++ b/README.markdown @@ -1,9 +1,9 @@ # commentary.vim -Comment stuff out. Use `gcc` to comment out a line (takes a count), -`gc` to comment out the target of a motion (for example, `gcap` to -comment out a paragraph), `gc` in visual mode to comment out the selection, -and `gc` in operator pending mode to target a comment. You can also use +Comment stuff out. Use `cc` to comment out a line (takes a count), +`c` to comment out the target of a motion (for example, `cap` to +comment out a paragraph), `c` in visual mode to comment out the selection, +and `c` in operator pending mode to target a comment. You can also use it as a command, either with a range like `:7,17Commentary`, or as part of a `:global` invocation like with `:g/TODO/Commentary`. That's it. @@ -13,7 +13,7 @@ feature (I overlooked [tcomment.vim](https://github.com/tomtom/tcomment_vim)). Striving for minimalism, it weighs in at under 100 lines of code. -Oh, and it uncomments, too. The above maps actually toggle, and `gcgc` +Oh, and it uncomments, too. The above maps actually toggle, and `cc` uncomments a set of adjacent commented lines. ## Installation diff --git a/plugin/commentary.vim b/plugin/commentary.vim index 079bce1..19bc229 100644 --- a/plugin/commentary.vim +++ b/plugin/commentary.vim @@ -109,12 +109,12 @@ nnoremap CommentaryLine go() . '_' onoremap Commentary :call textobject(get(v:, 'operator', '') ==# 'c') nnoremap ChangeCommentary c:call textobject(1) -if !hasmapto('Commentary') || maparg('gc','n') ==# '' - xmap gc Commentary - nmap gc Commentary - omap gc Commentary - nmap gcc CommentaryLine - nmap gcu CommentaryCommentary +if !hasmapto('Commentary') || maparg('c','n') ==# '' + xmap c Commentary + nmap c Commentary + omap c Commentary + nmap cc CommentaryLine + nmap cu CommentaryCommentary endif nmap CommentaryUndo :echoerr "Change your CommentaryUndo map to CommentaryCommentary"