I'm using vim to write in C for college. My .c files need to abide to specific formatting rules. While I'm writing my files on Linux, the .c files will be evaluated on macOS. I noticed that any tabs on lines with a "*" character will register as spaces on macOS. This is completely invisible to me on Linux and I can only see this once I open my files on a Mac.
Strangely the program that the school provides to check my formatting does detect the lack of tabs(on linux). But according to vim those lines contain tabs.
Why is this happening and can I fix it?