Skip to content

Commit

Permalink
Allow for chaining of commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jchros authored and tommcdo committed Nov 15, 2020
1 parent 8bb6624 commit 13d3895
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/exchange.vim
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,13 @@ vnoremap <silent> <Plug>(Exchange) :<C-u>call <SID>exchange_set(visualmode(), 1)
nnoremap <silent> <Plug>(ExchangeClear) :<C-u>call <SID>exchange_clear()<CR>
nnoremap <silent> <expr> <Plug>(ExchangeLine) ':<C-u>set operatorfunc=<SID>exchange_set<CR>'.(v:count1 == 1 ? '' : v:count1).'g@_'
command! XchangeHighlightToggle call s:highlight_toggle()
command! XchangeHighlightEnable call s:highlight_toggle(1)
command! XchangeHighlightDisable call s:highlight_toggle(0)
command! -bar XchangeHighlightToggle call s:highlight_toggle()
command! -bar XchangeHighlightEnable call s:highlight_toggle(1)
command! -bar XchangeHighlightDisable call s:highlight_toggle(0)

XchangeHighlightEnable

command! XchangeClear call s:exchange_clear()
command! -bar XchangeClear call s:exchange_clear()

if exists('g:exchange_no_mappings')
finish
Expand Down

0 comments on commit 13d3895

Please sign in to comment.