File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
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
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ level of compatibility with Python packages and C extension modules.
5252
5353If you are writing open-source Python code and want to reach the widest possible
5454audience, targeting CPython is your best bet. If you need to use any packages
55- that are rely on C extensions for their functionality (eg: numpy) then CPython
55+ that rely on C extensions for their functionality (eg: numpy) then CPython
5656is your only choice.
5757
5858Being the reference implementation, all versions of the Python language are
You can’t perform that action at this time.
0 commit comments