Perfecting Vim

Published 16 January 2011

Before I started using vim, my main text editor was the e-text editor. Now that I've been using vim for a while, I have no desire to go back to e, but I still miss one feature -- smart indenting on line wrap. When typing in e if my text wrapped around to the next line it would automatically be indented at the level of the previous line. In vim, when a line wraps, it is never indented. You can handle this by putting in hard line breaks, but then if you need to cut and paste your test anywhere you end up reformatting it all the time. I prefer smart indenting that I don't have to mess with.

Here is an example of the vim behavior that irritates me (see line 6):

Vim Screenshot showing a wrapped line that is not indented.

And here is the way I like it to be:

Vim Screenshot showing a wrapped line that is indented.

Luckily I'm not the first person that has wanted this. Václav Šmilauer developed a patch that has been updated by Eli Carter. There is no way to use this in the default vim distribution, but if you build vim from source you can add in this break indent patch.

Read full entry

Jon Krakauer

Published 23 December 2009




If we had ham, we could have ham & eggs, if we had eggs.

-- Jon Krakauer, Eiger Dreams

Version 10

Published 06 July 2008

The tenth re-implementation of this site is now live. I've written a basic cms in django to serve it. I'm still working on the boring data migration part.

Oracle User Administration

Published 04 January 2009

Users

To create a new user:

create user <username> 
identified by <password>;

This is the most basic statement for creating a user. There are also options for designating tablespaces, etc. [1]

Read full entry



Copyright 2000-2008 Jason Anderson.

Powered by Django, Photologue and Galleria.