LoginSignup
0
0

More than 1 year has passed since last update.

vimscriptでterraform fmt checkをかける

Posted at

内容

  • system()で外部コマンドを呼び出すことができる
  • expand("%:p")は開いているファイルのフルパスを取得する
function! TFfmt()
  let result = system('terraform fmt -no-color -diff -check '. expand("%:p"))
  echo result
endfunction

実行

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0