Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6a45957

Browse filesBrowse files
author
Kenneth Reitz
committed
Merge pull request realpython#180 from mrtazz/patch-1
add notes about vim usage with syntastic
2 parents 627e1a1 + e5caa56 commit 6a45957
Copy full SHA for 6a45957

File tree

Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed

‎docs/dev/env.rst

Copy file name to clipboardExpand all lines: docs/dev/env.rst
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,24 @@ order to do this, add the following lines to your `vimrc`::
5050
autocmd BufWritePost *.py call Pyflakes()
5151
autocmd BufWritePost *.py call Pep8()
5252

53+
If you are already using syntastic_ you can enable it to run Pyflakes on write
54+
and show errors and warnings in the quickfix window. An example configuration
55+
to do that which also shows status and warning messages in the statusbar would be::
56+
57+
set statusline+=%#warningmsg#
58+
set statusline+=%{SyntasticStatuslineFlag()}
59+
set statusline+=%*
60+
let g:syntastic_auto_loc_list=1
61+
let g:syntastic_loc_list_height=5
62+
5363

5464
.. _indent: http://www.vim.org/scripts/script.php?script_id=974
5565
.. _syntax: http://www.vim.org/scripts/script.php?script_id=790
5666
.. _Pyflakes: http://pypi.python.org/pypi/pyflakes/
5767
.. _vim-pyflakes: https://github.com/nvie/vim-pyflakes
5868
.. _PEP8: http://pypi.python.org/pypi/pep8/
5969
.. _vim-pep8: https://github.com/nvie/vim-pep8
70+
.. _syntastic: https://github.com/scrooloose/syntastic
6071

6172
.. todo:: add supertab notes
6273

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.