Auto indent and tab space 4 in VIM

To set tab stop and auto indent open ~/.vimrc

filetype plugin indent on

" show existing tab with 4 spaces width

set tabstop=4

" when indenting with '>', use 4 spaces width

set shiftwidth=4

" On pressing tab, insert 4 spaces set expandtab

About the Author

Yogi

17 years of experience in various layers of software. Primarily experienced in system side software design and development on server management software. Interested in linux development in x86 and arm architecture.

Leave a Reply