3 ms·
>I have the same setting, but vim automatically sets `noexpandtab` when editing a file named Makefile. Yes, you can see this in the make filetype plugin in Vim
by alwillis 7y ago
>I have the same setting, but vim automatically sets `noexpandtab` when editing a file named Makefile.
Yes, you can see this in the make filetype plugin in Vim’s $VIMRUNTIME directory, which is usually
/usr/share/vim/vim81
which contains all of the plugins, syntax definition files, etc. that come with Vim. The file for make is located at
$VIMRUNTIME/ftplugin/make.vim.
It’s pretty straight forward to override any default behavior you’d like to change; this is a great article on how all of this works [1].
[1]: https://vimways.org/2018/from-vimrc-to-vim/ https://vimways.org/2018/from-vimrc-to-vim/