foo(); bar(); baz(); quuz();into
foo, bar, baz, quuz,In vi, I go to the opening ( by hitting f(, then change the rest of the line to a comma by hitting C,Escape. And then I go to the next three lines and do it again by hitting j.j.j. to repeat the edit. This last bit, the j. sequence is very, very fast and can be repeated for how ever many lines there are. How many steps does it take to do this in your editor? Don't you get tired of hitting End, Backspace, Backspace, Backspace, Backspace, Coma, Down-arrow, End, Backspace, Backspace...? Or worse, reaching for the mouse to reposition the cursor after each edit?
foo(1); bar(2); baz(3); // ...Another common programming task that I struggle with in non-modal editors is to reverse the order of two adjacent lines of code. In vi it is ddp to delete the line and then paste it below the current line. Home, shift-End, ^C, Down, Home, ^V is not just loads more keystrokes, but they are far off from the home row and feel like a speed bump to me, especially on keyboards that don't have dedicated Home and End keys (Apple, I'm looking at you).
Once you go to TextMate or Notepad++ or jedit or some other user interface not cobbled together with dinosaur spit and precambrian bailing wire, you generally aren't going backEh, totally not true. These days I spend all my time in front of a Mac, but I'll often be simultaneously using XCode (for some coding), SubEthaEdit (often as a pager), vi(m) (for quickies), and Emacs (for other coding or for stuff on other machines), depending on what task I'm trying to perform. XCode's editor is pretty powerful but it's still really frustrating when you hit that functionality wall and you have to get out and push your Flintstonemobile when a programmer's editor would do what you want with only a little more effort.
I knew a guy who – no joke – wrote and edited something like 1000+ lines of Verilog in Notepad. He was insane.Was he insane before he did that, too?
COLUMNS=120; vi $FOO on the console on my new system, and since I only use vi for quickies like editing config files and the like, it's getting tiresome.« Older As the Tea Party outpolls the Republican Party in... | Bubble Tanks Tower Defense... Newer »
This thread has been archived and is closed to new comments
Also: DIE EMACS! Not even psychoanalyze-pinhead mode can save you.
posted by GuyZero at 11:28 AM on December 7, 2009