Python Wiki
Friday, August 18, 2017
E126: Missing :endfunction when writing Vim plugins in Python
There no spaces allowed before the trailing EOF.
This code works in Vim compiled with python3 support:
function! MyFunction()
python3 << EOF
print("Test print")
EOF
endfunction
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment