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!`.
This commit is contained in:
parent
e63b4e957a
commit
bde5b4ff63
@ -169,7 +169,7 @@ function! s:Fallback()
|
||||
echomsg "Autoindenting..."
|
||||
endif
|
||||
" Autoindent code
|
||||
exe "normal gg=G"
|
||||
exe "normal! gg=G"
|
||||
endif
|
||||
|
||||
endfunction
|
||||
|
Loading…
Reference in New Issue
Block a user