File tree Expand file tree Collapse file tree 6 files changed +21
-21
lines changed
Expand file tree Collapse file tree 6 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 22call helpers#SafeVar (" g:pymode_breakpoint" , 1 )
33
44" DESC: Disable script loading
5- if ! g: pymode_breakpoint
5+ if ! g: pymode_breakpoint
66 finish
77endif
88
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ let g:scriptname = expand("<sfile>:t")
55call helpers#SafeVar (" g:pymode_doc" , 1 )
66
77" DESC: Disable script loading
8- if g: pymode_doc == 0
8+ if ! g: pymode_doc
99 finish
1010endif
1111
Original file line number Diff line number Diff line change 22call helpers#SafeVar (" g:pymode_lint" , 1 )
33
44" DESC: Disable script loading
5- if g: pymode_lint == 0
6- finish
7- endif
8-
9- " DESC: Check python support
10- if ! has (' python' )
11- echoerr expand (" <sfile>:t" ) . " required vim compiled with +python."
12- let g: pymode_lint = 0
5+ if ! g: pymode_lint || ! g: pymode
136 finish
147endif
158
Original file line number Diff line number Diff line change 22call helpers#SafeVar (" g:pymode_rope" , 1 )
33
44" DESC: Disable script loading
5- if g: pymode_rope == 0
6- finish
7- endif
8-
9- " DESC: Check python support
10- if ! has (' python' )
11- echoerr expand (" <sfile>:t" ) . " required vim compiled with +python."
12- let g: pymode_rope = 0
5+ if ! g: pymode_rope || ! g: pymode
136 finish
147endif
158
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ let g:scriptname = expand("<sfile>:t")
55call helpers#SafeVar (" g:pymode_run" , 1 )
66
77" DESC: Disable script loading
8- if g: pymode_run == 0
8+ if ! g: pymode_run
99 finish
1010endif
1111
Original file line number Diff line number Diff line change 1- if exists (' g:python_path' ) || ! has (' python' )
1+ " OPTION: g:pymode -- bool. Run pymode.
2+ call helpers#SafeVar (" g:pymode" , 1 )
3+
4+ let g: pymode_path = 0
5+
6+ " DESC: Disable script loading
7+ if ! g: pymode || g: pymode_path
8+ finish
9+ endif
10+
11+ " DESC: Check python support
12+ if ! has (' python' )
13+ echoerr expand (" <sfile>:t" ) . " required vim compiled with +python."
14+ echoerr " Pymode pylint and rope plugins will be disabled."
15+ let g: pymode = 0
216 finish
317endif
4- let g: python_path = 1
18+ let g: pymode_path = 1
519
620python << EOF
721import sys, os, vim
You can’t perform that action at this time.
0 commit comments