Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 669 Bytes

vim_exchange.rst

File metadata and controls

22 lines (15 loc) · 669 Bytes

localcfg/plugins/vim_exchange.vim

Re-indent lines following exchange:

const g:exchange_indent = '=='

Add command to toggle indentation option for the current buffer:

command! ExchangeIndentToggle
\   let b:exchange_indent =
\       get(b:, "exchange_indent", g:exchange_indent) is v:true
\       ? '=='
\       : v:true

Tip

For parameter and argument reordering :ref:`sideways.vim <sideways.vim-config>` is often a better solution, as operations such as cxiwWcxiw and cxiw2bcxiw will only work in very simple cases.