23

Vimscript looks somewhat similar to Python code.

Can Vim be integrated with high-level language interpreters, such as Python?

1
  • 1
    When you have read the documentation that @derobert points to, you may find Jarrod Taylor's demo of writing python plugins helpful. He also hosts a "plugin starter kit" at his github. I don't use it, but I found reading the code and the project wiki pages to be instructive.
    – jjaderberg
    Commented May 10, 2015 at 11:34

2 Answers 2

20

Yes, vim can be built with several different language interpreters available. This is something you (or your distro) picked when compiling vim from source.

Available at least are Python (as you requested), Perl, Ruby, and Tcl. The vim documentation has details for each; the python one is in :help if_pyth.txt. That document has plenty of examples.

For reference, here are the ones for other languages:

6

Yes, you can create routines with high level languages such as python, ruby, perl, among other.

To see what languages your vim supports:

vim --version

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.