, vim, python , vim 7, , python script vim.
, , python:
:version
vim, ; python, "+ python" - ( "-python" ). python, , vim python.
python , :
python << EOF
import vim
import MySharedLibraryPythonBinding
def MyFunction():
x = vim.eval('expand ("<cword>")')
MySharedLibraryPythonBinding.GetReplacement(x)
vim.current.line = "add something sensible here..."
EOF
nmap <F3> :py MyFunction( expand("<cword>") )<CR>
, , , , .