Answers for "vim set tab width to 2 spaces"

4

vim set tab size

:set tabstop=2 shiftwidth=2 expandtab
:retab

# tabstop		-> Indentation width in spaces
# shiftwidth	-> Autoindentation width in spaces
# expandtab		-> Use actual spaces instead of tabs
# retab			-> Convert existing tabs to spaces
Posted by: Guest on December-25-2020
0

linux vim set tab to 4 spaces

syntax enable
Posted by: Guest on July-03-2020

Browse Popular Code Answers by Language