Do nothing when nomodifiable (#43)

This commit is contained in:
Junegunn Choi
2014-11-23 03:39:33 +09:00
parent 2595ebf933
commit 44216b0a2c
3 changed files with 24 additions and 0 deletions

View File

@@ -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"