Skip to content

Commit 1d3fcbc

Browse files
committed
Some updates.
1 parent 4b72013 commit 1d3fcbc

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

after/plugin/pymode_breakpoint.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
call helpers#SafeVar("g:pymode_breakpoint", 1)
33

44
" DESC: Disable script loading
5-
if ! g:pymode_breakpoint
5+
if !g:pymode_breakpoint
66
finish
77
endif
88

after/plugin/pymode_doc.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let g:scriptname = expand("<sfile>:t")
55
call 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
1010
endif
1111

after/plugin/pymode_lint.vim

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22
call 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
147
endif
158

after/plugin/pymode_rope.vim

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22
call 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
147
endif
158

after/plugin/pymode_run.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let g:scriptname = expand("<sfile>:t")
55
call 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
1010
endif
1111

plugin/pymode_path.vim

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
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
317
endif
4-
let g:python_path = 1
18+
let g:pymode_path = 1
519

620
python << EOF
721
import sys, os, vim

0 commit comments

Comments
 (0)