So in my .vimrc file, I have my tabs set to 2 spaces. I know that the Makefile doesn't like this and what I have been doing is temporarily deleting the .vimrc conditions I have and editing the Makefile and then adding everything back to the .vimrc file. Is there any way I can use vim on the Makefile edit it without having to do all the changes? My Makefiles are very simple. Like here below
all: main.cpp
g++ -g -Wall main.cpp
Here is my .vimrc
set number
colorscheme ron
set expandtab
: filetype on
: syntax on
: filetype indent on
set tabstop=2
set shiftwidth=2