I like to use spaces instead of tabs so I have this line in my .vimrc file:

1
set expandtab

This line will write spaces instead of tabs every time I hit the tab key.

Lately I’ve been working a little with Go. The standard in Go is to use tabs instead of spaces so I needed to change this preference for Go projects. The only thing that I needed to do is to add this line to my project .vimrc file:

1
set expandtab!
[ productivity  vim  ]
Using Arduino Language Server With Neovim
Getting Started With Neovim
Setting up LSP in Vim
Vim command line mode
The Vim statusline