summaryrefslogtreecommitdiffstats
path: root/ftplugin/terraform.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/terraform.vim')
-rw-r--r--ftplugin/terraform.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftplugin/terraform.vim b/ftplugin/terraform.vim
index e577c737..0ece8bf6 100644
--- a/ftplugin/terraform.vim
+++ b/ftplugin/terraform.vim
@@ -12,7 +12,7 @@ if exists("g:loaded_terraform") || v:version < 700 || &cp || !executable('terraf
endif
let g:loaded_terraform = 1
-if !exists("g:terraform_fmt_on_save")
+if !exists("g:terraform_fmt_on_save") || !filereadable(expand("%:p"))
let g:terraform_fmt_on_save = 0
endif