LoginSignup
0
0

More than 5 years have passed since last update.

PerlのTestCode(*.t)をvimで開いたときにPerlのSyntaxハイライトを有効にする

Last updated at Posted at 2013-06-21

PerlでTestCodeを書いてるときにふと気がついたこと……
それは……

vimでPerlのSyntaxハイライトがかかってない。

なので、vimの設定をオーバーライトしてやりましょう。
$HOME/.vimに以下のファイルを置く。

filetype.vim
augroup filetypedetect
  au!
  au  BufRead,BufNewFile *.t     setf perl
augroup END

あとはvimを開き直すだけ。
簡単だね☆

0
0
2

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