Y
Hacker News
new
|
ask
|
show
|
jobs
by
throwaway125
4836 days ago
The following line in your vimrc will make vim not expand tabs for every file named "Makefile".
au BufRead,BufNewFile Makefile set noexpandtab
1 comments
cturner
4836 days ago
Wow - this thread is full of good advice. I have not touched my dot files in about four years, and today they're all getting an upgrade. Thanks!
link
X-Istence
4836 days ago
At least in my vim, Makefiles are automatically set to noexpandtab even-though I have it set to automatically expand tabs for everything else.
link