Set vim tab to 4 spaces

The default tab of Vim editor is 8 spaces, but for pythoner, it must be adjusted to 4 spaces.

Methods as below:

Add the following settings to the ~/.vimrc file:

1  set ts= 4 #Set tabstop to 4 spaces 
2  set expandtab

Re-open vim and you can tab happily~

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324733007&siteId=291194637
Recommended