Skip to content

Commit 0350b06

Browse files
committed
Fail silenly on vim with -python
1 parent 551aed1 commit 0350b06

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

plugin/pymode.vim

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let g:pymode_version = "0.6.9"
1+
let g:pymode_version = "0.6.11"
22

33
com! PymodeVersion echomsg "Current python-mode version: " . g:pymode_version
44

@@ -10,13 +10,13 @@ endif
1010

1111
" DESC: Check python support
1212
if !has('python')
13-
echoerr expand("<sfile>:t") . " required vim compiled with +python."
14-
let g:pymode_lint = 0
15-
let g:pymode_rope = 0
13+
let g:pymode_virtualenv = 0
1614
let g:pymode_path = 0
15+
let g:pymode_lint = 0
1716
let g:pymode_doc = 0
17+
let g:pymode_breakpoint = 0
18+
let g:pymode_rope = 0
1819
let g:pymode_run = 0
19-
let g:pymode_virtualenv = 0
2020
endif
2121

2222

@@ -34,7 +34,7 @@ endif
3434
" }}}
3535

3636

37-
" DESC: Fix python path
37+
" DESC: Add pymode's pylibs to sys.path {{{
3838
if !pymode#Default('g:pymode_path', 1) || g:pymode_path
3939

4040
call pymode#Default('g:pymode_paths', [])
@@ -49,7 +49,7 @@ libpath = os.path.join(os.path.dirname(os.path.dirname(
4949
sys.path = [os.path.dirname(libpath), libpath, curpath] + vim.eval("g:pymode_paths") + sys.path
5050
EOF
5151

52-
endif
52+
endif " }}}
5353

5454

5555
" Lint {{{

0 commit comments

Comments
 (0)