.vimrc: Set soft tab stop to shiftwidth
For more consistent behavior with tab, indent, and delete when pre- ferring spaces over tabs. See: http://vimcasts.org/episodes/tabs-and-spaces/
This commit is contained in:
parent
a78a074ad0
commit
94db3bdd01
1
.vimrc
1
.vimrc
@ -1,5 +1,6 @@
|
|||||||
set number " show line numbers
|
set number " show line numbers
|
||||||
set tabstop=4 " number of visual spaces per tab
|
set tabstop=4 " number of visual spaces per tab
|
||||||
|
set softtabstop=4 " number of spaces in tab when editing
|
||||||
set shiftwidth=4 " number of spaces in an indent
|
set shiftwidth=4 " number of spaces in an indent
|
||||||
set expandtab " tabs are spaces
|
set expandtab " tabs are spaces
|
||||||
set backspace=2 " backspace like in a graphical text editor
|
set backspace=2 " backspace like in a graphical text editor
|
||||||
|
Loading…
Reference in New Issue
Block a user