How to change the indentation I recently used vim to write something indent is not used to I checked it online: set & nbsp; ts4 & nbsp; sw4 can modify the indent but exit & nbsp; the indent disappears when you enter & nbsp; how to modify the configuration again & nbsp; make it take effect all the time ...... ------ solution-how to modify indentation
Recently I used vim to write something.
Influence
I checked it online.
: Set ts = 4 sw = 4
Indentation can be modified.
However, when you exit
The indentation disappears.
Enter again
How can I modify the configuration to keep it effective ......
------ Solution --------------------
Modify the vimrc configuration file and add this line so that it can be permanently saved.
This file is in the/home/username/. vimrc directory.
Alternatively, it may be in the VIM installation directory or/etc/vimrc