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

@@ -19,6 +19,7 @@ Execute (Clean up test environment):
vnoremap <silent> r<Enter> :EasyAlign!<Enter>
vnoremap <silent> <Leader><Enter> :LiveEasyAlign<Enter>
vnoremap <silent> <Leader>r<Enter> :LiveEasyAlign!<Enter>
nmap <leader>A <Plug>(EasyAlignOperator)
###########################################################
@@ -39,6 +40,15 @@ Expect:
111 22 333 444 55555 6666 7 88888
1111 2 33 444 555 66 777 8
Do (left-align using operator map):
\<Space>Aip*\<Space>
Expect:
1 22222 33 444 555 6666 7 888
11 222 3333 4 55 6666 77 888
111 22 333 444 55555 6666 7 88888
1111 2 33 444 555 66 777 8
Do (right-align):
vip
\<Enter>\<Enter>