notes for Vim scripting with python:
create /.vim/autoload/test.vim
python3 << en import vim def testMessage(): print("Hello World") en nmap <silent> ,m :python3 testMessage()<CR>
in .vimrc add
source /.vim/autoload/test.vim
call with
:py3 testMessage() ,m
src
https://dzone.com/articles/how-write-vim-plugins-python http://codeseekah.com/2012/03/04/vim-scripting-with-python-lookup-ip-country/