DEV Community

Reishi Mitani
Reishi Mitani

Posted on

Set tab to 4 spaces in vim

Create or edit .vimrc in your default directory.

// go back to your root directory
$ cd
// create or edit .vimrc
$ vi .vimrc

// inside .vimrc, add the line below
set tabstop=4
Enter fullscreen mode Exit fullscreen mode

Top comments (0)