off by one for 2007 August 27 (entry 0)

< free ideas: a series
cool screen tricks >

[Trackback URL for this entry] Mon Aug 27 15:24:04 PST cool vim trick:

You can split windows in vim and keep multiple files open. This isn't usually that interesting to me because I use screen for everything and memory usage isn't really an issue.

What *is* useful is that you can have two views into the same file -- so if you want to reference something way up top but you're working way down at the bottom, you can split your view. Here's how:

:sp (splits window) CTRL-W up (move up) CTRL-W down (move down) :q (closes this window)

You can find a lot more info and additional commands if you search for "vim split window" or somesuch.

Pretty rad!

Filed under: technical:hack


[Main]

Unless otherwise noted, all content licensed by Peter A. H. Peterson
under a Creative Commons License.