Reputation:
I'm trying to learn a little about python scripting in GVim, but I'm having trouble with starting. Elementary things, really.
Are there any resources / tutorials concerting python scripting in Vim out there ? Simple examples which show the basic principles, would be welcomed also.
Upvotes: 34
Views: 7022
Reputation: 881635
Here is all I know of in terms of such docs:
Upvotes: 23
Reputation: 10028
Have you checked out Learn Vimscript The Hard Way? It is an excellent read.
vim 7.0 and above can be compiled with the +python
flag, which gives vim Python support. This is a (albeit, somewhat extreme) path to getting the language support you want.
Links
Upvotes: 4
Reputation: 11847
:help python-vim is a good start. The best vim resource is always at your fingertips and the sooner you get used to referring to it the better you will get at vim overall.
I got better at searching vim help with this..
How do I make vim do normal (bash like) tab completion for file names?
also :he vim-script-intro
I'd also recommend looking straight at the source of existing plugins that do something similar to what you want to do. That way you cut out the middle man and dont have to deal with blog ads and other distractions.
Upvotes: 4