diff --git a/vimrc b/vimrc index 0a54b006..ad50a34c 100644 --- a/vimrc +++ b/vimrc @@ -99,4 +99,6 @@ autocmd BufReadPost * " End of copied from https://raw.githubusercontent.com/ProgVal/misc/master/dotfiles/.vimrc " If we have tabs, remove them -retab +if has("autocmd") + au BufReadPost * if &modifiable | retab | endif +endif