From bde5b4ff6398feafca36ba82050203d6bdd4c463 Mon Sep 17 00:00:00 2001 From: Sergey Alexandrov Date: Sun, 13 May 2018 14:31:43 -0400 Subject: [PATCH] Use normal! to autointent code ... otherwise might not work as expected if the user mapped any of the commands used. See [here](http://learnvimscriptthehardway.stevelosh.com/chapters/29.html) about `normal!`. --- plugin/autoformat.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/autoformat.vim b/plugin/autoformat.vim index 289ff53..adacb78 100644 --- a/plugin/autoformat.vim +++ b/plugin/autoformat.vim @@ -169,7 +169,7 @@ function! s:Fallback() echomsg "Autoindenting..." endif " Autoindent code - exe "normal gg=G" + exe "normal! gg=G" endif endfunction