用vim编写Makefile文件的时候,tab键总转换成空格符,导致make时候出错。解决方案如下: 在 /etc/vim/.vimrc文件中添加 autocmd FileType make set noexpandtab