mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 11:03:47 -05:00
Remove CursorHoldI for auto-align. Fix #128
Since auto-align in insert mode causes snags, removing it and instead doing it on InsertLeave instead
This commit is contained in:
@@ -99,7 +99,7 @@ function! s:ToggleAutoAlign() "{{{2
|
|||||||
au!
|
au!
|
||||||
|
|
||||||
autocmd CursorHold <buffer> nested silent! if &modified | call tablemode#table#Realign('.') | endif
|
autocmd CursorHold <buffer> nested silent! if &modified | call tablemode#table#Realign('.') | endif
|
||||||
autocmd CursorHoldI <buffer> nested silent! if &modified | call tablemode#table#Realign('.') | endif
|
autocmd InsertLeave <buffer> nested silent! if &modified | call tablemode#table#Realign('.') | endif
|
||||||
augroup END
|
augroup END
|
||||||
else
|
else
|
||||||
autocmd! TableModeAutoAlign CursorHold
|
autocmd! TableModeAutoAlign CursorHold
|
||||||
|
|||||||
Reference in New Issue
Block a user