updated .vimrc

pull/2/head
Hari Sekhon 3 years ago
parent 479be3ff0f
commit 3c2a44ff29

@ -596,8 +596,8 @@ endfunction
" Hashicorp Terraform " Hashicorp Terraform
function! TerraformValidate() function! TerraformValidate()
" remove terraform plan copy-pasted removals for fast backporting " remove terraform plan copy-pasted removals for fast backporting
:%s/ [-~] //e :%s/^[[:space:]]*[-~][[:space:]]//e
:%s/ -> .*//e :%s/[[:space:]]->[[:space:]].*$//e
:!clear; bash -c 'if [ -d "%:p:h"/.terraform ]; then cd "%:p:h"; fi; { terraform fmt -diff; terraform validate; } | more -R' :!clear; bash -c 'if [ -d "%:p:h"/.terraform ]; then cd "%:p:h"; fi; { terraform fmt -diff; terraform validate; } | more -R'
endfunction endfunction

Loading…
Cancel
Save