vimscript中python返回数据给vimscript
最近在学习用VimL和python写vim插件,碰到些问题,求大神指导
比如
function! GetWord()
let string = "some text"
python << endpython
""这里是python code
some_other_text = "some other text"
"然后想要把some_other_text赋值给string
""应该怎么做呢
endpython
return
endfunction
求大神指导