Skip to content

Commit

Permalink
Set '[ and '] in visual mode
Browse files Browse the repository at this point in the history
Closes tpope#100
  • Loading branch information
tpope committed May 30, 2018
1 parent 54e5676 commit 7f2127b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/commentary.vim
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function! s:textobject(inner) abort
endfunction

command! -range -bar Commentary call s:go(<line1>,<line2>)
xnoremap <silent> <Plug>Commentary :Commentary<CR>
xnoremap <expr> <Plug>Commentary <SID>go()
nnoremap <expr> <Plug>Commentary <SID>go()
nnoremap <expr> <Plug>CommentaryLine <SID>go() . '_'
onoremap <silent> <Plug>Commentary :<C-U>call <SID>textobject(0)<CR>
Expand Down

0 comments on commit 7f2127b

Please sign in to comment.