8000 Merge branch 'develop' of github.com:python-mode/python-mode into dev… · python-mode/python-mode@7ec01b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ec01b9

Browse files
committed
Merge branch 'develop' of github.com:python-mode/python-mode into develop
2 parents 17b097d + 89888dd commit 7ec01b9

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

README.rst

Lines changed: 16 additions & 0 deletions
< 8000 td data-grid-cell-id="diff-7b3ed02bc73dc06b7db906cf97aa91dec2b2eb21f2d92bc5caa761df5bbc168f-165-177-2" data-line-anchor="diff-7b3ed02bc73dc06b7db906cf97aa91dec2b2eb21f2d92bc5caa761df5bbc168fR177" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-additionLine-bgColor, var(--diffBlob-addition-bgColor-line));padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell right-side-diff-cell left-side">+
let g:pymode_python = 'python3'
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,22 @@ You can override the default key bindings by redefining them in your `.vimrc`, f
163163
let g:pymode_doc_bind = "<C-S-d>"
164164

165165

166+
Frequent Problems
167+
=================
168+
169+
Read this section before opening an issue on the tracker.
170+
171+
Python 3 Syntax
172+
---------------
173+
174+
By default python-mode uses python 2 syntax checking. To enable python 3
175+
syntax checking (e.g. for async) add::
176+
177
178+
179+
To your vimrc or exrc file
180+
181+
166182
Documentation
167183
=============
168184

plugin/pymode.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ call pymode#default("g:pymode_folding", 1)
3939
" Maximum file length to check for nested class/def statements
4040
call pymode#default("g:pymode_folding_nest_limit", 1000)
4141
" Change for folding customization (by example enable fold for 'if', 'for')
42-
call pymode#default("g:pymode_folding_regex", '^\s*\%(class\|def\) \w\+')
42+
call pymode#default("g:pymode_folding_regex", '^\s*\%(class\|def\|async\s\+def\) \w\+')
4343

4444
" Enable/disable python motion operators
4545
call pymode#default("g:pymode_motion", 1)

0 commit comments

Comments
 (0)
0