From c35fd9b104fb75017f3866a28a77cf38f61b7801 Mon Sep 17 00:00:00 2001 From: Dhruva Sagar Date: Tue, 13 Feb 2018 08:34:35 +0530 Subject: [PATCH] Remove CursorHoldI for auto-align. Fix #128 Since auto-align in insert mode causes snags, removing it and instead doing it on InsertLeave instead --- autoload/tablemode.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/tablemode.vim b/autoload/tablemode.vim index 240518a..e4db219 100644 --- a/autoload/tablemode.vim +++ b/autoload/tablemode.vim @@ -99,7 +99,7 @@ function! s:ToggleAutoAlign() "{{{2 au! autocmd CursorHold nested silent! if &modified | call tablemode#table#Realign('.') | endif - autocmd CursorHoldI nested silent! if &modified | call tablemode#table#Realign('.') | endif + autocmd InsertLeave nested silent! if &modified | call tablemode#table#Realign('.') | endif augroup END else autocmd! TableModeAutoAlign CursorHold