Skip to content

Commit dcf5593

Browse files
committed
Disable syntax from pymodeline
1 parent fb93f9e commit dcf5593

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

ftplugin/python/pymode.vim

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ if pymode#Default('b:pymode', 1)
22
finish
33
endif
44

5+
6+
" Parse pymode modeline
7+
call pymode#Modeline()
8+
9+
510
" Syntax highlight
611
if pymode#Option('syntax')
712
let python_highlight_all=1
813
endif
914

1015

11-
" Parse pymode modeline
12-
call pymode#Modeline()
13-
14-
1516
" Options {{{
1617

1718
" Python indent options

syntax/python.vim

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
" vim: ft=vim:fdm=marker
22

3-
" OPTION: g:pymode_syntax -- bool.
4-
call pymode#Default('g:pymode_syntax', 1)
5-
63
" DESC: Disable script loading
7-
if !g:pymode_syntax || pymode#Default('b:current_syntax', 'python')
4+
if !pymode#Option('syntax') || pymode#Default('b:current_syntax', 'python')
85
finish
96
endif
107

0 commit comments

Comments
 (0)