Remove Auto Align in insert mode #115

Since realigning doesn't work well in insert mode, I have removed auto
align feature for it. Auto align will now kick in once you have made
changes and get back to normal mode.
This commit is contained in:
Dhruva Sagar
2017-04-20 10:08:18 +05:30
parent 35b41e0822
commit 4e41af8e5f
3 changed files with 4 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ function! s:ToggleAutoAlign() "{{{2
augroup TableModeAutoAlign
au!
autocmd CursorHold,CursorHoldI * nested silent! call tablemode#table#Realign('.')
autocmd CursorHold <buffer> nested silent! call tablemode#table#Realign('.')
augroup END
else
silent! augroup! TableModeAutoAlign