0% found this document useful (0 votes)
110 views

VIM As A Python IDE

The document discusses using the Vim text editor as an integrated development environment (IDE) for Python. It begins by providing background on the author's experience with different editors and platforms over time. The main points are that Vim is cross-platform, customizable, and good for pair programming. It then outlines what components make up an IDE like code completion and debugging. The bulk of the document provides steps to install Vim and configure it as a Python IDE, including installing plugins for syntax highlighting, code analysis, and file navigation. It concludes by thanking the audience and providing links for additional resources.

Uploaded by

Tom Smith
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
110 views

VIM As A Python IDE

The document discusses using the Vim text editor as an integrated development environment (IDE) for Python. It begins by providing background on the author's experience with different editors and platforms over time. The main points are that Vim is cross-platform, customizable, and good for pair programming. It then outlines what components make up an IDE like code completion and debugging. The bulk of the document provides steps to install Vim and configure it as a Python IDE, including installing plugins for syntax highlighting, code analysis, and file navigation. It concludes by thanking the audience and providing links for additional resources.

Uploaded by

Tom Smith
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

VIM AS A PYTHON IDE

Its much easier than you think


Martin Brochhaus (@mbrochh)
PyCon APAC 2012
Saturday, June 9, 12
WHERE DO I COME FROM?
1982 1994 1996 2003 2005 2008 2011
Amiga
Basic
Win 95
PHP
Dreamweaver
Win XP
JAVA
Eclipse
Win XP
C#
Visual Studio
Ubuntu
Python
Wing IDE
Ubuntu
Python
Vim
Saturday, June 9, 12

Cross platform

Standard on most systems

Very fast

Its good for your health


(HJKL movement)

Highly customizable

Great for pair programming

Work anywhere, anytime

Change jobs, keep tools


WHY SHOULD YOU CARE?
Saturday, June 9, 12
WHAT MAKES AN IDE?

Fast access to all les

Color scheme

Syntax highlighting

Static code analysis

Code completion

Go to denition

Refactoring

Debugging
Saturday, June 9, 12
TOPICS
1. How to install Vim
2. Your rst .vimrc
3. Install your plugins
4. Pair Programming
Saturday, June 9, 12
1. HOW TO INSTALL VIM
# Prerequisites:
# (Ubuntu) sudo apt-get build-dep vim
# (OSX) Command Line Tools for Xcode
$ hg clone https://vim.googlecode.com/hg/ vim
$ cd vim/src
$ ./configure --enable-pythoninterp --with-features=huge --prefix=$HOME/opt/vim
$ make && make install
$ mkdir -p $HOME/bin
$ cd $HOME/bin
$ ln -s $HOME/opt/vim/bin/vim
$ which vim
$ vim --version
# on Ubuntu:
$ sudo apt-get install gtk2-engines-pixbuf
Saturday, June 9, 12
2. YOUR FIRST .VIMRC

Start from scratch

Get inspired: vimbits.com

Steal whatever you need

Ask others (#vim)

save your .vimrc on GitHub


Saturday, June 9, 12
3. INSTALL YOUR PLUGINS

vim-powerline
(https://github.com/Lokaltog/vim-powerline)

python-mode
(https://github.com/klen/python-mode)

ctrlp.vim
(https://github.com/kien/ctrlp.vim)

python_editing
(http://www.vim.org/scripts/script.php?script_id=1494)
Saturday, June 9, 12
4. PAIR PROGRAMMING
http://martinbrochhaus.com/2012/05/pair.html
Saturday, June 9, 12
THANK YOU
(https://github.com/mbrochh/vim-as-a-python-ide)
@mbrochh
Saturday, June 9, 12

You might also like