Ron Barry/foodini.org
         Latest Entry
prev:20100709           whole blog            in context             next:20100713
%20100712
Code Editing, Code Ownership
Somehow, the vim/emacs war still manages to rage on.  I was introduced to vi by
Kurt Olsen in 1991 - probably in an attempt to get me to edit my own .netrekrc
for a change.  Since then, it's been my goto editor for just about every line
of code that I've written.

Now and again, I'll find a use case that bugs the hell out of me with vim and
I'll do a bit of googling around to see if there's a solution.

Today, I finally got fed up with manually reformatting paragraphs to 80-column
widths and asked the only greater adherant to The Church of Vi that I know of, 
Glenn Mulvaney, if he had an idea.  With a push in the right direction, we
found.... gqap.  Set your cursor in the paragraph in question and type gqap in
command mode.  Nice.

Now all I need is a way to quickly turn this:
    anothenatoe unoathe nato eunaho 1
    anothenatoe unoathe nato eunaho 1
    anothenatoe unoathe nato eunaho 1
    anothenatoe unoathe nato eunaho 1
    anothenatoe unoathe nato eunaho 1
    ...
    ...
    ...
into:
    anothenatoe unoathe nato eunaho 1
    anothenatoe unoathe nato eunaho 2
    anothenatoe unoathe nato eunaho 3
    anothenatoe unoathe nato eunaho 4
    anothenatoe unoathe nato eunaho 5
    ...
    ...
    ...
...as previously requested.

    -rbarry
prev:20100709           whole blog            in context             next:20100713