Skip to content

Commit b563215

Browse files
committed
Do not indent and other ftplugin if g:pymode is zero.
1 parent 5eb0022 commit b563215

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

after/indent/python.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
if pymode#Default('g:pymode', 1) || !g:pymode
2+
finish
3+
endif
4+
15
if pymode#Default('b:pymode_indent', 1) || !g:pymode_indent
26
finish
37
endif

ftplugin/python/pymode.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
runtime ftplugin/python/init-pymode.vim
22

3+
if pymode#Default('g:pymode', 1) || !g:pymode
4+
finish
5+
endif
6+
37
if pymode#Default('b:pymode', 1)
48
finish
59
endif

0 commit comments

Comments
 (0)