Set shiftwidth=4 "This amount is the indentation depth per line, generally set to the same width as tabstop" set tabstop=4 "sets the width of the tab display, Python is recommended to set to 4" "just said tab and space is different, Although you can use the tab in your own code "" But if you share your code with a friend who uses spaces, it will cause a lot of trouble "" then set the following line to automatically expand the tab to the space "set Expandtab" If you just want to expand the tab into a space in a Python file, change to the following phrase "Autocmd FileType python set Expandtab" Some of the above configurations already allow you to avoid compiling problems with errors "" However, there are some configuration is to suggest students to add the "set smartindent" Smart indent "set Cindent" C language Style indentation "set autoindent" Auto Indent "
Set the VIM profile so that tab is 4 spaces