Skip to content

Commit 6493482

Browse files
committed
Update docs/dev/env.rst
.vimrc file: added 'autoindent'; added comments to illustrate.
1 parent 8d90429 commit 6493482

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/dev/env.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ the default settings for indentation and line-wrapping to values compliant with
1919
`PEP 8 <http://www.python.org/dev/peps/pep-0008/>`_. In your home directory,
2020
open a file called `.vimrc` and add the following lines:::
2121

22-
set textwidth=79
23-
set shiftwidth=4
24-
set tabstop=4
25-
set expandtab
26-
set softtabstop=4
27-
set shiftround
22+
set textwidth=79 " lines longer than 79 columns will be broken
23+
set shiftwidth=4 " operation >> indents 4 columns; << unindents 4 columns
24+
set tabstop=4 " an hard TAB displays as 4 columns
25+
set expandtab " insert spaces when hitting TABs
26+
set softtabstop=4 " insert/delete 4 spaces when hitting a TAB/BACKSPACE
27+
set shiftround " round indent to multiple of 'shiftwidth'
28+
set autoindent " align the new line indent with the previous line
2829

2930
With these settings, newlines are inserted after 79 characters and indentation
3031
is set to 4 spaces per tab. If you also use VIM for other languages, there is a

0 commit comments

Comments
 (0)