?
=?iso-8859-1?Q?Fran=E7ois?= Pinard
[sb]
I did not read it as a tutorial, but as a concise and useful reference.
The real documentation is the usual Python documentation, all that we
use outside Vim, plus the result of `:h python' for classes, functions
and values specific to Vim. There is not much of them, but there is no
need for much either; what is provided is surely sufficient for a great
lot of applications.
The same would not give you output in Python either (unless you run
Python in an interactive read-eval-print loop, like when you call Python
without arguments from an interactive shell). However, you may use:
y print dir(sys)
...
y print dir(vim)
You have to ask for printing, if you want printing.
Just do:[...] but what about vim scripting with python? I can not find
*anything* about it (no docs, books or tutorials)
:h python
Thanks, but that is more like a very abbreviated tutorial.
I did not read it as a tutorial, but as a concise and useful reference.
Where can I can the real documentation? It seems like the python
built into vim is different. [...] I want the real documentation for
the "vim" module accessible from vim. What classes, functions, values
are defined there, etc
The real documentation is the usual Python documentation, all that we
use outside Vim, plus the result of `:h python' for classes, functions
and values specific to Vim. There is not much of them, but there is no
need for much either; what is provided is surely sufficient for a great
lot of applications.
For example, doing
y import sys
y dir(sys)
produces no output. Odd. Same with
y import vim
y dir(vim)
The same would not give you output in Python either (unless you run
Python in an interactive read-eval-print loop, like when you call Python
without arguments from an interactive shell). However, you may use:
y print dir(sys)
...
y print dir(vim)
You have to ask for printing, if you want printing.