mirror of
https://github.com/junegunn/vim-easy-align.git
synced 2025-11-10 19:03:50 -05:00
Merge branch 'master' of github.com:junegunn/vim-easy-align
This commit is contained in:
@@ -75,6 +75,12 @@ function! s:set_repeat()
|
||||
endfunction
|
||||
|
||||
function! s:generic_easy_align_op(type, vmode, live)
|
||||
if !&modifiable
|
||||
if a:vmode
|
||||
normal! gv
|
||||
endif
|
||||
return
|
||||
endif
|
||||
let sel_save = &selection
|
||||
let &selection = "inclusive"
|
||||
|
||||
|
||||
13
test/extra.vader
Normal file
13
test/extra.vader
Normal file
@@ -0,0 +1,13 @@
|
||||
Include: include/setup.vader
|
||||
|
||||
Before:
|
||||
set nomodifiable
|
||||
After:
|
||||
set modifiable
|
||||
AssertEqual "hello\nworld\n", @"
|
||||
Given:
|
||||
hello
|
||||
world
|
||||
Do (#43 Do nothing when nomodifiable):
|
||||
vip\<enter>\<enter>\<enter>y
|
||||
|
||||
@@ -31,3 +31,8 @@ Execute (Clean up test environment):
|
||||
vmap <leader>. <Plug>(EasyAlignRepeat)
|
||||
|
||||
silent! call plug#load('vim-easy-align')
|
||||
|
||||
Before:
|
||||
After:
|
||||
Given:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user