File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ fun! pymode#doc#Show(word) "{{{
5
5
if a: word == ' '
6
6
echoerr " No name/symbol under cursor!"
7
7
else
8
- py import StringIO
9
- py sys.stdout, _ = StringIO.StringIO (), sys.stdout
10
- py help (vim . eval ( ' a:word' ) )
11
- py sys.stdout, out = _, sys.stdout.getvalue ()
8
+ call pymode#Execute ( " import StringIO" )
9
+ call pymode#Execute ( " sys.stdout, _ = StringIO.StringIO(), sys.stdout" )
10
+ call pymode#Execute ( " help(' " . a: word. " ') " )
11
+ call pymode#Execute ( " sys.stdout, out = _, sys.stdout.getvalue() " )
12
12
call pymode#TempBuffer ()
13
- py vim .current.buffer .append (str (out).split ( ' \n ' ), 0 )
13
+ call pymode#Execute ( " vim.current.buffer.append(str(out).splitlines( ), 0) " )
14
14
wincmd p
15
15
endif
16
16
endfunction " }}}
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ fun! pymode#lint#Check() "{{{
14
14
15
15
let g: pymode_lint_buffer = bufnr (' %' )
16
16
17
- py from pymode import lint
18
- py lint.check_file ()
17
+ call pymode#Execute ( " from pymode import lint" )
18
+ call pymode#Execute ( " lint.check_file() " )
19
19
20
20
endfunction " }}}
21
21
@@ -100,8 +100,8 @@ fun! pymode#lint#Auto() "{{{
100
100
return 0
101
101
endtry
102
102
endif
103
- py from pymode import auto
104
- py auto.fix_current_file ()
103
+ call pymode#Execute ( " from pymode import auto" )
104
+ call pymode#Execute ( " auto.fix_current_file() " )
105
105
cclose
106
106
edit
107
107
call pymode#WideMessage (" AutoPep8 done." )
Original file line number Diff line number Diff line change 1
1
fun ! pymode#queue#Poll () " {{{
2
2
3
3
" Check current tasks
4
- py queue.check_task ()
4
+ call pymode#Execute (" from pymode import queue" )
5
+ call pymode#Execute (" queue.check_task()" )
5
6
6
7
" Update interval
7
8
if mode () == ' i'
You can’t perform that action at this time.
0 commit comments