Permalink
Browse files

Refine conditions allowing skipping \\ maps

Closes #5.
  • Loading branch information...
1 parent d2530d8 commit 62b72580aba57cb5185bd077ac7a905c1c6893ea @tpope committed Oct 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/commentary.vim
View
@@ -50,7 +50,7 @@ xnoremap <silent> <Plug>Commentary :<C-U>call <SID>go(visualmode())<CR>
nnoremap <silent> <Plug>Commentary :<C-U>set opfunc=<SID>go<CR>g@
nnoremap <silent> <Plug>CommentaryLine :<C-U>call <SID>go(v:count1)<CR>
-if maparg('\\') ==# ''
+if !hasmapto('<Plug>Commentary') || maparg('\\','n') ==# '' && maparg('\','n') ==# ''
xmap \\ <Plug>Commentary
nmap \\ <Plug>Commentary
nmap \\\ <Plug>CommentaryLine

0 comments on commit 62b7258

Please sign in to comment.