File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff 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,
2020open 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
2930With these settings, newlines are inserted after 79 characters and indentation
3031is set to 4 spaces per tab. If you also use VIM for other languages, there is a
You can’t perform that action at this time.
0 commit comments