From d43b70d93987c94d15a352cf0026fb93d3317cc8 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 26 Dec 2018 10:41:57 +0100 Subject: Update --- ftplugin/terraform.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ftplugin/terraform.vim') diff --git a/ftplugin/terraform.vim b/ftplugin/terraform.vim index ce646377..bbebacbc 100644 --- a/ftplugin/terraform.vim +++ b/ftplugin/terraform.vim @@ -61,9 +61,9 @@ endfunction augroup terraform autocmd! - autocmd VimEnter * + autocmd BufEnter * \ command! -nargs=+ -complete=custom,s:commands Terraform execute '!terraform '.. ' -no-color' - autocmd VimEnter * command! -nargs=0 TerraformFmt call terraform#fmt() + autocmd BufEnter * command! -nargs=0 TerraformFmt call terraform#fmt() if get(g:, "terraform_fmt_on_save", 1) autocmd BufWritePre *.tf call terraform#fmt() autocmd BufWritePre *.tfvars call terraform#fmt() -- cgit v1.2.3