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
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+
let g:pymode_python = 'python3'
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy