mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
+2
-2
@@ -17,7 +17,7 @@ or icons. There exist a couple of plugins and settings for the VIM editor to
|
|||||||
aid Python development. If you only develop in Python, a good start is to set
|
aid Python development. If you only develop in Python, a good start is to set
|
||||||
the default settings for indentation and line-wrapping to values compliant with
|
the default settings for indentation and line-wrapping to values compliant with
|
||||||
:pep:`8`. In your home directory, open a file called `.vimrc` and add the
|
:pep:`8`. In your home directory, open a file called `.vimrc` and add the
|
||||||
following lines:::
|
following lines::
|
||||||
|
|
||||||
set textwidth=79 " lines longer than 79 columns will be broken
|
set textwidth=79 " lines longer than 79 columns will be broken
|
||||||
set shiftwidth=4 " operation >> indents 4 columns; << unindents 4 columns
|
set shiftwidth=4 " operation >> indents 4 columns; << unindents 4 columns
|
||||||
@@ -118,7 +118,7 @@ Sublime Text
|
|||||||
extraordinary features and amazing performance.
|
extraordinary features and amazing performance.
|
||||||
|
|
||||||
Sublime Text has excellent support for editing Python code and uses Python for
|
Sublime Text has excellent support for editing Python code and uses Python for
|
||||||
its plugin API. It also has plugins a diverse variety of plugins, `some of which <https://github.com/SublimeLinter/SublimeLinter>`_
|
its plugin API. It also has a diverse variety of plugins, `some of which <https://github.com/SublimeLinter/SublimeLinter>`_
|
||||||
allow for in-editor PEP8 checking and code "linting".
|
allow for in-editor PEP8 checking and code "linting".
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ Other useful commands
|
|||||||
|
|
||||||
autoenv
|
autoenv
|
||||||
-------
|
-------
|
||||||
When you ``cd`` into a directory containing a ``.env`` `autoenv <https://github.com/kennethreitz/autoenv>`_
|
When you ``cd`` into a directory containing a ``.env``, `autoenv <https://github.com/kennethreitz/autoenv>`_
|
||||||
automagically activates the environment.
|
automagically activates the environment.
|
||||||
|
|
||||||
Install it on Mac OS X using ``brew``:
|
Install it on Mac OS X using ``brew``:
|
||||||
|
|||||||
Reference in New Issue
Block a user