Ubuntu vim tab changed to 4 spaces

[plain] view plaincopy    
 
  1. vim /etc/vim/vimrc  

 

Add the following 3 lines:

 

[plain] view plaincopy    
 
  1. set ts=4  
  2. set expandtab  
  3. set autoindent  

 

Guess you like

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