1. 配置vim
1.1 下载
bash
git clone https://github.com/hashivim/vim-terraform.git ~/.vim/pack/plugins/start/vim-terraform
git clone https://github.com/hashivim/vim-terraform.git ~/.vim/pack/plugins/start/vim-terraform
1.2 配置
bash
cat .vimrc
let g:terraform_fmt_on_save=1
let g:terraform_align=1
cat .vimrc
let g:terraform_fmt_on_save=1
let g:terraform_align=1