Add <Plug>(EasyAlignOperator)

This commit is contained in:
Junegunn Choi
2013-11-30 13:04:32 +09:00
parent ddc1e00b81
commit 165bda1d95
4 changed files with 35 additions and 10 deletions

View File

@@ -228,6 +228,18 @@ In blockwise-visual mode (CTRL-V), EasyAlign command aligns only
the selected text in the block, instead of the whole lines in the range.
EasyAlign as Vim operator *<Plug>(EasyAlignOperator)*
-------------------------------------------------------------------------
With `<Plug>(EasyAlignOperator)` map, EasyAlign command can be used as a Vim
operator that can be used with any Vim movement.
nmap <leader>a <Plug>(EasyAlignOperator)
Now without going into visual mode, you can align the lines in the paragraph
with "<Leader>aip=", "<Leader>aip*|", or "<Leader>aip:".
Alignment options
-------------------------------------------------------------------------