Vimscript looks somewhat similar to Python code.
Can Vim be integrated with high-level language interpreters, such as Python?
Vimscript looks somewhat similar to Python code.
Can Vim be integrated with high-level language interpreters, such as Python?
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:
:help if_perl.txt
:help if_ruby.txt
:help if_tcl.txt
:help if_lua.txt
:help if_mzscheme.txt
(It's called Racket now, but in Vim it's still called MzScheme for historical reasons).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