IT戦記

プログラミング、起業などについて書いているプログラマーのブログです😚

Makefile だけ expandtab やめたい

毎回

set noexpandtab するのめんどい><
ってことで

これでいいのかな?

なんかうまくいってるみたいだからいいのか。

~ $ cat ~/.vim/syntax/make.vim
set noexpandtab

vim 使いだけど

ほとんどデフォルトのまま使ってる><
もっと色々いぢりたくなってきた

(追記) ついでに

ktrace で設定ファイル読み込み順をチェック!

$ ktrace -t n vim Makefile
$ kdump | grep -e "\\.vim\"\|vimrc" | uniq
 28988 vim      NAMI  "/usr/share/vim/vimrc"
 28988 vim      NAMI  "/Users/amachang/.vimrc"
 28988 vim      NAMI  "/usr/share/vim/vim62/syntax/syntax.vim"
 28988 vim      NAMI  "/Users/amachang/.vim/syntax/synload.vim"
 28988 vim      NAMI  "/usr/share/vim/vimfiles/syntax/synload.vim"
 28988 vim      NAMI  "/usr/share/vim/vim62/syntax/synload.vim"
 28988 vim      NAMI  "/Users/amachang/.vim/syntax/syncolor.vim"
 28988 vim      NAMI  "/usr/share/vim/vimfiles/syntax/syncolor.vim"
 28988 vim      NAMI  "/usr/share/vim/vim62/syntax/syncolor.vim"
 28988 vim      NAMI  "/usr/share/vim/vimfiles/after/syntax/syncolor.vim"
 28988 vim      NAMI  "/Users/amachang/.vim/after/syntax/syncolor.vim"
 28988 vim      NAMI  "/Users/amachang/.vim/filetype.vim"
 28988 vim      NAMI  "/usr/share/vim/vimfiles/filetype.vim"
 28988 vim      NAMI  "/usr/share/vim/vim62/filetype.vim"
 28988 vim      NAMI  "/usr/share/vim/vimfiles/after/filetype.vim"
 28988 vim      NAMI  "/Users/amachang/.vim/after/filetype.vim"
 28988 vim      NAMI  "/usr/share/vim/vim62/plugin/explorer.vim"
 28988 vim      NAMI  "/usr/share/vim/vim62/plugin/gzip.vim"
 28988 vim      NAMI  "/usr/share/vim/vim62/plugin/netrw.vim"
 28988 vim      NAMI  "/usr/share/vim/vim62/plugin/rrhelper.vim"
 28988 vim      NAMI  "/usr/share/vim/vim62/plugin/tohtml.vim"
 28988 vim      NAMI  "/usr/share/vim/vim62/plugin/explorer.vim"
 28988 vim      NAMI  "/usr/share/vim/vim62/plugin/gzip.vim"
 28988 vim      NAMI  "/usr/share/vim/vim62/plugin/netrw.vim"
 28988 vim      NAMI  "/usr/share/vim/vim62/plugin/rrhelper.vim"
 28988 vim      NAMI  "/usr/share/vim/vim62/plugin/tohtml.vim"
 28988 vim      NAMI  "/Users/amachang/.vim/syntax/make.vim"
 28988 vim      NAMI  "/usr/share/vim/vimfiles/syntax/make.vim"
 28988 vim      NAMI  "/usr/share/vim/vim62/syntax/make.vim"
 28988 vim      NAMI  "/usr/share/vim/vimfiles/after/syntax/make.vim"
 28988 vim      NAMI  "/Users/amachang/.vim/after/syntax/make.vim"

このどれかのファイルに Vimscript を書けばいいということか