fleshyorgans

tryin’ not to be a linux fanboy

fleshyorgans Two Cats

Vim tip: keyboard shortcuts

October 26th, 2007 · No Comments

Finally got around to learning how to define keyboard shortucts in vim. It’s easy!

map <desiredkey> <targetaction>

So, for example, I split windows vertically and want to navigate via ctrl+pagedown or pageup.
Here’s what I did (include < and > when defining)

map <c-pageup> <c-w>h
map <c-pagedown> <c-w>l

Found via a vim wiki search

[Read more →]

Tags: programming · stuff

Vim awesomeness.

September 28th, 2007 · No Comments

If you use Vim as your text editor, try this
:TOhtml
This will generate an HTML version of your source code, complete with color scheme. It’s pretty sweet.
Example here (opens a new window)
This just tickles me.

[Read more →]

Tags: programming · stuff · vim

GVim and editing over SSH connections

April 3rd, 2007 · 2 Comments

(Update 04/08/2007: apparently I’m number one for most searches about editing with Vim over SSH, so I’ll note for other searchers that this method isn’t perfect, but it gets the job done. The downside to this method is that it keeps asking for a password for every file operation.
Also note that the reason it’s problematic […]

[Read more →]

Tags: stuff