Thursday, December 15, 2011

Vim (and Emacs)

Biarri now has a few dedicated vim users with their configuration files available online: Myself (Loki) and Noon.

My configuration file is based on Sontek's with a few changes and additions. His description at http://sontek.net/turning-vim-into-a-modern-python-ide is worth a read.

You'll notice that I have disabled my arrow keys. Despite liking the Cure and The Smiths this isn't to hurt myself. It's not ever so I keep my hands on the home row and use hjkl. Instead it's to force me out of insert mode. I now stay in normal mode as much as possible. Since disabling my arrows I've found the combination of traditional vim motions (especially f/F) combined with Easy Motion is fantastic. I usually use f for short jumps and Easy Motion for longer movements.

Easy Motion is really best explained by watching the demo video closely, or just using it. It's quite wonderful and works well with visual mode. I'm also enjoying Command-T, PyFlakes, snipmate and ack. I'm still confused about what the best autocomplete solution is. Supertab doesn't seem to work right for me and ACP, which I was using for a while is useful but somewhat annoying. I would like it to show call signatures and if requested, docstrings in a non-annoying way too. Command-T is the greatest thing imaginable for opening files, buffers and tags.

I've also installed vimwiki but i'm so far unsure about it. I used it to store my ideas and todos in a more organised manner. I suspect it's a bit like a less awesome org mode. Speaking of which we now also have an Emacs user: https://bitbucket.org/tobyodavies/shared/src If anyone knows a good python autocomplete solution I'd love to hear about it.

Loki

0 comments:

Post a Comment