VI Love

June 13th, 2008
[ Geek ]

I’m embarrased to say I didn’t know about shift-k in vi and stumbled upon it with a caps-lock incident. Yes, I am admitting this in public. I didn’t say I was good at this computer crap.

Now I don’t know how I survived without it. Not only will it hook you directly into man pages, it takes file context into place. So shift-k with my cursor over “range” in a python file takes you directly to…

“Help on built-in function range in module __builtin__:

range(…)
range([start,] stop[, step]) -> list of integers………….”

To get the python docs working, you’ll need python-doc installed “sudo apt-get install python-doc” and you’ll need something like this in your .bashrc or related file…

# PYTHONDOCS
PYTHONDOCS=”/usr/share/doc/python2.5/html/”
export PYTHONDOCS

Now can someone comment and tell me how I can wire django docs into this as well??