Diana
Diana

Reputation:

Resources concerning Python scripting in Vim

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

Answers (4)

Swaroop C H
Swaroop C H

Reputation: 17024

Refer to the Scripting chapter in 'A Byte of Vim'.

Upvotes: 3

mvanveen
mvanveen

Reputation: 10028

Vimscript The Hard Way

Have you checked out Learn Vimscript The Hard Way? It is an excellent read.

Scripting Vim With Python

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

michael
michael

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

Related Questions