From a755bed58110011286ac7ebd8fff8e3d827d756f Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sun, 1 Jun 2014 16:15:41 +0300 Subject: [PATCH] vimrc: fix retab. --- vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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