forked from VimPlug/jedi-vim
improve indentation of #117
This commit is contained in:
+5
-2
@@ -54,9 +54,10 @@ if g:jedi#auto_initialization
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
fun! Pyedit(cmd, args)
|
fun! Pyedit(cmd, args)
|
||||||
" args are the same as for the :edit command
|
|
||||||
" cmd: one of edit, split, vsplit, tabedit, ...
|
|
||||||
py << EOF
|
py << EOF
|
||||||
|
# args are the same as for the :edit command
|
||||||
|
# cmd: one of edit, split, vsplit, tabedit, ...
|
||||||
|
if 1:
|
||||||
import vim
|
import vim
|
||||||
import jedi
|
import jedi
|
||||||
import os.path as osp
|
import os.path as osp
|
||||||
@@ -78,6 +79,7 @@ endfun
|
|||||||
|
|
||||||
fun! Pyedit_comp(argl, cmdl, pos)
|
fun! Pyedit_comp(argl, cmdl, pos)
|
||||||
py << EOF
|
py << EOF
|
||||||
|
if 1:
|
||||||
import vim
|
import vim
|
||||||
import re
|
import re
|
||||||
import json
|
import json
|
||||||
@@ -95,6 +97,7 @@ vim.command("let comps = '%s'" % '\n'.join(comps))
|
|||||||
EOF
|
EOF
|
||||||
return comps
|
return comps
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
command! -nargs=1 -complete=custom,Pyedit_comp Pyedit :call Pyedit('edit', <q-args>)
|
command! -nargs=1 -complete=custom,Pyedit_comp Pyedit :call Pyedit('edit', <q-args>)
|
||||||
" command! -nargs=1 -complete=custom,Pyedit_comp Pysplit :call Pyedit('split', <q-args>)
|
" command! -nargs=1 -complete=custom,Pyedit_comp Pysplit :call Pyedit('split', <q-args>)
|
||||||
" command! -nargs=1 -complete=custom,Pyedit_comp Pyvsplit :call Pyedit('vsplit', <q-args>)
|
" command! -nargs=1 -complete=custom,Pyedit_comp Pyvsplit :call Pyedit('vsplit', <q-args>)
|
||||||
|
|||||||
Reference in New Issue
Block a user