Slashdot Mirror


The Birth of vi

lanc writes "Bill Joy, co-founder of Sun, tells the story of how he wrote the vi editor. The article at The Register delves into his motives, who instigated the project, and some of the quirks of leaving a 'gift to mankind'. From the piece: '9600 baud is faster than you can read. 1200 baud is way slower. So the editor was optimized so that you could edit and feel productive when it was painting slower than you could think. Now that computers are so much faster than you can think, nobody understands this anymore. The people doing Emacs were sitting in labs at MIT with what were essentially fibre-channel links to the host, in contemporary terms. They were working on a PDP-10, which was a huge machine by comparison, with infinitely fast screens. So they could have funny commands with the screen shimmering and all that, and meanwhile, I'm sitting at home in sort of World War II surplus housing at Berkeley with a modem and a terminal that can just barely get the cursor off the bottom line.'"

459 comments

  1. So let the flame wars begin! by messju · · Score: 5, Funny

    (I'm using Emacs, BTW.)

    1. Re:So let the flame wars begin! by 91degrees · · Score: 5, Funny

      I hate them both.

      I'm not popular amongst Unix users.

    2. Re:So let the flame wars begin! by sniepre · · Score: 4, Funny

      Hi joe. :)

      --
      Is not life a hundred times too short for us to bore ourselves? -Friedrich Wilhelm Nietzsche
    3. Re:So let the flame wars begin! by donaldm · · Score: 5, Insightful

      Oh dear back to the eighties.

      I think the easiest way to sum up Emacs vs Vi is "vi" is for System Admins and people who want to get the job done quickly and efficiently without having to learn Control and Esc commands (if you look "vi" commands they are surprisingly logical compared to "Emacs"), while Emacs is for people who either have dedicated terminals or have a masochistic streak. This is not to say "vi" is better than "Emacs" in fact it is the other way round and if you are prepared to learn it then it is extremely powerful and can make you much more productive. Of course I am generalising but I do remember the first "vi" vs "Emacs" wars.

      If you want a graphical editor there is "gvim" or "xEmacs" both great if you have a GUI, however if you are moving between different Unix machines you have to remember that "xEmacs" or even "Emacs" as well as other so called "free" editors may not be installed so that is why most Systems Admins learn "vi" rather than learn "Emacs". Of course if you are a Systems Admin you should at least be aware of how to use "ed" as well.

      To sum up. If you like and can use an editor (not just "vi" or "Emacs") productively then go for it.

      Now bring on the "car" analogies. Please no "edlin" since you should be marked as "funny" or "troll"!

      --
      There ain't no such thing as proprietary standards only proprietary formats. Standards are by definition open.
    4. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0, Informative

      Agree that they're both ordinary. I'm still looking for a semi-decent editor for linux. vi is just god-awful to use. Emacs is just as bad despite looking "nicer". pico and nano leave me cold. They're an improvement over vi and emacs, but still fall somewhere short of even the old dos editor in terms of usefulness. Indeed, of all the (many) editors I've tried nedit is the nicest... but is buggy as hell (at least on my ubuntu install). Why oh why can't an editor have both power and ease of use?*

      *Note rhetorical question: pfe (programmers file editor) had both power and ease of use many years ago... but unfortunately its not available for *nix.

    5. Re:So let the flame wars begin! by ettlz · · Score: 1

      Yep. Nedit all the way.

    6. Re:So let the flame wars begin! by zeromorph · · Score: 4, Funny

      Why is parent not modded funny?

      Would someone with mod points and a pico sense of humor mod him accordingly.

      --
      "Hannibal's plans never work right. They just work." Amy/A-Team
    7. Re:So let the flame wars begin! by wakejagr · · Score: 5, Funny

      screw you guys, I cat everything through sed, and I like it that way!

      --
      Don't save Windows XP! http://www.petitiononline.com/jjw1xp/petition.html
    8. Re:So let the flame wars begin! by bsharitt · · Score: 3, Funny

      I've deleted Linux distributions(I'm looking at you Suse) if they didn't include Nano or Pico in the default install.

    9. Re:So let the flame wars begin! by Anonymous Coward · · Score: 4, Informative

      XEmacs isn't the X version of Emacs - it's a completely separate fork.

    10. Re:So let the flame wars begin! by Gordonjcp · · Score: 1

      but still fall somewhere short of even the old dos editor in terms of usefulness

      EDLIN was heavily based on ed. They should be close enough for you to get your head around easily.

    11. Re:So let the flame wars begin! by Xemu · · Score: 1
      I hate them both.
      I'm not popular amongst Unix users.

      Word up, man!
      --
      Tell your friends about xenu.net
    12. Re:So let the flame wars begin! by It'sYerMam · · Score: 2, Funny

      Thank you. Kate all the way.

      --
      im in ur .sig, writin ur memes.
    13. Re:So let the flame wars begin! by Janek+Kozicki · · Score: 5, Funny

      I have a nano sense of humor, so I don't get it.

      --
      #
      #\ @ ? Colonize Mars
      #
    14. Re:So let the flame wars begin! by flight_master · · Score: 1

      I agree. Nano is much easier to use.
      *ducks*

      --
      "Free software" is a matter of liberty, not price.
    15. Re:So let the flame wars begin! by Tony+Hoyle · · Score: 2, Insightful

      Try configuring a machine across the globe using a Microsoft Word. Aint gonna happen.

      vi has an important place. It's installed everywhere (even on embedded systems like Tivo) works the same wherever you are and doesn't require a particularly fast link to work - even today it's easy to be stuck behind dialup.

    16. Re:So let the flame wars begin! by Southpaw018 · · Score: 1

      Um...why would you learn any of those? At all? Most people today, including most computer people, don't seem to share your belief that it's evil to place your hand on the mouse. I've never really understood the reasoning behind continuing to use any of these relics. By using a program with a modern interface that follows the same standards as every other modern program, vi fanatics suggest that one loses productivity. I don't see where, how, or why.

      --
      ACs are modded -6. I don't read you, I don't mod you, I don't see you. Don't like it? Don't be a coward.
    17. Re:So let the flame wars begin! by Sigma+7 · · Score: 1, Interesting
      (if you look "vi" commands they are surprisingly logical compared to "Emacs")


      In most vi implementations, touching the cursor keys has a 50% chance of kicking you out of Insert mode. This appears to be caused by cursor key sequences containing ESC, but seems to happen rather inconsistantly - the same applies to vim when it is in compatability mode. While I strongly think that modern systems should not have potentially ambiguous key-sequences (i.e. cursor keys starting with the ESC key), most applications should at least consider the platform they were designed for.

      When I am using a text editor, I want to minimize keystrokes - having to enter insert mode whenever I change lines will slow me down. The same applies to the legacy "notepad" methood of editing - having to block a line of text to cut-n-paste is a slowdown when C-X should immediatly cut the line being worked on (as done in MSVC 2005.)

      Now bring on the "car" analogies. Please no "edlin" since you should be marked as "funny" or "troll"!


      The best editor is a hot-rod. Nuff said.
    18. Re:So let the flame wars begin! by bunratty · · Score: 4, Insightful

      As someone else has pointed out, sometimes you simply don't have a GUI editor available. What are you supposed to do when you telnet into a machine and need to edit a file? I learned vi long ago when I was in such a situation, and it's still my preferred way to program. I think it's just faster to keep my fingers over the letters than to have to move them to the mouse, or even over to the arrow and ctrl keys. The esc key is about as far as they need to go, and only when I want to change from insert mode to command mode.

      --
      What a fool believes, he sees, no wise man has the power to reason away.
    19. Re:So let the flame wars begin! by maraist · · Score: 3, Informative

      First, I am totally with you - vi is a MUST for configuring UNIX servers remotely (or even locally) (I want to shoot our sysadmin when he uses nano or pico and "accidently" line-wraps a critical config item).

      "vi"'s defaults are completely oriented towards editing large text config files - better than ANY other editor I've ever seen. emacs often defaults to scrolling past the end of the screen (where you can miss important info if you're not careful). Other editors auto line wrap, or don't properly handle control or windows characters (vi shows nice ^M or whatever symbols). Search-and-replace is fast, and extremely expressive (moreso than any windowed dialog I've ever seen, including [xg]emacs). These are the tools of the sys-admin.

      That being said. Remote server management is best "designed" to use a web interface. Any shmuck can design an application that has a foo.properties or foo.conf or .foo But for all the effort that goes into writing the configuration API, you might as well embed a micro-web server (there is no language known to man that can't receive a trivial text input, reading only the 1'st line, and spitting out a canned text). It is just as easy (if not easier) to add configuration line-items via a web-form than via a config-file. The reason being, that changes to a properties file usually require restarting or pinging the core app. The micro-web service is directly updating the active operation (and can take whatever steps necessary to perform batch alterations.

      The only remaining elements are buffer-overrun exploits, DOS attacks, authentication... In the UNIX world, you have to be root to edit the config file, so that was considered secure enough. But apache port-80 proxying is commonplace now.. You get all your security up-front. Granted the flaw in my argument is that apache doesn't have web configuration - and probably never will.

      Every home-use NAT-box / router I've seen has http interfaces, and that's just dandy for me.

      --
      -Michael
    20. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0

      I also remember this other bit of news - right after "inventing" vi, Bill Joy changed his name to Kill Joy and was seen running around yelling, "save my soul, save my soul!! run from the hordes of gnarly fingers and cramped wrists, get me out of Sun Quentin..... Im not mad!!!"

    21. Re:So let the flame wars begin! by Anonymous Coward · · Score: 1, Insightful
      Try configuring a machine across the globe using a Microsoft Word. Aint gonna happen.
      No, but I'll just use my user-friendly editor which can load and save directly over SSH instead of the brainfucks that are vi and Emacs.
    22. Re:So let the flame wars begin! by Ph33r+th3+g(O)at · · Score: 4, Funny

      But a nano sense of humor is 1,000 times as humorous as a pico one. Surely you got it!

      --
      I too have felt the cold finger of injustice.
    23. Re:So let the flame wars begin! by jonadab · · Score: 3, Informative

      > I was going to say the best way to sum them up is that they are both
      > ancient [...] relics with arcane "interfaces".

      Nobody, so far as I am aware, uses Emacs because of its default interface (which is, indeed, ancient and arcane). We use it because of its capabilities, and we customize the interface to suit our needs. Yes, there are people who *use* the default interface, because they are accustomed to it, because they needed Emacs for its features and never bothered to customize the interface. But they don't use Emacs *because* of the interface.

      > Sure, *nix geeks will love it, and they may even devout a surprisingly pathetic
      > amount of time mastering it because, "technically speaking, it provides a much
      > more robust set of features than any GUI-based program."

      You clearly don't understand Emacs.

      In the first place, it *is* a GUI-based program. (Yes, you can run it without a GUI, but you would only ever do so if for some reason no GUI is available, and certain features become unavailable under such circumstances; it is certainly not the normal mode of operation.) Second, the amount of time it can save you on a day-to-day basis over a normal text editor editor will pay back your initial learning-time investment in a few weeks, or at most a few months -- at least, it will if you are doing the kind of editing Emacs was designed for.

      Emacs is very good for partially automating semi-repetitive tasks. Some tasks can be fully automated, and that's fine, but many editing tasks cannot be automated in that fashion, because the user to constantly make decisions that the software can't handle. Yes, you *could* write an application in Perl or some other language that would repeatedly ask you questions about what to do, but writing it would be tedious and using it would be worse. Emacs, because it embeds and fully integrates the programming language into the text editor, solves these problems much more quickly and easily.

      Of course, if you don't perform the kind of editing tasks that Emacs is really good for, then you probably don't care. And if you aren't already a programmer, then learning lisp would be much harder (because you'd have to learn all the programming concepts, in addition to the language) and maybe not worth it. But that doesn't make it any less a valuable tool for those who need it.

      A more modern default interface wouldn't hurt it any, I'll grant you. But there is no alternative, currently. There is no tool that can do the things Emacs does, with the ease with which Emacs does them, and has a modern user-friendly default interface. Emacs is the only game in town.

      Sure, there are many text-editors. But there are not many *fully* programmable integrated text editing environments -- at least, none that I'm aware of.

      Learning to use a bandsaw is a silly waste of time if all you're going to do with it is sharpen pencils. An ordinary pencil sharpener is much easier to learn to use properly, takes up less space, is less dangerous, and will sharpen the pencil just about as quickly. Fine, use the pencil sharpener. But people who make dollhouse furniture are probably going to opt for the bandsaw.

      --
      Cut that out, or I will ship you to Norilsk in a box.
    24. Re:So let the flame wars begin! by NickFortune · · Score: 4, Informative
      why would you learn any of those? At all? Most people today, including most computer people, don't seem to share your belief that it's evil to place your hand on the mouse.
      Because they're faster. Just like it's faster to use Control+S to save a document than it is to use the mouse to open the file menu, position the pointer over the save entry and press the button.

      Plus you can use vi or emacs in situations where you don't have a GUI available, or on boxes where there isn't much memory to spare, and you'd rather the resources went to GCC than to an X-Server.
      --
      Don't let THEM immanentize the Eschaton!
    25. Re:So let the flame wars begin! by theonetruekeebler · · Score: 1
      Well, edlin isn't Unix, right? It's DOS.

      And I did learn it, for three reasons. First, in the DOS world there was no such thing as a .BAT file much longer than 20 lines, so I really could keep the whole thing in my head, including what text was on what line. Its print command listed 24 lines at a time instead of the entire damned file (because DOS was first run on 80x25 monitors where Unix was written for teletypes) Second, edlin.com was a really small file so I could wedge it onto a rescue disk along with some useful third-party tools and a couple of evil little weapons like debug.

      Most importantly, it really annoyed my coworkers that I knew edlin.

      Oh, and if edlin were a car it would be an Isetta 300.

      --
      This is not my sandwich.
    26. Re:So let the flame wars begin! by billcopc · · Score: 5, Interesting

      Ok here goes nothing. I'm a DOS veteran, and I treated my DOS like most people treat their Linux, using extensive modifications and addons to improve usability and productivity. Way back there was Edlin, which even in 1984 felt really ghetto. Its saving grace was that it could be easily scripted for batch usage. Some people used Wordstar, but I personally couldn't stand it. Sure enough, I trivially coded my own full-screen editor in BASIC, and all was well. Then came MS-DOS 5.0, with its flashy Dos Shell and Edit.com, which was really just QBasic minus the Basic part. It worked, it had a cutesy little drop-down menu like Windows apps did, and its usage was obvious to even the most ignorant of users.

      So then one day I get my hands on Slack 2.0. BLECH! Where's the simple full-screen editor I've grown so fond of over the past decade ? :P vi didn't make any sense to me, and Emacs seemed like a huge mess of plugins that ate up more disk space than the OS itself. Now I'm obviously lacking in history when it comes to the Linux/Unix world, but why the hell do so few apps make use of the Function keys ? It's always Ctrl-something.. I'm fine with Ctrl-X and whatnot because they're where my hands would sit, but how hard would it be to just alias F1 to Help, F2 to Save, F3 to Open, in addition to the classic shortcuts.. It would certainly make it much easier to teach.

      And then there's the matter of arrow keys... sometimes they work, sometimes they don't. Ctrk-V or Y for pageup-pagedown, and something else for top/bottom. Now I agree that Unix came first and those shortcuts were probably in use way before Dos ever came along, but why hasn't anyone taken the liberty of adding the "idiot" shortcuts so that Joe Random Switcher can actually try Linux without spending 3 days in complete darkness trying to get a friggin cursor to move ? It's not like those movement keys have anything better to do, most of the time they just spew meta-characters like ^Q^1 or whatever.

      If a text editor does anything more complicated than receive text input and save it to disk, it's no longer an editor in my book. Type setting ? it's a word processor. Syntax highlighting ? it's a development environment. Kinky macro processing and pseudo-hypertext Info-page fornication ? it's a dirty old man's poor excuse for an OS. I'm talking about you, Mr Stallman.

      --
      -Billco, Fnarg.com
    27. Re:So let the flame wars begin! by Ithika · · Score: 5, Funny

      I don't gedit.

    28. Re:So let the flame wars begin! by timeOday · · Score: 5, Funny
      CLI will always have it's place... much like my half-retarded nephew who lives under the stairs... however as I for one can't wait for the day that intuitive interfaces rule the computing landscape with a soft, friendly fist!!!
      Why are you using a text editor at all? Shouldn't you be doing all your programming via drag and drop? And why does your post use text instead of more user-friendly pictograms? Maybe you can find yourself a nice keboard-free computer.
    29. Re:So let the flame wars begin! by 1u3hr · · Score: 2, Interesting
      Um...why would you learn any of those? At all?

      When your GUI is broken, either through driver problems, pathetic network speed or any other reason.

      Anyway, I personally learnt vi in 1978, when it was a privilege to be allowed to use a screen editor, as opposed to a line editor (ed). That was after spending a year programming using punch card input. Anyway, you can find a cheat card to remind you of the basic commands, and the real power is in regular expressions, which are useful in many other contexts, perl hacking for a start. Even MS Word has a bastardised form.

    30. Re:So let the flame wars begin! by h2g2bob · · Score: 4, Funny

      "VI VI VI - the editor of the beast" - RMS

    31. Re:So let the flame wars begin! by Anonymous Coward · · Score: 4, Funny
      Now bring on the "car" analogies.

      Okay: vi is a car, Emacs is a full cdr.

    32. Re:So let the flame wars begin! by oz1cz · · Score: 0, Redundant
      I think "Joe" is a reference to the Jonathan behind the JOVE editor.

      JOVE = Jonathan's Own Version of Emacs

      http://linux.maruhn.com/sec/jove.html/

    33. Re:So let the flame wars begin! by Dirtside · · Score: 4, Funny

      sed?? You pussy! REAL men write the file once, through cat, and never have to change it, thus no need for an editor.

      Let me take care of the ObSequenceOfReplies:

      cat?? You pussy! REAL men open a file handle manually through /dev and type in hex!

      /dev?? You pussy! REAL men write the data directly to RAM by tapping exposed wiring to the DIMM contacts!

      wires?? You pussy! REAL men use huge electromagnets to manipulate the electrons inside the RAM directly!

      magnets?? You pussy! REAL men push the electrons into place using sheer force of will!

      I think that about covers it. Someone want to add a Chuck Norris variant?

      --
      "Destroy science and religion. Science would re-emerge exactly the same; but not religion." - Penn Jillette, paraphrased
    34. Re:So let the flame wars begin! by Phleg · · Score: 1

      Long story short, the mouse is a very fast input device. However, the context switch between mouse/keyboard and vice versa is incredibly slow.

      Ever watched a person who hasn't yet figured out that he can use tab, the left/right arrow keys and enter to navigate dialog boxes? It's painful. They type something into a field, move the hand to the mouse, shake the mouse to figure out where the pointer is, point to the next field, move their hand back to the keyboard, locate the home row keys, type another input, move their hand to the mouse, shake it a little, locate the button they want to click, and finally click it.

      This is orders of magnitudes slower than if you don't have to reposition your hand at all. Same goes for highlighting text, cutting and pasting, etc: using Shift+Home/End/PgDn/PgUp is extremely fast, while waiting for the window to scroll up while you hold down the mouse button is slow. It's no surprise that people can edit in vi far, far faster than someone can with a shinier GUI interface.

      Plus, with tons of additional features (:%s/x/y/) for an extremely powerful Regexp based global search and replace, and standard features like autoindentation, etc, it's not like vim is lacking any of the features that GUI editors have. In fact, many of them are even faster to use.

      --
      No comment.
    35. Re:So let the flame wars begin! by Javagator · · Score: 1

      Emacs" as well as other so called "free" editors may not be installed

      I am an EMACS user, but because some computers don't have it installed, I have learned to stumble around with VI. Of course, I have seen expert VI users at work, and it looks to me as if they are stumbling around too.

    36. Re:So let the flame wars begin! by AlbertEin · · Score: 3, Informative

      (there is no language known to man that can't receive a trivial text input, reading only the 1'st line, and spitting out a canned text) Oviously you haven't used Malbolge
    37. Re:So let the flame wars begin! by kasparov · · Score: 3, Informative

      Or more likely 'joe' is a reference to joe, Joe's Own Editor, which has been around since the late eighties. In fact I used it exclusively back when Slackware was distributed on floppies--my temp files were always named bob so I could type 'joe bob' to edit them. Of course this was before I "did the right thing" and switched to vi. :-)

      --
      There's no place I can be, since I found Serenity.
    38. Re:So let the flame wars begin! by jesuscyborg · · Score: 1

      Ever hear of SSHFS? Or the infinitely slow Tramp?

    39. Re:So let the flame wars begin! by Javagator · · Score: 2, Funny

      Jesus saves with Ctrl-X Ctrl-S

    40. Re:So let the flame wars begin! by The+Bastard · · Score: 1

      Obviously, this comes from someone who has never worked in an entirely terminal/keyboard-only
      environment, which then made the switch to a GUI env.

      About 12 years ago, I went through this situation at the manufacturing company I worked for, replacing WYSE terminals with pc's. Even with the terminal emulator configured properly on the pc, productivity dropped in many departments (accounting, floor, purchasing, etc). Not because people couldn't learn new things (I had run extensive training for people before rollout, and they were farily confident in their abilities); but rather, because of having to switch to the mouse for many things. Hand away from keyboard is hand not doing work.

      In the end, several people had the WYSE terminals returned, and an e-mail program pointed to the IMAP server went on the HP/UX boxen.

    41. Re:So let the flame wars begin! by Anonymous Coward · · Score: 1, Funny

      The lame wars begun...

    42. Re:So let the flame wars begin! by psy0rz · · Score: 2, Informative

      You might want to try mcedit, for that oldskool dos-edit feeling.:) (part of midnight commander)

    43. Re:So let the flame wars begin! by Leynos · · Score: 1

      No, he's talking about the QBASIC editor 'edit' that's been included with DOS from version 5.0.

      Disclaimer: I use VIM.

      --
      "Did you exchange a walk on part in the war for a lead role in a cage?"
    44. Re:So let the flame wars begin! by mad.frog · · Score: 2, Interesting

      Because they're faster. Just like it's faster to use Control+S to save a document than it is to use the mouse to open the file menu, position the pointer over the save entry and press the button.

      http://www.asktog.com/TOI/toi06KeyboardVMouse1.htm l

      We've done a cool $50 million of R & D on the Apple Human Interface. We discovered, among other things, two pertinent facts:

              * Test subjects consistently report that keyboarding is faster than mousing.
              * The stopwatch consistently proves mousing is faster than keyboarding.

      This contradiction between user-experience and reality apparently forms the basis for many user/developers' belief that the keyboard is faster.

    45. Re:So let the flame wars begin! by melikamp · · Score: 1
    46. Re:So let the flame wars begin! by Chris+Mattern · · Score: 4, Insightful

      > I'm obviously lacking in history when it comes to the Linux/Unix world, but
      > why the hell do so few apps make use of the Function keys ? It's always Ctrl-
      > something.. I'm fine with Ctrl-X and whatnot because they're where my hands
      > would sit, but how hard would it be to just alias F1 to Help, F2 to Save, F3
      > to Open, in addition to the classic shortcuts..

      Pretty damn hard, actually. DOS editors had the advantage of knowing they'd always
      be sitting on an IBM-standard PC, with the same scan codes for the functions keys.
      But function keys aren't standard. Control-letter codes are. UNIX utilities therefore
      have real difficulty with function keys. You have to use termcap/terminfo, and
      make sure that it's correctly configured. Control-something will always just work.

      Sometimes it is set up for you, and it's always been possible to set it up for
      yourself. But most UNIX programmers have never cared that much because most
      UNIX programmers are touch typists...and touch typists hate function keys (and
      arrow keys, and mice) because they take your fingers off the home keys. Much
      better to use ctrl- or alt- codes that don't interrupt your typing.

      Chris Mattern

    47. Re:So let the flame wars begin! by Anonymous Coward · · Score: 1, Insightful

      Remote server management is best "designed" to use a web interface [...] you might as well embed a micro-web server

      This goes against the fundamental UNIX philosophy: Many small applications doing a single, simple task. A micro web server is bloat; if you want web configuration, have an external program that does the web configuring.

      My experience with those web front ends is that people who don't know what they are doing use them, and end up making a mess of their configuration files. I've seen the state of configuration files after people like this play with their web front ends and call me up, desperate for help because their server no longer works.

      The other problem is that those web front ends can have a lot of security problems. One well known offender is cpanel.

    48. Re:So let the flame wars begin! by Gordonjcp · · Score: 1

      Well, that's not the "old" DOS editor, is it? That's the *new* DOS editor!

    49. Re:So let the flame wars begin! by Penguin+Programmer · · Score: 0

      Arrow keys and function keys are relatively recent inventions. Pretty well every terminal has a control key and an escape key, so *nix apps tend to use Control and Meta/Esc for shortcuts. Also, Control is easier to reach when it lives in the right place (between shift and tab).

    50. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0

      Maybe McKate does?

    51. Re:So let the flame wars begin! by evilviper · · Score: 4, Funny
      but why the hell do so few apps make use of the Function keys ?

      They're used, just not for what you want...

      I call them the "insert random garbage every time I reach too far" keys.
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    52. Re:So let the flame wars begin! by NickFortune · · Score: 2, Informative
      Cool. Interesting article.

      Of course, it would help a lot of we had a bit more breakdown on the test subjects, say by computer experience and familiarity with GUIs. For all we know, the power user segment may have consistently beaten the stopwatch on keyboards, bit overall the mouse wins because they tested more naive users. I'd guess that's what they did, because OS developers put such a high priority on newbie-friendliness

      We should also bear in mind that the article discusses multi-application usage in an environment where the hotkeys are acknowledged to be inconsistent and illogical. In fact the author even admits that the keyboard would be faster, except that the user takes as long to remember what the hotkeys are for a given app as it does the mouse user to switch to mouse and back. So for a single application task such as editing, or an environment with sensibly defined hotkeys there's every reason to believe that the conclusions don't hold up

      But the most important point is this one:

      Not that any of the above True Facts will stop the religious wars. And, in fact, I find myself on the opposite side in at least one instance, namely editing. By using Command X, C, and V, the user can select with one hand and act with the other. Two-handed input. Two-handed input can result in solid productivity gains (Buxton 1986).
      I don't know if you intended this link as a rebuttal, but it seems the authority you cite actually agrees with me.
      --
      Don't let THEM immanentize the Eschaton!
    53. Re:So let the flame wars begin! by WilliamSChips · · Score: 3, Funny

      :%s/Ctrl+X Ctrl+S/:w/
      'Nuff said.

      --
      Please, for the good of Humanity, vote Obama.
    54. Re:So let the flame wars begin! by mad.frog · · Score: 1

      Not as a rebuttal per se, but rather as an interesting counterpoint from an authority on UI who I actually respect. I actually pretty much agree: keyboard shortcuts are definitely an essential part of an efficient UI, but it's not the case that the keyboard is intrinsically faster than the mouse (in the Big Picture).

    55. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0
    56. Re:So let the flame wars begin! by WilliamSChips · · Score: 1

      gvim is more usable and intuitive than any editor actually created for the GUI. The only reason I'd use something like gedit nowadays is as a copy+paste buffer.

      --
      Please, for the good of Humanity, vote Obama.
    57. Re:So let the flame wars begin! by AndroidCat · · Score: 2

      Relatively recent? Compared to what, an ASR-33? :)

      --
      One line blog. I hear that they're called Twitters now.
    58. Re:So let the flame wars begin! by Paracelcus · · Score: 1

      VI is a way for snotty nosed kids to show off that they "know" vi, it lacks the functionality and ease of integration of emacs, hell, i'd rather use ee or pico than vi.

      EMACS (Ed macros) has been my choice for years.

      Yes this is a flame!

      --
      I killed da wabbit -Elmer Fudd
    59. Re:So let the flame wars begin! by scribblej · · Score: 2

      Oh please.

      First off, you're quoting an article from 1989. Secondly, it's about the mac interface. From 1989.

      You couldn't have a more mixed-up system of command keys, and a more total lack of command-line. Seriously, what are you thinking? Your post is totally irrelevant.

      FOR CRYING OUT LOUD THE ARTICLE QUOTES PEOPLE FROM WORDPERFECT. *Enough said!*

    60. Re:So let the flame wars begin! by belmolis · · Score: 3, Insightful

      As someone who has been a touch typist for 38 years and a 25=year Unix person, I too find it extremely difficult to accept the claim that the keyboard is necessarily slower than the mouse. That just contradicts my experience. I remember the first time I tried to use a graphical editor - Bravo - the Xerox predecessor to MS Word. It was unbearable. Obviously you didn't need to learn anything by way of commands to do simple editing - just move the mouse and type something to insert, backspace or whatever it was to delete - but I found positioning the mouse precisely to be extremely painful. And this wasn't just due to lack of familiarity with the mouse. In the interim I've used the mouse extensively for some purposes, but I will find it slow and painful to edit documents by positioning the mouse. I usually use Emacs, but occasionally I use Vim, and sometimes I even use ed. I use OpenOffice Writer occasionally for some special purpose, such as creating a sign or poster with really large type or when it is more convenient to use exotic writing systems than it is in TeX. But I don't use it routinely in part because I don't like having to position the mouse. (Another reason is that it seems to start up even more slowly for me than for other people who complain about its slowness. I don't know why that is. It takes FOREVER.)

      Before believing in this $50 million worth of research, I would want to know a lot more about what they tested, who, and how. The stated results wouldn't surprise me if the subjects were indifferent typists without much experience with computers or with the software they were using. I would be very surprised if they were true of experienced users. Without the details of the studies, claims like this are simply uninterpretable. Anybody have a link to the actual studies?

    61. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0

      # cat >/etc/fstab ...^D

      Way faster than vi

    62. Re:So let the flame wars begin! by UnknownSoldier · · Score: 1

      Both suck.

      I want to use the Arrow keys to move the cursor, Shift-Arrows to select characters, and the standard Ctrl/Option C,X,V to paste -- not learn a different keystroke combination for every editor / app.

      I want an insert key to toggle between insert and over-write, and an OS that doesn't hardwire CAPS, so that I can bind it as a key.

      I want an editor that is small, fast, supports syntax coloring, has macro suport, extendable, and is cross platform.

      One that doesn't have broken regexp and can search for '\n\n' and replace it with '\n'

      Is that too much to ask for in _2007_

      I'm open for options...

      --
      Windows Explorer still sucks. Try renaming a file to start with '.' ...

    63. Re:So let the flame wars begin! by ronadams · · Score: 0, Offtopic

      They're all Unix/GNU Linux Editors, Ithika! kedit now? But seriously, enough guys. less puns about most unix text tools would make all of us more happy.

      --
      Appended to the end of comments you post. 120 chars.
    64. Re:So let the flame wars begin! by serialdogma · · Score: 3, Funny

      force?? You wimp, true scotsmen -like Chuck Norris- need only threaten the electrons.

    65. Re:So let the flame wars begin! by chromatic · · Score: 3, Funny

      Why do Macs have keyboards then?

    66. Re:So let the flame wars begin! by that+this+is+not+und · · Score: 0

      I'm having an elle of a good time making obscure references.

    67. Re:So let the flame wars begin! by that+this+is+not+und · · Score: 0, Offtopic

      Correct. I relied on joe for a long time, too. The thing is, it's not even a default installed package on Slackware, you have to specify it in your install. When I switched to NetBSD I was forced to embrace vi, and I've not looked back, at least for 'default little job' editing, like all the config files in /etc.

      For 'heavy lifting' emacs gives me a more solid 'framework' to work within. However, you can count on emacs not being installed on a system when you most need it. I've even had no-vi systems to contend with from time to time. You dig out your base documentation at that point and load up ed (or ex if you're lucky).

    68. Re:So let the flame wars begin! by that+this+is+not+und · · Score: 1

      Most people today, including most computer people, don't seem to share your belief that it's evil to place your hand on the mouse.

      Shocking as it may seem, my editing in a ssh session connected to a machine way down there in Arizona is not mouse enabled.

      Plus, it's really, really, fun to stir up somebody who is overly dependent on a mouse. If what they're running a 'doze machine and have a bunch of stuff open that it's okay for you to close, move over close to the keyboard and punch a bunch of alt(f4) keystrokes on them. Watch as they grip the mouse in panic as windows disappear on their screen.

      Alt-file-save is significantly faster in Excel than reaching over for the mouse, dragging the pointer up to File then pulling down to Save. But fruckin' Clippy still has to pop up to suggest I use the mouse. Thanks, clippy. Go play in the street.

    69. Re:So let the flame wars begin! by nonymous · · Score: 1

      Vi is for pussies, real men use Ex.

      (Please forgive this archaic post)

      --
      I don't believe: I accept or reject.
    70. Re:So let the flame wars begin! by that+this+is+not+und · · Score: 1

      I remember one of the first times I obtained satisfaction using a Mac, waaay back in the day. I had just installed a version of Emacs on the Mac, and discovered that I could escape to a shell prompt within Emacs. And the primative commands were even built into the shell to allow me to cd around the hard drive on the Mac and do rudimentary tasks to manipulate files.

      Yep. A command prompt on MacOS 6.whatever.

    71. Re:So let the flame wars begin! by metamatic · · Score: 2
      In most vi implementations, touching the cursor keys has a 50% chance of kicking you out of Insert mode. This appears to be caused by cursor key sequences containing ESC, but seems to happen rather inconsistantly - the same applies to vim when it is in compatability mode. While I strongly think that modern systems should not have potentially ambiguous key-sequences (i.e. cursor keys starting with the ESC key), most applications should at least consider the platform they were designed for.

      What you're missing is that Berkeley vi was designed for systems which didn't have cursor keys. Arrow keys on the keyboard weren't commonplace in the 70s.

      Later vi implementations, like vim, support the cursor keys. However, you should note that it's slower to lift your hand and move it to the cursor keys on a standard PC keyboard than it is to use the hjkl keys that are under your right hand's normal typing position.

      --
      GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
    72. Re:So let the flame wars begin! by that+this+is+not+und · · Score: 2, Funny

      Why do Macs have keyboards then?

      Because of the huge myriad of key-click sequences needed when your mouse only has one fricking button.

    73. Re:So let the flame wars begin! by jedidiah · · Score: 1

      Emacs is for those of us that had already been exposed to console mode word processors and found vi to be an incredibly arcane and primitive sort of throwback. This is a perspective from 1988 by which time 2400bps modems were commonplace and were more than fast enough to deal with emacs and it's "shimmering".

      --
      A Pirate and a Puritan look the same on a balance sheet.
    74. Re:So let the flame wars begin! by alex.cordero · · Score: 1

      who's Mr. Stallman?

      --
      -ac "Reality is merely an illusion, albeit a very persistent illusion" -- Albert Einstein
    75. Re:So let the flame wars begin! by that+this+is+not+und · · Score: 1

      Every home-use NAT-box / router I've seen has http interfaces, and that's just dandy for me.

      Mine also has a telnet interface, which has proven to work when the http interface just wouldn't load, for whatever odd reason. I wouldn't telnet into it from outside (which it is configured to refuse anyway), but inside my home network and behind the NAT router it's fine.

    76. Re:So let the flame wars begin! by iluvcapra · · Score: 1
      --
      Don't blame me, I voted for Baltar.
    77. Re:So let the flame wars begin! by icedivr · · Score: 1

      Your comment cracks me up. i'd mod up if I could.

    78. Re:So let the flame wars begin! by XdevXnull · · Score: 1

      "If a text editor does anything more complicated than receive text input and save it to disk, it's no longer an editor in my book. Type setting ? it's a word processor. Syntax highlighting ? it's a development environment. Kinky macro processing and pseudo-hypertext Info-page fornication ? it's a dirty old man's poor excuse for an OS. I'm talking about you, Mr Stallman."

      Hah. You are my hero.

      --
      "I'm a Laver, not a Phyto[plankton]"
    79. Re:So let the flame wars begin! by martinussen · · Score: 2, Funny

      ed is the standard text editor!

    80. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0

      may even devout a surprisingly pathetic amount of time

      "devote".

      have it's place

      "its".

    81. Re:So let the flame wars begin! by mad.frog · · Score: 1

      First off, you're quoting an article from 1989

      Wow... 1989! That practically back when Dinosaurs roamed the earth!

      It's not possible that anything that old could possibly be relevant to computing these days!

      total lack of command-line

      That was a feature, not a bug. If you weren't around at the time to appreciate just how revolutionary a concept that was in computers, go study the history of your field.

    82. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0

      haha I so knew chuck norris was coming after mentioning "sheer force of will"

    83. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0
      The esc key is about as far as they need to go, and only when I want to change from insert mode to command mode.

      I go between insert and command mode all the time, so I bound the caps-lock key to ESC and right control to caps lock. I have never been happier.
    84. Re:So let the flame wars begin! by SmithSmytheSmith · · Score: 3, Funny
      As someone else has pointed out, sometimes you simply don't have a GUI editor available. What are you supposed to do when you telnet into a machine and need to edit a file?
      Uhm...copy the file someplace w/ a GUI?
    85. Re:So let the flame wars begin! by Mr.+Protocol · · Score: 1

      Oh dear back to the eighties. How about the seventies?

      One of the first full-screen editors for UNIX, if not the first, was the ned/re/e editor written at The RAND Corporation in the mid-seventies. It was based on the work of Ned Irons at Yale. It had several salient features for the current discussion:

      1) It was modeless.

      2) It was a "white-space" editor. All the editors you folks know are character editors: you can't position the cursor beyond the end of a line without explicitly going into insert mode and inserting enough spaces or tabs to get over there. The RAND editor modeled an infinite sheet of paper, and let you put the cursor anywhere you damn please. If (and only if) you then typed printing characters there, it would insert the requisite amount of white space automatically. Character editors have always seemed much too restrictive to me.

      3) It was ridiculously easy to learn. RAND had terminal reconfigured with hot-wired number pads and special keycaps, so instead of numbers, the pad had PICK, PUT, CLOSE, OPEN, and suchlike keys. Secretaries with no computer experience could start using it on these terminals in about a half an hour.

      Berkeley distributed "vi" much more widely than RAND distributed "e", although RAND did have a public-domain distribution that included both "e" and MH. However, it never caught on. I still use "e" for my day-to-day editing, though of course the special keycaps are ancient history.
    86. Re:So let the flame wars begin! by notthe9 · · Score: 1

      1000 times? Nano is just trying to be pico but doesn't go the whole way!

    87. Re:So let the flame wars begin! by stevey · · Score: 1

      Some of them are quite wiley..

    88. Re:So let the flame wars begin! by mikek3332002 · · Score: 1

      Hear Hear
      At least the people who forked vi to make vim had the right idea(adding support for arrow keys).

    89. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0

      This isn't entirely true.

      DOS (and now Windows) supported a variety of keyboards. A device driver translated the hardware scan codes into consistent virtual key codes so applications didn't have to care about the hardware. The driver made this particularly easy because it auto-detected the keyboard type.

      UNIX is (or at least was, I'm out of touch) bad in this area because it wasn't designed to deal with keyboards. It dealt with terminals. So your keyboard driver needed to know what keyboard it was talking to, and your applications had to know what terminal standard the keyboard driver was emulating. And there wasn't a standard place to specify this. That's lots to go wrong. The manufacturers didn't help either. I once got a brand new HP-UX server where you couldn't type the fscking pipe character '|' using the supplied keyboard without reconfiguring the terminal type. WTF?

    90. Re:So let the flame wars begin! by gone_bush · · Score: 1

      ed/sed/vi/emacs - all used by drug-smoking, long-haired, draft-dodging hippies. Back in my day when we needed to "edit" a configuration file, we punched a new card. The sad thing about this post is that it's true! :(

      --
      Two roads diverged in a wood, and I - I took the one less travelled by. (Robert Frost, 1916)
    91. Re:So let the flame wars begin! by jp10558 · · Score: 1

      But as far as time has borne it out - it was a bug. Mac OS got Unix, Linux/Unix retain *several* powerful shells and Windows has *added, as a feature* Powershell for XPSP2 and Vista. So as far as I can see, not having a CLI *is* a bug, one that all 3 major OS flavors have retained or remidied since 1989.

      --
      Opera, Proxomitron-Grypen,GPG 0x0A1C6EE3
    92. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0

      Get pwned by a man in the middle attack, for one.

    93. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0

      And then there's the matter of arrow keys... sometimes they work, sometimes they don't. Ctrk-V or Y for pageup-pagedown, and something else for top/bottom. Now I agree that Unix came first and those shortcuts were probably in use way before Dos ever came along, but why hasn't anyone taken the liberty of adding the "idiot" shortcuts so that Joe Random Switcher can actually try Linux without spending 3 days in complete darkness trying to get a friggin cursor to move ? It's not like those movement keys have anything better to do, most of the time they just spew meta-characters like ^Q^1 or whatever. Here you go.
    94. Re:So let the flame wars begin! by Antique+Geekmeister · · Score: 1

      By Jove, I think he's got it!

    95. Re:So let the flame wars begin! by PhireN · · Score: 1

      How could Suse not have Nano or Pico, it has 6 install cd's, it must have everything. Not that I care, I use vim

    96. Re:So let the flame wars begin! by Antique+Geekmeister · · Score: 2, Informative

      Then I suggest you take a close look at the copyrights on Washington University's Pine and its included Pico editor. They do not permit people to modify and rebundle the software, even simply for packaging purposes, without written permission. That's why it's no longer found in most distributions. There are better tools with better support of features like Maildir and better integration with local IMAP servers, and without the nasty copyright history.

    97. Re:So let the flame wars begin! by Mozk · · Score: 1

      "Who killed my son, the gimp?" I totem, but vino didn't accept it. "Start the sound juicer, boys." Yelp!

      --
      No existe.
    98. Re:So let the flame wars begin! by the_womble · · Score: 1

      I do configure my web server, about a quarter of the way round the globe, using Kate.

      Vi is available everywhere, but with most servers you can open it over ftp or sftp, edit it, and save it back.

    99. Re:So let the flame wars begin! by Antique+Geekmeister · · Score: 1

      But Moses dropped one of the backup tapes, which is why we lost the commandment about "Thou shalt not invade thy neighbors".

    100. Re:So let the flame wars begin! by iamacat · · Score: 1

      What are you supposed to do when you telnet into a machine and need to edit a file?

      You use ssh -X instead, of course.

    101. Re:So let the flame wars begin! by grrrl · · Score: 1

      and Windows-only computer science newbies get stung in emacs when "undo" Ctrl-Z doesn't turn out as they expect, especially after trying to cut something...

    102. Re:So let the flame wars begin! by Crayon+Kid · · Score: 1
      Someone want to add a Chuck Norris variant?
      Yes, but all I could come up with was "Chuck Norris could beat up Richard Stallman and Bill Joy at the same time, with both hands tied behind his back".
      --
      i ate crayons when i was a kid and now i have two braincells and the blue ones taste nicer
    103. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0

      I always called my files food, so I could "cat food" or "more food", whatever.

    104. Re:So let the flame wars begin! by bmannaa · · Score: 1

      I've learned to use vi recently. I'm working on remote development server and this helps me make quick changes in text files without bothering downloading them over my slow internet connection. I feel that vi is more intuitive and have a faster learning curve than emacs. Bassel

    105. Re:So let the flame wars begin! by itismike · · Score: 1
      Figured I'd jump into the flamewars myself. So the reference in the Parent post claims that:
      • Users FEEL like they are faster/more productive in Case A.
      • A stopwatch actually PROVES that they are faster/more productive in Case B.
      In the above situation, I would argue that encouraging Case A will likely result in an overall more productive workforce. Maybe not for this particular facet of the operation, but allowing a worker to 'feel more productive' has greater benefits in the long run when considering moral, motivation, etc.
    106. Re:So let the flame wars begin! by cthulhu11 · · Score: 0

      HUH? You're writing as though the latter-day native ports of gnumacs to various window systems are inherent. There have been thousands of times when I've telneted into a machine and edited files. I'm guessing that you're pretty young and don't really understand the concept of a terminal and have never heard of curses. (Aside: you need to discover SSH too). The original PDP-10 TECO emacs, at least, had plenty of optimizations for slower links if you were using a halfway decent terminal. If you use a Tektronix 4004 for text, well, pretty much anything is going to suck, but I recall agressive optimization on H/Z19's, CIT-101's, etc. Perkin-Elmer Foxes and VT52's weren't quite as capable though. I'm a career sysadmin and it still amazes me when I see highly-paid professionals crippling their productivity with vi. At CMU I knew exactly one person who used vi. (Hi, Jay!)

    107. Re:So let the flame wars begin! by g-san · · Score: 1

      Why do Macs have keyboards then?

      To hold the other buttons for the mouse?

    108. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0

      Yes. I've researched computer history plenty. A computer without a command line at least available is an abberation, not revolutionary.

                I'm a fast typist, build up the "muscle memory" to whip my way around keyboard-compatible software at ridiculous speeds. If I don't know a hotkey or want to do something weird, I strongly prefer menus with text labels to rows of identical-looking icons (a floppy disk for instance.. is that save or load? And why a floppy, my newer computers don't even have a floppy drive...)

                I know some people are the opposite -- going through menus slows them way down, the icons are nice and distinctive looking to them, "mv foo-1[0-9].avi /tmp/foo" to move foo-10.avi to foo-19.avi would be confusing, but lassoing them and dragging is "easy", etc. Ideally a system will allow both types of interaction and let people do what they prefer. As someone else has said, OS9 didn't allow both ways of usage, but OSX does.. along with Windows to greater or lesser extent (the DOS command shell,and newer "fake" DOS command shell aren't as powerful as a nice copy of bash though...)

    109. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0

      * Test subjects consistently report that keyboarding is faster than mousing.
      * The stopwatch consistently proves mousing is faster than keyboarding.

      Modern word processors have keyboard shortcuts like CTRL-F (find) and CTRL-B (bold). Why would those shortcuts have been invented if they didn't improve productivity?

      This observation alone casts grave doubt that the mouse is faster for editing.


      It takes two seconds to decide upon which special-function key to press.

      That means that his observations are not applicable to vi usage.

      Vi doesn't use special-function keys; it uses ordinary keys, which are much faster to hit. Also, for a touch-typist, there is very little time needed to "decide" which key to hit. When my brain thinks "insert", I can easily hit the "i" key within 150 ms.

      I agree that the mouse is fast for choosing options from a menu. But during text editing, it's rarely used for that purpose -- it's usually used simply to move the keyboard cursor from one spot to another. In this case, vi's advantages are spectacular: typing "A" can easily be 4 seconds faster than using the mouse, and typing "D" can easily be 6 seconds faster. And remember that those vi commands place the cursor with perfect accuracy, every single time. With the mouse, you can never have both speed and accuracy at the same time. With vi, you get both every time.

    110. Re:So let the flame wars begin! by Anonymous Coward · · Score: 0

      Yes, but remember less is more.

    111. Re:So let the flame wars begin! by scribblej · · Score: 1

      Wow... 1989! That practically back when Dinosaurs roamed the earth!

      That's funny. Funny right? Humor?


      It's not possible that anything that old could possibly be relevant to computing these days!


      Okay, now I know you're being "Funny."

      If you weren't around at the time to appreciate just how revolutionary a concept that was in computers, go study the history of your field.

      What if I was? I wrote my first BASIC programs around 1980. Since I know "the history of my field" so well, what do I do now?

      I know how revolutionary a concept having no command line was. I remember how everyone was talking about it at the time. Ooooh, cool. I also know how STUPID an idea it was. So does Apple; you'll note they undid that little gem almost immediately. Today not only does Apple's OS have a command-line, it's freaking UNIX.

    112. Re:So let the flame wars begin! by doom · · Score: 1
      belmolis wrote:

      As someone who has been a touch typist for 38 years and a 25=year Unix person, I too find it extremely difficult to accept the claim that the keyboard is necessarily slower than the mouse. That just contradicts my experience. I remember the first time I tried to use a graphical editor - Bravo - the Xerox predecessor to MS Word. It was unbearable. Obviously you didn't need to learn anything by way of commands to do simple editing - just move the mouse and type something to insert, backspace or whatever it was to delete - but I found positioning the mouse precisely to be extremely painful.

      Yes, I agree completly. That was my first experience on using a mouse (first generation Macintosh). I think the difficulty is that the mouse requires a tighther feedback loop: with a mouse you have to stare at the screen to have a hope of positioning it correctly, but with a keyboard interface you typically watch the screen to catch mistakes, not to execute every single task correctly. It's much closer to being an open loop.

      Mac users like to talk about how the Mac interface is better than Windows because "the edge of the screen is infinitely deep", which is to say that you know you won't overshoot the top of the screen with the mouse cursor, i.e. it eliminates some of that feedback loop management you need to do when handling a mouse.

      So then, how deep is your keyboard?

      (emacs user since version 18... and before that I was a Wordstar fan.)

    113. Re:So let the flame wars begin! by billcopc · · Score: 1

      Ok so, isn't there a way we could maybe, I dunno, adjust Linux to downplay the legacy stuff and make it more desktop-friendly ? God I sound like that Linspire twit...

      What I mean is, yes it's nice that we have such a flexible and portable OS. I like the fact that I can turn any old PC into a Linux box and actually put it to good use, but so far I've only succeeded at using Linux for servers. Hey, I've tried to run it as a desktop, many many times, it just didn't sit right with me. Jumping through a gazillion hoops to get a graphical desktop which became ubiquitous a decade ago, that just grinds my gears. It's flexibility is its downfall in this scenario. Yes, X-windows was conceived for thin clients, and it's real handy for running a multiuser, multidesktop server. Too bad only a handful of people actually use it that way (productively, that is). I'm a friggin code guru, and yet I clench my teeth everytime I read "No screens found". If I asked an employee to do a job for me, and all they ever did was make up excuses to not do it, I'd fire the bastard. All this code, all this talent, and yet the computer doesn't understand when I type "startx", the only thing I want to happen is for the GUI to come up. If the graphics aren't configured, just shut up and pick some sensible defaults and let me go on with MY work. Crappy old DOS games written by that prepubescent suburbanite Kevin Silverman would autodetect sound and graphics, so why is it in 2007 that I still need to keep my Windows laptop handy to look up FAQ pages and HOWTOs so I can get this modern masterpiece of collaborative development to even load ?

      If we want Linux to become a serious desktop contender and hopefully take some power away from Microsoft, then we have to collectively quit reinveinting ever more esoteric apps and one-off scripts whose sole purpose is to spam FreshMeat's news page, and focus on making the existing software usable and livable. No one ever said it would be done at the expense of flexibility and programmability... It certainly would be easier than what I have to do with Windows, starting from the GUI and working my way backwards with scripts and mods and hacks, working blind without source code.

      --
      -Billco, Fnarg.com
  2. Fast Thinking ? by foobsr · · Score: 1

    Now that computers are so much faster than you can think ...

    On a (subatomic) level of comparison that most humans, as I perceive, think on in these days.

    CC.

    --
    TaijiQuan (Huang, 5 loosenings)
  3. No need for Emacs vs vi arguments by LoonyMike · · Score: 1

    Edlin is obviously the best.

    1. Re:No need for Emacs vs vi arguments by Dionysus · · Score: 2, Funny

      ed, baby, ed

      --
      Je ne parle pas francais.
    2. Re:No need for Emacs vs vi arguments by diegocgteleline.es · · Score: 4, Funny

      Yeah, ed is the best!

      "When I use an editor, I don't want eight extra KILOBYTES of worthless
      help screens and cursor positioning code! I just want an EDitor!!
      Not a "viitor". Not a "emacsitor". Those aren't even WORDS!!!! ED!
      ED! ED IS THE STANDARD!!!"

    3. Re:No need for Emacs vs vi arguments by Anonymous Coward · · Score: 0

      YES! I know I can do a "1,$p" in any Unix or Unix-like system from PDP-11 running AT&T v6 to the latest Cray
      my terminal doesn't even need to be set up to do any fancy escape sequences. just plain old text and I can "5,50s/foo/bar/gp"

    4. Re:No need for Emacs vs vi arguments by Ken_g6 · · Score: 3, Funny

      Naw, man, sed is way better than ed!

      Real geeks use an editor that doesn't display anything at all. And with sed, I can screw up all the files in a directory at once, instead of one at a time with ed.

      That's all I have to say, but I think it had to be sed.

      --
      (T>t && O(n)--) == sqrt(666)
    5. Re:No need for Emacs vs vi arguments by chris_eineke · · Score: 1
      Not a "viitor". Not a "emacsitor".

      But what about a Titor?

      Time travel jokes in 1... 0... -1...
      --
      "All you have to do is be fragile and grateful. So stay the underdog." Chuck Palahniuk, Choke
    6. Re:No need for Emacs vs vi arguments by ProKrypt · · Score: 1

      Real geeks use an editor that doesn't display anything at all. And with sed, I can screw up all the files in a directory at once, instead of one at a time with ed. I think the same way. Well sed!
      --
      -ProKrypt
  4. I've been using vi for so long... by tuxlove · · Score: 5, Funny

    I think in vi. When editing, commands just happen like thoughts. They are so ingrained in my brain I don't even remember the actual key sequences. When a vi newbie asks, "how do you do XYZ in vi?," I have to stop and think hard, because I don't even know the commands any more.

    Vi is the ultimate editor, for one main reason. It's a modal editor, so commands can be mnemonic. With editors like emacs, you're always having to hit ^X before commands, or with MS word you're always having to lift your hand off the keyboard to move the silly mouse around. With vi, you don't need a steenking mouse. Your hands never leave the keyboard. And commands make sense and don't require that you hit some yucky control sequence to initiate.

    I love my vi.

    1. Re:I've been using vi for so long... by daddyrief · · Score: 5, Funny

      I second you, I'll even double it -- I love my vvii :P

      --
      "Banking establishments are more dangerous than standing armies." -Thomas Jefferson
    2. Re:I've been using vi for so long... by Scarblac · · Score: 4, Insightful

      Ironically, it doesn't really matter all that much if a command is mnemonic or makes sense in some other way, precisely because, as you say, "they are so ingrained in my brain I don't even remember the actual key sequences."

      And from the point of an Emacs user, it doesn't seem so different to need to hit C-X before some commands, than to hit ESC and :.

      That said, they're both fantastic text editors. Programmers do their daily work with text, and these two text editors really reward the time you put into learning them. Who cares about a learning curve if this is the sort of tool your career is built around; you need power.

      --
      I believe posters are recognized by their sig. So I made one.
    3. Re:I've been using vi for so long... by tuxlove · · Score: 1, Insightful

      it doesn't seem so different to need to hit C-X before some commands, than to hit ESC and

      How horribly untrue. The ESC key is simple to hit. It's in the upper left corner; easy to hit without effort. Control-x is harder to hit because you have to bend your hand down and hit two keys simultaneously. I used to laugh at the many emacs users at my last company because they were always grunting every time they reached for that ^X, often followed by a "damn!" when they hit the wrong key or missed the control.

      In vi you only have to hit ESC once to get into command mode. After that you can type commands to your heart's content without the oppression of hitting some hard-to-reach escape sequence every time you want to do something.

      Admittedly, once you get used to it, I'm sure emacs is not all that bad. But emacs is just wrong. I want to use an editor to edit my files, not an operating system like emacs.

    4. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      As a vi user that has used EMACS I'd like to say that hitting ESC requires a lot more movement across the keyboard, but I find the commands easier to remember.

      As to the EMACS being an operating system, I'd like to know your opinion on the so called web operating systems and the web interfaced office tools.

    5. Re:I've been using vi for so long... by fmaresca · · Score: 1
      How horribly untrue. The ESC key is simple to hit. It's in the upper left corner; easy to hit without effort. Control-x is harder to hit because you have to bend your hand down and hit two keys simultaneously. I used to laugh at the many emacs users at my last company because they were always grunting every time they reached for that ^X, often followed by a "damn!" when they hit the wrong key or missed the control.
      Nah. I've been a vim user for several years (switch from pico) and the most important thing I can remember I've done in my configuration was switching Esc and CapsLock. In pc keyboards, the Esc key is FAR away. The effort needed to hit it with the left hand is comparable to that needed to reach mice with the right; and my hands aren't small ones.
      But emacs is just wrong. I want to use an editor to edit my files, not an operating system like emacs.
      I'm not an Emacs user, but I'm pretty sure that you can configure it to a bare minimum if you don't like bloat. ITOH, vim binary in my Debian is 1.5M, this is not small anymore. Cheers,
    6. Re:I've been using vi for so long... by dwater · · Score: 1

      > than to hit ESC and :.

      I don't think including ESC is correct; that's for switching modes, not for executing a command. You only have to do it if you're not already in command mode, which is often the case since part of the 'vi' mind set is to group your commands together.

      I also think you should mention that ':' is actually 'shift-;' - ie is a more direct equivalent to 'crtl-x' in that it's two keys.

      --
      Max.
    7. Re:I've been using vi for so long... by Carl+Drougge · · Score: 1

      The ESC key isn't so great for hitting actually. Better than ^X, but not so good. Fortunately there are better placed keys you can remap. I put it on the right control, and it's great. (And then I make the real ESC into compose, because that's useful but rarely used.)

      (And yes, I know you can also use ^[, but that's pretty useless on most non-american keyboards. On my keyboard, that's ctrl-alt-8.)

    8. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      It's quite simple: vi is a piece of software that can reduce a reasonably intelligent and patient newbie to a frustrated wreck pounding on the keys uselessly trying to get it to do anything other than beep.

      It's horrible software... you like, it fine, but don't be an idiot and recommend it to newbies. Emacs isn't much better in this regard.

    9. Re:I've been using vi for so long... by tuxlove · · Score: 2, Funny

      the most important thing I can remember I've done in my configuration was switching Esc and CapsLock

      Now that's just plain wrong. The caps lock key is supposed to be mapped to ctrl! That's what any true Unix user would do, because it proves you learned Unix on a terminal designed for Unix with the caps lock in the correct place. PC users just don't understand.

    10. Re:I've been using vi for so long... by Miffe · · Score: 1
      (And yes, I know you can also use ^[, but that's pretty useless on most non-american keyboards. On my keyboard, that's ctrl-alt-8.)
      You can also hit ctrl-c. Much nicer than ^[.
    11. Re:I've been using vi for so long... by tuxlove · · Score: 1

      Woops, should have said, "with the ctrl key in the correct place".

    12. Re:I've been using vi for so long... by dwater · · Score: 1

      > In vi you only have to hit ESC once to get into command mode. After that you can type commands to your heart's content without the oppression of hitting some hard-to-reach escape sequence every time you want to do something.

      Right, so ESC shouldn't be included in this debate, since unless you're specifically switching from insert mode.

      You should also note that a lot of commands (ie not movement) require a ':' which is actually a shift-; and so somewhat equivalent to ctrl-x in that it's also two keys.

      --
      Max.
    13. Re:I've been using vi for so long... by martin-boundary · · Score: 3, Informative
      The Emacs command set is mnemonic as well ("mnemonic" here means that keystrokes are designed to be easy to remember). The basic Emacs commands exist on several logical levels.

      There's the character level ("C-f"orward, "C-b"ackward), and line level ("C-p"revious line, "C-n"ext line, "C-e"nd of line, "C-a" beginning of line, can't use C-b you see, so might as well use the start of the alphabet). That's when you think of text as rows and columns of characters.

      If you think of text as words and paragraphs, then you replace "C"ontrol with "M"eta (which is the Alt key on modern keyboards). "M-f"orward word, "M-b"ackward word, and so on, at least in fundamental mode.

      You can also think of text as regions within matching parentheses or other delimiters, then you can use the "M-C" commands (both Meta and Control + some mnemonic key) to move: "M-C-f"orward one expression, "M-C-b"ackward one expression, etc.

      What makes all this powerful is that emacs can recognize what kind of file you're editing, then it chooses good defaults for the various levels. So if you're programming in C, when moving around one word at a time, emacs doesn't get confused by the punctuation, and if you like to use something like CamelCase, then there's a minor mode which changes for "M-f"orward and "M-b"ackward word commands so the cursor stops before each hump inside an identifier instead of jumping to the next word.

      Unfortunately, emacs has so many commands that there's not enough keys on a keyboard to have simple mnemonics for all the things it can do. That's why we get things like "C-c C-o C-1" in esoteric modes. But if you use specialized modes, the idea is that you should select a key that you like and map the function to it. Usually, the functions keys F1-F12 are completely free to use for anything.

    14. Re:I've been using vi for so long... by Marcos+Eliziario · · Score: 1

      Some say vi is not intuitive. BS! When I started learning emacs, I would try to use ESC commands all the time. In fact, when I use a text editor in Windows, I need always to proofread my text to get rid of the ":w" I would left.

      --
      Your ad could be here!
    15. Re:I've been using vi for so long... by smallfries · · Score: 1

      The ESC key is a simple target but it's too far away! To leave insert mode you can also press ^C, which isn't too different from Emacs. In vim you can also use ALT-direction (either the cursor keys or the hjkl keys). These have the benefit that your hands don't leave the home area on the keyboard.

      I've never seen anyone edit text in emacs as fast as a competent vi user. I've seen some pretty experienced emacs users (including some guys who wrote a whole IDE for prolog in it), but none of them have the same speed as a vi user. On a modern machine I'm sure that emacs can't really be running that slowly - but it feels slow. Vi feels about as fast as I think.

      --
      Slashdot: where don knuth is an idiot because he cant grasp the awesome power of php
    16. Re:I've been using vi for so long... by quintesse · · Score: 5, Funny

      No no, it's the perfect first obstacle to weed out the people who shouldn't be doing any programming/writing on a *NIX system! A bit like entrance exams for universities.

      Of course, the first thing I did when I was confronted with vi back in the 80s was write my own editor.

    17. Re:I've been using vi for so long... by martin-boundary · · Score: 2
      You're not a touch typist, are you? If you're a hunt-and-pecker then it's natural to want to do everything one finger at a time, or at worst using several fingers of one hand. But the right way to type C- combinations in emacs is to use one hand to press Control and the other hand to press whatever the letter is. So C-x is typed by pressing x with your left hand and Control with your right hand. And C-p is typed by pressing p with your right hand and Control with your left hand. That's why modern keyboards have two control keys.

      Learn to touch type properly, it will literally save you from the worst risks of getting RSI, by teaching you ways of typing which don't strain your fingers that much.

    18. Re:I've been using vi for so long... by Ciggy · · Score: 1

      The colon prefix to commands in vi is actually accessing ex commands (FWIU).

      The one thing I miss in vim is the inability to use term=dumb that vi could - vi would display only the current line in the buffer and normal screen movement commands would be sensibly mapped[1]; the only cursor control vi required for term=dumb was ^M (carriage return = goto start of line, adding ability to do ^H (backspace) improved speed of use as going left 1 char used that as opposed to ^M{line upto char}.

      [1]I've used vi over a 300 baud modem link on a glass yty (=dumb terminal that only understood cursor controls ^M & ^H) and it was most usable. [One of the commands was mapped to display the context of the current line by showing the previous 10 lines, the current line and the following 10 lines.]

      --

      A rose by any other name would smell as sweet;
      A chrysanthemum by any other name would be easier to spell
    19. Re:I've been using vi for so long... by Gordonjcp · · Score: 1

      The ESC key is a simple target but it's too far away!

      I like the ESC key being further away, because it gives me the necessary 100ms for thought to overtake instinct if I'm about to ESC:wq something I'd rather just leave alone.

    20. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      I'll tell you how I really learned how to use vi ... playing Nethack. Nethack (THE GREATEST GAME EVER) uses the vi keys for movement, unless you're lame and turn on the number pad options. After a few weeks (months, years) of playing nethack, I was actually amazed at my productivity in vi. It really works!

      Now, did Nethack train me for vi, or did vi train me for Nethack? hmm.

    21. Re:I've been using vi for so long... by nizo · · Score: 2, Interesting

      Yeah, but which editor did you use to write the code for your editor?

    22. Re:I've been using vi for so long... by TheRaven64 · · Score: 1

      XII, surely?

      --
      I am TheRaven on Soylent News
    23. Re:I've been using vi for so long... by nizo · · Score: 1

      I remember back in school I considered learning emacs (or jove *shudder*) and then I started to do sysadmin work, and guess which editor was always installed on every system by default (be it running SunOS, Ultrix, or Dynix [from hell]) Thats right, good ol' vi. And in nearly every case emacs was a "compile it later after everything is up and running" package, so I pretty much had no choice but to learn vi (or ed!). That said, the joy of vi is that even after using it for 18 years, I will still see someone doing something new that I have never seen before. Oh, and colors in vim are an abomination. Then again people should realize I use xterms with a black background and green text because it reminds me of the vt240 terminals I used to use. I'd type more but the arthritis is acting up and my wooden dentures need a new layer of tree sap to keep from falling out :-|

    24. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      No ESC for your Vi? Might as well rename it Alcatraz.

    25. Re:I've been using vi for so long... by nizo · · Score: 1

      A friend of mine lived in the dorms and had a crappy terminal with a 300baud modem. I used to tease her that she could walk across the street to the computer center and be logged in before that beast would finish displaying the MOTD and pop up a prompt. She used to curse the operators when they would put 10 extra lines of useless junk in the message of the day. And I still fondly remember when I got to upgrade my 1200baud with a 2400baud modem *sigh* Now I can't stand dialup at any speed.

    26. Re:I've been using vi for so long... by TheRaven64 · · Score: 1
      Also don't forget that you can map commands to keys in insert mode. I am currently in the process of writing a book using vim and LaTeX. I have a script bound to F2 that replaces the current word with a \begin{}\end{} block and leaves the cursor indented on a new line between them. It also checks the word to see if it's an environment that I tend to use with a fairly standard configuration (e.g. figure or table) and if it is then it inserts my template.

      To all the people who posted that Vi and EMACS are relics, I suggest you learn how to use one of them. From what I've seen, I suspect I might find EMACS to fit my way of thinking slightly better (I prefer Lisp to Vim's bourne-like scripting language), but I learned to use vi (and later vim) first and haven't had a chance to get to know EMACS, but it really doesn't matter which one you use when you compare them to newer editors. None of their so-called successors offers anything like their flexibility. The UNIX philosophy is do one thing, and do it well, so when I'm editing text, I want an editor that allows me to edit text very well.

      --
      I am TheRaven on Soylent News
    27. Re:I've been using vi for so long... by vidarh · · Score: 1
      On my keyboard I have to lift my hand and move it to be able to hit ESC, while I can hit Ctrl-x with a slight movement of two fingers in my left hand. I'd be swearing loudly if I had to hit ESC much.

      The ^x sequences I use often in Emacs are all quick and easy to hit and don't require me to move my hands of the home row. The ones that aren't easy to hit are also the ones that I hardly ever use. And if I don't like the combinations I can always rebind them, but at the moment I only have a single custom key binding.

    28. Re:I've been using vi for so long... by Gnavpot · · Score: 5, Funny
      Yeah, but which editor did you use to write the code for your editor?

      He wrote another editor for that purpose.
    29. Re:I've been using vi for so long... by Stele · · Score: 1

      I wrote my first commercial SGI application with vi, because I had to teach myself how to use IRIX/UNIX and when I asked someone who know some unix what editor to use he said "vi". I still use it today for quick edits in a shell via cygwin on my Windows boxen, and on my Linux servers and my OS X systems.

      But after that I wanted something a little bit more fancy, with syntax highlighting and stuff, and I came across Crisp (www.crisp.com). This was back in 93/94. It's scriptable, but I learned its default command set and was immediately far more efficient. I liked it so much I've been using it since. I had to buy it, and pay maintenance on it, but I feel it is well worth it. Never ran into anyone else who uses it though. Like you, I just "think" in Crisp, and I am much less efficient when I am forced to use Visual Studio's editor or the one in XCode.

    30. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      On the keyboards that were standard when vi was developed, the ESC key was where the ` (backtick) is on a PC, and the CTRL key was where CapsLock is on a PC.

      IBM got a terrible amount of critisism on keyboard layout when they released their first PC.

    31. Re:I've been using vi for so long... by mce · · Score: 1

      Vi is the ultimate editor, for one main reason. It's a modal editor

      How true! But for me, the absolute beauty of vi is that the modality allows you to cut and paste not only text input but also commands without having to deal with that pesky Ctrl key and that you don't need the arrow keys to move around. The only special key you really need in vi is Esc and that little nuissance is easily solved by predefining a key mapping of an input sequence like ESCAPE - or whatever you prefer - to Esc.

      The number of times I have performed a set of editing commands on a group of files just by preparing them once, observing the effect "live", and then cutting and pasting them into every file in quick succession cannot be represented in 32 bits. :-) This technique saved my a ton of time, and is much simpler and safer than to write a shell (or heaven forbid) a perl script for it. This also is why my source code always looked consistent and easily readable: sticking to my layout rules made it very easy to write such vi commands, even complex ones, and the ease of applying them in vi made me actually care to consistently make any required global changes whereas others typically scared away from the effort.

    32. Re:I've been using vi for so long... by lysdexia · · Score: 2, Funny

      commands, than to hit ESC and :. It's not that you are correct, it's the fact that you used 'than' rather than 'then'.

      It's gotten so bad around here that I'm starting to tense up when I feel a comparison coming on in a sentence.

      (I have no karma anyway ...)
    33. Re:I've been using vi for so long... by lysdexia · · Score: 0

      In pc keyboards, the Esc key is FAR away. Yes Lawd! I had a burning in my carpals, so I actually shelled out the money and bought one of those cute little 'Happy Hacking' keyboards. They are small enough to fit in your cargo pants pocket (or down in your cargo pants if you feel really friendly toward them), have Contol on the home row and escape lives on the top row to the left of the '1'.

      Some love them, some loathe them, but I've been using mine since 1999 and have few complaints. The main think folks dislike on the 'lite' version (which I use) is that the arrow keys are accessed by holding a function key with your pinky and manipulating the "[", "'", ";" and "/" keys to move the cursor around. If you live in vi (or play lots and lots of nethack) this is no problem, but it do annoy in other editors until you get bulging, macho slabs of muscle built up around your radius.
    34. Re:I've been using vi for so long... by Waffle+Iron · · Score: 1

      I have one of those Microsoft Natural keyboards with the huge left Alt key that sits right under the left thumb. I've mapped to , and it takes only the tiniest movement to hit that combo. I like that better than having to reach for any other of the non-character keys. (In fact, like other people have pointed out, even though I hit that combo hundreds of times per day, it's now subconscious. I couldn't really recall exactly which keys it was without pulling up the editor.)

    35. Re:I've been using vi for so long... by lysdexia · · Score: 0

      I still remember the glow on my first wife's face when she unwrapped that cool aluminum USR 1200 baud modem. *meeemmoooriiiieeees*

    36. Re:I've been using vi for so long... by value_added · · Score: 3, Insightful

      Now that's just plain wrong. The caps lock key is supposed to be mapped to ctrl! That's what any true Unix user would do, because it proves you learned Unix on a terminal designed for Unix with the caps lock in the correct place. PC users just don't understand.

      For anyone who hasn't quite got it yet (the joke, or the approach), once upon a time the Control key was located where the Caps Lock key is now located. How keyboards have changed, mostly for the worse, over the years is an interesting discusssion, but I'll leave that aside for now. The point if you're an emacs user, you need the Control key somewhere handy. If you're a vi user, you need the Escape key handy. By handy, I mean you're not taking your hands off the home keys and reaching for a key that you'll be using every few seconds.

      The common approach is simply to remap the Caps Lock key (a mostly stupid and useless key if there ever was one). Doing so is fairly trivial, and works without any sort of ill effect. On *nix systems, there's an example in xmodmap(1). For Windows, there's a utility provided with the various Resource Kits that's called remapkey.exe or something or other. Personally, I think vi is the cat's meow, and to add to that, the Escape key, while a staple of using vi, is also useful in many GUI applications, even on Windows, so it makes perfect sense to remap the key and have it handy.

      The real point about vi (and learning vi for those who haven't yet invested the time) is that those same key strokes that you've spent time learning, memorising and eventually reconfiguring to suit yourself can, and typically are, applicable to just about any application out there (Firefox included, though with some trouble). Using set -o vi in bash, for example, can make you feel like you're right at home. On the other hand, those seemingly all-purpose keystrokes don't work everywhere. Editing vi commands within vi aren't possible using vi keystrokes. Another common program is screen, which demands (mostly) a Control key combination entered before any other command. Further info and fun bed time reading is readline(3).

      It's worth noting that some vi users don't remap the Escape key, but use the Control-[ combination (which is actually the same as hitting the Escape key). I guess the habit could be learned over time, but personally I find the [ key is a bitch to hit regardless of what keyboard I'm using.

    37. Re:I've been using vi for so long... by jrockway · · Score: 1

      Well, some other editors anyway. Emacs uses C-n, C-p, C-f, C-b. Much faster than using the arrow keys. (Using C-h as backspace is also faster than hitting backspace.)

      Speaking of which, who decided that vi would use hjkl instead of jkl;?

      --
      My other car is first.
    38. Re:I've been using vi for so long... by Some+guy+named+Chris · · Score: 1
    39. Re:I've been using vi for so long... by Anonymous Coward · · Score: 5, Funny

      and since one editor must be written in another editor, something must have written the very first editor - therefore God exists

    40. Re:I've been using vi for so long... by TheCybernator · · Score: 1

      I am pretty happy with notepad.

    41. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      I think in vi. When editing, commands just happen like thoughts. They are so ingrained in my brain

      I see you followed this advice

    42. Re:I've been using vi for so long... by lysdexia · · Score: 0

      What is the ':' for "Aquire Disciplined Layout Rules"? I'd love to map that in my .vimrc. :-)

    43. Re:I've been using vi for so long... by Gnavpot · · Score: 5, Funny
      and since one editor must be written in another editor, something must have written the very first editor - therefore God exists

      Are you claiming that editors are intelligently designed?
    44. Re:I've been using vi for so long... by multipartmixed · · Score: 1

      The control key is right next to the A. That's a barely perceptible movement of the hand.

      The only control-X combination required by daily emacs-coding-use is ^X-s (save), ^X-S (save all), and meta-control-Q (re-indent).

      Once every six or eight months, you also have to have ^X-C (exit).

      And if you're too stupid to learn how to press two keys at the same time, that's okay. press escape, then x, then type "global-set-key" and set your shortcuts however you like 'em.

      --

      Do daemons dream of electric sleep()?
    45. Re:I've been using vi for so long... by Randle_Revar · · Score: 2, Funny
      The common approach is simply to remap the Caps Lock key (a mostly stupid and useless key if there ever was one).

      But, but, I thought caps lock was CRUISE CONTROL FOR COOL!



      (Typed with the shift key as my caps lock key is an additional ctrl)

    46. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      Try ':willpower!' :-)

    47. Re:I've been using vi for so long... by honkycat · · Score: 1

      I find the easiest way to hit the emacs stuff is just to use the side of my left palm to hold down ctrl and then hit the keys with my fingers. Of course, this probably gives me RSI like hell... I'm a fast touch typist, but never got the hang of hitting modifiers (other than shift) with my left hand. Oh well.

    48. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      Those were the days of *NIX gods. Nowadays you would call his editor

      cat | gcc

    49. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      I use notepad. Its the best.

    50. Re:I've been using vi for so long... by ucblockhead · · Score: 1

      The difference is that in vi, you hit ESC once before entering a whole serious of commands whereas in Emacs, you have to hit Ctrl-X before every command.

      --
      The cake is a pie
    51. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0
      The Emacs command set is mnemonic as well ("mnemonic" here means that keystrokes are designed to be easy to remember). The basic Emacs commands exist on several logical levels.

      There's the character level ("C-f"orward, "C-b"ackward), and line level ("C-p"revious line, "C-n"ext line, "C-e"nd of line, "C-a" beginning of line, can't use C-b you see, so might as well use the start of the alphabet). That's when you think of text as rows and columns of characters.

      If you think of text as words and paragraphs, then you replace "C"ontrol with "M"eta (which is the Alt key on modern keyboards). "M-f"orward word, "M-b"ackward word, and so on, at least in fundamental mode.

      Interesting. I've been using bash for years and have already memorized all those movement commands. Yet I've never even used Emacs. It's good to know that I can quickly jump in and use it. BTW, other readline apps and GTK also use these keys; I use them in psql and in Firefox's text box.
    52. Re:I've been using vi for so long... by tehshen · · Score: 1
      Speaking of which, who decided that vi would use hjkl instead of jkl;?

      The letters "hjkl" are in that order more often than "jkl;" are - a German keyboard has "jklö" instead, for example. And you know that thing vi has about being consistent.
      --
      Guy asked me for a quarter for a cup of coffee. So I bit him.
    53. Re:I've been using vi for so long... by Zathrus · · Score: 1
      You can also think of text as regions within matching parentheses or other delimiters


      The same is true in vim (which is used for vi on most Linux distros now) -- there are special motion commands for words, sentences, paragraphs, blocks (variously delimited -- [, (, {, and What makes all this powerful is that emacs can recognize what kind of file you're editing

      As does vim, and it's pretty easy to add your own types and very easy to alter the default settings.

      emacs has so many commands that there's not enough keys on a keyboard to have simple mnemonics for all the things it can do


      Again, the same is true in vim, but I'd argue that the overloads are still more sane (and typist friendly) than those in emacs. And if you're concerned about hitting ESC, then Ctrl-[ does the same exact thing, and (in vim at least) so does ctrl-c (there's one difference, actually -- Ctrl-C will also interrupt long searches, while ESC will not). If you're using the stock Windows vim/gvim then ctrl-c will be remapped to cut, but that's easy to fix (and I recommend you get rid of mswin.vim anyway, as it is unadulterated evil if you're used to Unix vim).
    54. Re:I've been using vi for so long... by wboelen · · Score: 1

      I'm one of those lucky users with an AZERTY-keyboard. The X is right next to the C... CTRL+X is clearly not an option, because it could end rather ugly ;)

    55. Re:I've been using vi for so long... by tuxlove · · Score: 1

      It's worth noting that some vi users don't remap the Escape key

      I've never known anyone who remapped their caps lock key to ESC. Not one. Most people I know leave it alone, but some map it to ctrl, like me, for easy reaching when you need to enter a control character. This is the first time I've heard anyone do anything so crazy as put ESC where ctrl should be.

    56. Re:I've been using vi for so long... by Idbar · · Score: 1

      :q! that! You're creeping me out!

    57. Re:I've been using vi for so long... by quintesse · · Score: 1

      I wrote it on an Amiga using an editor that was called "ged" if I recall correctly.
      (Yeah, the AmigaOS wasn't *NIX but I used several "compatible" POSIX libraries... problem was that they were supposed to be compatible but I never was able to get the damn thing to work on any of the systems at my university, so in the end I just accepted my fate and learned to operate vi ;)

    58. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0
      There's the character level ("C-f"orward, "C-b"ackward), and line level ("C-p"revious line, "C-n"ext line, "C-e"nd of line, "C-a" beginning of line, can't use C-b you see, so might as well use the start of the alphabet).
      Gotta' love Emacs users. A sane person would use Arrowkeys+Home+End, being that all keyboards have 'em these days ;-)
    59. Re:I've been using vi for so long... by LizardKing · · Score: 1

      And from the point of an Emacs user, it doesn't seem so different to need to hit C-X before some commands, than to hit ESC and :.

      Except that holding the control key down and then pressing another key is a good way to get wrist problems. I think it's quite appropriate that Richard Stallman got RSI seeing as he's the one largely responsible for inflicting Emacs on us.

    60. Re:I've been using vi for so long... by bar-agent · · Score: 1

      I love my vvii

      In the midst of heavy editing, do you lose control of the keyboard and it flies off your desk?

      --
      i'd hit it so hard, if you pulled me out you'd be the king of britain [bash.org]
    61. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      Smart ;)

    62. Re:I've been using vi for so long... by ChadN · · Score: 1
      I've used Emacs for 20 years, and only ever learned enough vi to barely get by (a few simple editing commands and :wq). Now I'm in the process of switching completely to VIM. I really like it, as it has many of the great things I loved about Emacs (split windows with multiple buffers, command and file completion, unlimited undo, etc.).

      However, I had to remap some keys to make it less painful. Specifically, I swapped the TAB and ESC keys when in insert mode, and swapped the CTRL and CAPSLOCK keys on my keyboard mapping. Now I have CTRL in the proper place (left of 'A'), the ESC key is just above it when I need it most (to enter command mode).

      The CTRL/CAPSLOCK swap is done in various ways on different OS's (Mac has it as a preferences toggle), and my ~/.vimrc has these two lines to swap TAB/ESC only when in insert mode:

      :inoremap <tab> <esc>
      :inoremap <esc> <tab>
      For some more VIM tips on dealing with weird ESC placement, see here:
      http://vim.sourceforge.net/tips/tip.php?tip_id=285

      As a longtime Emacs user, I think VIM really is worth learning. It is useful to be proficient in both.
      --
      "It's overkill, of course. But you can never have too much overkill." - Anonymous Slashdot Coward
    63. Re:I've been using vi for so long... by Anonymous Coward · · Score: 1, Funny

      I think you mean 2ivi ;)

    64. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      Control-3 is a nice traditional combo for esc, although I use control-[ myself, with caps lock mapped to an additional control. You don't even need to use xmodmap for that anymore, modern X11 servers have a ctrl:nocaps XkbOption.

      On OS X, it's been a standard option for several years (previously you had to use a third party tool to remap it).

    65. Re:I've been using vi for so long... by Frodo+Crockett · · Score: 1

      I've only been using vi on a regular basis for about a year, but I catch myself trying to use vi commands in GUI apps! Sadly, they do not work.

      --
      "The newly born animals are then whisked off for a quick run through a giant baking oven." --heard on Food Network
    66. Re:I've been using vi for so long... by that+this+is+not+und · · Score: 1

      I first started BBSing on a printing DECWriter. Those are big wide floor-standing printing terminals. Mine operated at 300 baud and I had an acoustic coupler to connect to the boards with. I liked having a permanent backscroll on paper, but disliked the sysops who put long login messages on their boards. The DECWriter I had acquired at a thrift store somewhere, and managed to transport it up the rickety back stairway of the upper duplex I was living in by myself.

      Paper consumption was somewhat of a problem, but I could use both sides of the paper as long as I remembered to not break the pages at the perforation very often.

    67. Re:I've been using vi for so long... by Chacham · · Score: 1

      I think in vi.

      Is that when your in editing mode or writing mode?

      When somebody corrects you do you ask them to shift modes first?

      When editing, commands just happen like thoughts. They are so ingrained in my brain I don't even remember the actual key sequences.

      That's called instinct. van der Hoop covers it in detail when disagreeing with Jung on the Sensory function.

      Vi is the ultimate editor, for one main reason. It's a modal editor, so commands can be mnemonic.

      As long as you remember to shift modes.

      With editors like emacs, you're always having to hit ^X before commands

      Obviously you have never used emacs for more than three or seconds because the only thin you tried doing was exit.

      To add a new line (which requires who-knows-what in vi) is as simple as hitting enter, no ^X or anything other than the simple thing.

      or with MS word you're always having to lift your hand off the keyboard to move the silly mouse around.

      That is the most absurd thing you have said as of yet. Microsoft is *extremely* keyboard friendly, and almost never requires the mouse. Not only is everything easy as pie in Word, the shortcuts are usually consistant with all MS's application.

      If you used the mouse with Word, you haven't actually tried not to. I mean, all the keyboard sequences are on the menus. How could you miss them?

      With vi, you don't need a steenking mouse.

      Actually, you *can't* iuse the mouse. At least in Word you can should you choose to.

      Your hands never leave the keyboard. And commands make sense and don't require that you hit some yucky control sequence to initiate.

      So shifting modes is any better than a control sequence?

      You have a preference. You prefer shifting modes to learning menus/sequences. That's perfectly ok, but so is the opposite approach. And, if you want me to respect your subjective opinion, you've got to respect other people's opinions as well.

    68. Re:I've been using vi for so long... by xmda · · Score: 1

      That's why we get things like "C-c C-o C-1" in esoteric modes.

      A comment about this. Key combinations like the one above might seem extremely complicated until you realise that you do not have to let go of the Ctrl key; press Ctrl down and type c o 1 (OK, I admit, the "1" there is a bit out of place as I have to reach far with my right hand) and then let go. All in all, 3 and a half keystroke.

    69. Re:I've been using vi for so long... by qzulla · · Score: 1

      GoldEd. Man, that one rocked more than any other editor I have ever used. It could be modified easily with macros, modify the menus, set up environments depending on the file suffix, size gfx in html mode. I used to do a lot of html stuff (won't call it coding) and was doing a lot of table stuff at the time. Highlight, F10... done. Highlight, F11... done.

      It did everything. I still miss it. No editor has ever filled the gap.

      The author eventually released it to the wild with a free key.

      qz

    70. Re:I've been using vi for so long... by thogard · · Score: 2, Informative

      Where does the :wq come from? It was superseded decades with the introduction of :x which gets rid of the ambiguity of :wq! meaning :w!q or :w q!

    71. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      funny you mention that. RMS developed RSI and no longer uses Emacs.

    72. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      In pc keyboards, the Esc key is FAR away. Yes Lawd! I had a burning in my carpals, so I actually shelled out the money and bought one of those cute little 'Happy Hacking' keyboards. Waste of money; just remap back-tick to Esc. It's simple and portable to any machine. imap `
    73. Re:I've been using vi for so long... by swillden · · Score: 1

      and since one editor must be written in another editor, something must have written the very first editor - therefore God exists

      And His name is Richard M. Stallman.

      (vi users, of course, will claim His name is Bill Joy).

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    74. Re:I've been using vi for so long... by larry+bagina · · Score: 1

      The first version of ed was written in assembly language on paper. It was then manually assembled to octal opcodes and burned to ROM/BIOS. It could then be used to edit itself.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    75. Re:I've been using vi for so long... by ChadN · · Score: 1

      Perhaps, but my point was back then I didn't know enough to do that. I had been taught the minimal 'vi' basics, which was generally "use :wq to write and quit." I never even thought about :w!q versus :wq!, as I always did that in two steps.

      Believe me I'm a wiz at Emacs, and I always thought 'vi' came up well short, but I'm REALLY enjoying learning vim. To me, it is that big an improvement over vi (and possibly over emacs, once I master it)...

      --
      "It's overkill, of course. But you can never have too much overkill." - Anonymous Slashdot Coward
    76. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      Slashdot is proof of the opposite ;)

    77. Re:I've been using vi for so long... by 644bd346996 · · Score: 1

      Your user name would seem to disqualify you from making such comments.

    78. Re:I've been using vi for so long... by Anonymous Coward · · Score: 0

      No kidding. I first started to use vi because I was logging into lots of different systems and 'vi' was the only editor that was present and worked reliably on all of them. Then I got used to modal editing and the movement/searching functions, which, unfortunately, made using regular text editors (like the ones included with every IDE out there) a real pain. So I started using vim, which still works pretty reliably on every system out there (but not all... but then there's vi) and has IDE like plugins you can use.

      But I can't really explain to other people how to use it. It's like trying to tell someone how to play guitar. Just learn it and quit bothering me.

    79. Re:I've been using vi for so long... by Anonymous Coward · · Score: 1, Insightful

      Grandparent used 'than' properly. Scarblac is comparing two items and 'than' is acceptable in that situation.

    80. Re:I've been using vi for so long... by value_added · · Score: 1

      Control-3 is a nice traditional combo for esc, although I use control-[ myself, with caps lock mapped to an additional control. You don't even need to use xmodmap for that anymore, modern X11 servers have a ctrl:nocaps XkbOption.

      The XkbOption is something with which I wasn't familiar. Thanks for the tip.

  5. Recommended for new *nix users? by BarneyRubble · · Score: 5, Interesting


    > It was a world that is now extinct. People don't know that vi was written for a world that doesn't exist anymore

    I use vi everyday but i've long stopped recommending it to most people i introduce to linux.
    it really doesn't seem worth steep learning curve for most people.

    Do you recommend vi to all new *nix users now?

    1. Re:Recommended for new *nix users? by menkhaura · · Score: 2, Informative

      I usually walk them through gvim, and slowly introduce the keyboard commands. If the person isn't a doorknob, she will learn at least keyboard navigation and basic search and replace in no time. Besides, with syntax highlighting, auto-indenting, multiple (split) views on the same window (which OpenOffice to this day can't do) and other goodies make me want nothing but vim, even when I'm on a Microsoft platform.

      --
      Stupidity is an equal opportunity striker.
      Fellow slashdotter Bill Dog
    2. Re:Recommended for new *nix users? by Aladrin · · Score: 1

      Depends on who you define as a 'new *nix user'.

      If I gave a Kubuntu system to my mother (I wouldn't, because all she does is play those silly Windows-based games) then I would definitely not even show her the command line.

      When we hired a new programmer at work that had very little *nix experience, I immediately told him to learn and love vi.

      --
      "If you make people think they're thinking, they'll love you; But if you really make them think, they'll hate you." - DM
    3. Re:Recommended for new *nix users? by larien · · Score: 4, Insightful
      vi is worth knowing at least the basics of, simply because it's installed by default on 99% of Unix & linux systems. The only other editor you can pretty much guarantee to be installed is ed, which is even less user-friendly than vi.

      While emacs, pico etc are installed on most linux systems, you won't find them on Solaris, AIX or HP-UX.

      For an end user, they probably shouldn't worry too much as they'll have kedit or something in the GUI, but *nix admins should know vi.

    4. Re:Recommended for new *nix users? by nsupathy · · Score: 1

      Yes I do. I recommend all newbies to learn vi. But its upto them to continue on my guidance. Most of them look with awe when I start working in a unix host using variety of commands and they want to reach there. Only way is to learn vi.

      --
      #include std_disclaimer.h
    5. Re:Recommended for new *nix users? by Zzeep · · Score: 1

      Yes, if I think they have to edit some config files, I recommend vi (which in practice is vim) Vim is not hard to learn. Sure, it takes a few minutes, and a little cheat sheet of commands, but once you get the hang of it I am very very positive that it is still the fastest editor around. Also for programming. At the company I work now, most people use MS visual studio. Looking how awfully slow those people navigate through text, have to move the mouse to search and replace, slowly jump to a function declaration, it's a pitty. The power of regular expressions in vim to search and replace, the ease and speed in which you can move blocks of text around, how fast you can look for text, etc. Also, vi (and X windows in general) seem to use up much less of precious screen real estate. In X windows I always have 4 xterms open (on my main virtual window). Having four windows open in MS Windows, while still being practical, you need a 26" screen, which will introduce another kind of lag: having to move your head to be able to see the corners of the screen. So VI(m) is King, and if something better comes along I'll use it, but I don't think we'll see anything better sometime soon.

    6. Re:Recommended for new *nix users? by lanc · · Score: 1
      Do you recommend vi to all new *nix users now?
      just to the administrator-wannabes, not to the users. Users can have gvim :)

      by the by - I used elvis for a long time on X - was always a kindof nice graphical mockup of vi.

      Apropos vi - do you find Emacs on the most def. installations on todays Unix systems?

      --
      "First they ignore you, then they laugh at you, then they attack you, then you win." -- Mahatma Gandhi
    7. Re:Recommended for new *nix users? by lanc · · Score: 2, Funny
      Depends on who you define as a 'new *nix user'.
      If I gave a Kubuntu system to
      Ahhh. Linux Is Not Unix Xohdontyouunderstandit

      --
      "First they ignore you, then they laugh at you, then they attack you, then you win." -- Mahatma Gandhi
    8. Re:Recommended for new *nix users? by cliveholloway · · Score: 1

      Try using a reverse ssh tunnel through your personal server, then from there ssh to a gateway box, then out to your target box. Then you start to notice speed issues.

      I would strongly recommend they learn vi, but I'm not going to throw a hissy fit if they fire up pico or something. I might wince a little, but it does take a while to get your head around vi so I can understand the reluctance to begin with.

      --
      -- Trinity in high heels carrying a whip: The donimatrix - there is no spoonerism
    9. Re:Recommended for new *nix users? by TheRaven64 · · Score: 1

      Try sshing in via GPRS or some other packet data service. With ping times of around 500ms or above, you really start to notice the benefits of an editor designed for slow connections. I have a co-located server in the USA, but I live in the UK. The ping time from here to there is rarely less than 200ms, and vi[m] works fine.

      --
      I am TheRaven on Soylent News
    10. Re:Recommended for new *nix users? by It'sYerMam · · Score: 2, Insightful

      The only way? I don't think so! Vi is a means to an end, not an end in itself, so any other way of doing the same thing (text editting) will get give you the same end abilities.

      --
      im in ur .sig, writin ur memes.
    11. Re:Recommended for new *nix users? by EnglishTim · · Score: 1

      You just need to know enough vi to install Some Other Editor.

    12. Re:Recommended for new *nix users? by louzerr · · Score: 1

      I never would have survived those dark days of 28k-baud modems without vi! And what a blast to input a series of commands, and then sit back and watch as the screen caught up!

      Most of the linux admins I work with all use vi in their day-to-day work. I've known a few developers that work in Emacs, but that seems to be falling off with the rise of free IDEs like Eclipse. I think in fact Emacs was built for a world that is becoming non-existent.

      But if you really want to prove someone a true 'nix-head, take vi off the system. Cool people can do it all with echo ;) See Linux from Scratch - http://www.linuxfromscratch.org/

      --
      "The large print giveth, and the small print taketh away" -- "Step Right Up", Tom Waits
    13. Re:Recommended for new *nix users? by mapkinase · · Score: 1

      No. When I first started doing UNIX about 20 years ago, I used "jot" on IRIX. After that I had to do some work on sparcs and then I switched to "vi". So, I would recommend to switch to vi to the sophomore UNIX user - the user that switches to his second UNIX system. He will appreciate the advice, I am sure.

      --
      I do not believe in karma. "Funny"=-6. Do good and forbid evil. Yours, Oft-Offtopic Flamebaiting Troll.
    14. Re:Recommended for new *nix users? by Brandybuck · · Score: 1

      vi is also on Mac OSX, whereas Emacs is not. In fact, the ONLY Unix sytems I have not seen vi on, was on a certain Linux system that decided that vi was too complicated for newbies, despite the fact that newbies would never even know it was there.

      --
      Don't blame me, I didn't vote for either of them!
    15. Re:Recommended for new *nix users? by Johnny+Mnemonic · · Score: 1

      emacs is indeed on OS X; I have it here on 10.4.8. I do have the developer tools installed, perhaps it comes with that.

      --

      --
      $tar -xvf .sig.tar
    16. Re:Recommended for new *nix users? by Santana · · Score: 1

      I recommend vi (which in practice is vim)

      Another Linux user...

      You know, there are other OSes out there that may or may not link vi to vim.

      --
      The best way to predict the future is to invent it
    17. Re:Recommended for new *nix users? by Anonymous Coward · · Score: 0

      28k baud? ha! those are hardly the "dark ages"

      want dark? try chatting on IRC with a buggy half-assed DOS TSR TCP stack over a 2400 baud modem. On an 8088. you have to connect to the internet practically blindfolded which takes a good 15-20 minutes. then you have to pray to the ISP gods that you've successfully logged on. and then it's time to pray your TCP stack doesn't crash and that your IRC program doesn't crash and that you have enough RAM left to actually get into a chat room.

    18. Re:Recommended for new *nix users? by Brandybuck · · Score: 1

      Yeah, you're right. I never use it, because I can never remember the command to quit. Perhaps that's because the command is different on EVERY system I've ever used Emacs on.

      --
      Don't blame me, I didn't vote for either of them!
    19. Re:Recommended for new *nix users? by Crayon+Kid · · Score: 1
      vi is worth knowing at least the basics of, simply because it's installed by default on 99% of Unix & linux systems.
      That is a rather poor excuse for using it. What happened, didn't your Unix or Linux system come with a package selector in the install interface? Didn't include anything but vi on the install media?

      For an already installed system, all bets are off, the current or former admin must have tweaked the installed packages to suit his own fancy. If they don't use vi it may not be installed. It comes down to what they use.

      As for the off-chance you may end up on an unknown system with nothing but vi at hand and absolutely no means to install another text editor... that's as plausible as anything. How often does that happen? And if it happens, OK, chances are good there's going to be a vi around rather than something else, but the point is, vi is not some God-handed down absolute must for a Unix/Linux system. Its presence and usage depends on people's preferences. If I don't like vi I don't have to learn anything any more than I have to learn pico, nano, joe, emacs or mcedit.
      --
      i ate crayons when i was a kid and now i have two braincells and the blue ones taste nicer
    20. Re:Recommended for new *nix users? by Any+Web+Loco · · Score: 1

      FWIW I learned (the basics) of vi so that when X screws up I can use an editor to fix it.

    21. Re:Recommended for new *nix users? by larien · · Score: 2, Insightful
      Didn't include anything but vi on the install media?
      Pretty much - I think vi is the only available editor on Solaris, AIX & HP-UX base CDs. There are "additional software" CDs, I think, but I haven't looked at those for a while.
      As for the off-chance you may end up on an unknown system...
      Welcome to the hell of "service take-on" when you buy a company and absorb their IT systems. You are in a maze of different OS builds, all different and all governed by change control, so you have a 3 day lead time (if you're lucky...) to install any software, let alone some GNU freeware downloaded from the net.

      Or you've just joined the company and they use the base OS and none of your namby-pamby extra software!

      I have yet to see a system build where vi wasn't installed or was removed.

  6. Too late by Anonymous Coward · · Score: 0

    It is 2007, the story is from 2003. Who really uses either editor these days?

    1. Re:Too late by cyphercell · · Score: 1

      I was just about to post the same sort of thing. It was a good story when i rtfa (~3) four years ago.

      --
      Under the influence of Post-Cyberpunk Gonzo Journalism
    2. Re:Too late by robzon · · Score: 2, Informative

      Who really uses either editor these days?
      I do. I love to use vi(m) for coding. And it's the only editor I can use efficiently while working remotely. And it's very configurable. And it looks s0 l33t with semi-transparent background and all those beryl effects on my Ubuntu laptop.
      But seriously, vi(m) is really great once you learn it. Though I agree it has a pretty steep learning curve. Anyways, it was worth it.
    3. Re:Too late by mwanaheri · · Score: 2, Informative

      I use it. Vi (or better: vim) is really sweet if you have to look at textfiles of >100mb. Also, if you have to edit a file on a different machine. On the other hand, when working in a graphical environment anyway or as a suggestion to new users, I often recommend kate.

      --
      Idha khatabahum lijahiluna qalu salaman
    4. Re:Too late by Alioth · · Score: 4, Insightful

      I use vi (actually, vim) all the time. Many people do. It is a *good* well featured editor which doesn't take up too much space. It runs on all the operating systems I use every day - OpenBSD, Linux, Macintosh and Windows. If I have a GUI, I use the GUI version. If I don't, I use the terminal version. It is consistent across all those four operating systems I mention regardless of whether I'm using it via the GUI or over an ssh terminal session. That consistency is worth _a lot_. It doesn't need the mouse either which makes it much faster to use. Vi is just as relevant today as it was back when it was written, possibly more so because of its consistency across systems.

    5. Re:Too late by _Shad0w_ · · Score: 3, Interesting

      I still use vim as my primary text editor, on Linux and Windows. It's just a neat little text editor; it does everything I want it to do and it does it efficiently. Plus I've been using it for years, so I'm comoftable with it. I see no reason to stop using it.

      I may have switched to using things like Eclipse for editing specific types of text file (Java, PHP, HTML and XML) and using Visual Studio for coding (because nowdays I'm primarily working on Windows), but vim is still my utility text editor when I want to quickly modify or look at a text file.

      I daresay a lot of people feel the same way about emacs; frankly they're entitled to.

      --

      Yeah, I had a sig once; I got bored of it.

    6. Re:Too late by TheRaven64 · · Score: 1

      Who really uses either editor these days? I am currently writing a book, and I tend to write about one article a week. I write a lot of code too. I use vim for all of this. No newer editor offers anything like the power and flexibility of a modern vi or EMACS. If you deal with large amounts of text on a regular basis, you are doing yourself a disservice by not learning at least one of them.
      --
      I am TheRaven on Soylent News
    7. Re:Too late by Anonymous Coward · · Score: 0

      Does kate put out more then ed or joe?

    8. Re:Too late by Anonymous Coward · · Score: 0

      "Idha khatabahum lijahiluna qalu salaman"

      Correction:
      "Idha khatabahum eljahiluna qalu salama"

    9. Re:Too late by maraist · · Score: 1

      Ahem.. look at files > 100Meg??? Why are you using gvim? You should use gview!!!! gvim creates a swap file, gview doesn't. gview (like view) is just [g]vim with the -R flag. Actually, 100Meg probably doesn't make much of a difference... But I've been having to contextually search 5 gig log files these days (damn default jboss logging levels). And that makes the difference of getting the job done that afternoon. :)

      grep -n 'Search Str' file* | head -5
      view file1
        linenumG

      --
      -Michael
    10. Re:Too late by Anonymous Coward · · Score: 0

      I agree. I am currently finishing my phd dissertation. I wrote the whole thing in vi. Nothing is faster or more efficient. Writing totally flies!

    11. Re:Too late by mwanaheri · · Score: 1

      "Idha khatabahum lijahiluna qalu salaman"

      Correction:
      "Idha khatabahum eljahiluna qalu salama" Oh, I've only seen it transcribed like this. I'll check your correction, thanks.
      --
      Idha khatabahum lijahiluna qalu salaman
    12. Re:Too late by mwanaheri · · Score: 1

      Well, it happens that I have to make little changes here and there...

      --
      Idha khatabahum lijahiluna qalu salaman
    13. Re:Too late by dskoll · · Score: 1

      I use Emacs mostly and vi occasionally. I've written thousands of pages of books and user manuals using Emacs, and probably hundreds of thousands of lines of code. I have to use vi because my company produces Linux-based appliances. To keep the size down, we don't include emacs. :-(

    14. Re:Too late by maraist · · Score: 1

      I hear ya.. But it's just as easy to hit ":w!" when you're done in that case. For the majority of cases that you don't have to save changes it saves time and system resources (especially if you're on a heavily loaded machine).

      --
      -Michael
  7. Speed of vi by larien · · Score: 4, Interesting

    The legacy of how vi was written is pretty much evident in the terse commands it uses - commands are short, to the point but an absolute bitch to figure out without some reference. However, the short commands are still useful in today's gigabit ethernet world with Gigahertz CPUs - the short commands are quicker to type and for plain text, I'm much faster with vi than any other text editor around.

  8. Back in the days... by Anonymous Coward · · Score: 0

    From the article:
    "By the way, before that summer, we could only type in uppercase. That summer we got lowercase ROMs for our terminals. It was really exciting to finally use lowercase." ... sounds like Grandpa Simpson

    1. Re:Back in the days... by tuxlove · · Score: 1

      sounds like Grandpa Simpson

      Bill Joy is probably old enough to be your grandfather. Just guessing from your high user ID.

      Back in my day we had to type in upper case while walking uphill in both directions through 5 feet of ASCII.

    2. Re:Back in the days... by kfg · · Score: 1, Offtopic

      ... sounds like Grandpa Simpson

      Don't worry, your turn to sound like that is coming, in about five years. Laugh while ye may.

      KFG

    3. Re:Back in the days... by Stormwatch · · Score: 1
      sounds like Grandpa Simpson
      Bill Joy is probably old enough to be your grandfather.
      Hey, what a comparison. Bill Joy is just 52. Abe Simpson is 83.
    4. Re:Back in the days... by Anonymous Coward · · Score: 0
      ... sounds like Grandpa Simpson

      Don't worry, your turn to sound like that is coming, in about five years. Laugh while ye may.


      Agreed, laugh while ye may and spend some time with the kids too. Cats in the Cradle

      Just getting the CRT terminals was exciting enough, not that they really replaced card readers but made a nice substitute for the TTYs that looked more at home at Western Union or in military communications. Watch out for the head slips, they get me often these days.
    5. Re:Back in the days... by TheRaven64 · · Score: 1

      Just guessing from your high user ID. Uh, his user ID was 0; that's a lot lower than yours in most numbering systems...
      --
      I am TheRaven on Soylent News
    6. Re:Back in the days... by lysdexia · · Score: 0

      Whatever. You 300K and above whippersnappers with your Dan Fogelberg albums and your 'Beat-a-Diddle' dungarees ought to have to shovel mercury with a thumbnail into a hot reverberatory furnce (*and* hit the crucible without spilling!) to seperate out pure gold from the foeces. You can't make a danged Babbage geartrain with brass that is worth a hoot and I don't care if you *do* have it in a linseed oil-bath!

      *cough*

    7. Re:Back in the days... by doug · · Score: 1

      In your day? Don't you have a 6 digit id? How far back was "your day", really?

      I had a high school teacher explain to the class why we were supposed to use edlin for assembly instead of the nice wordstar-like editor that came with turbo pascal 2.0.

    8. Re:Back in the days... by that+this+is+not+und · · Score: 1

      I always love it when people with low account numbers leap into any discussion pertaining to low account numbers.

      It's too bad that back when that guy was impersonating Bruce Perens (I am the REAL Bruce Perens) that the solution was to throw ID #s into usernames. I say this because it doesn't mean squat if you have a high or low UID on Slashdot.

      Or I guess it does, huh?

      'Mae Ling Mak, Naked and Petrified', btw.

  9. Those who forget history... by neongenesis · · Score: 5, Insightful

    This is good history to remember. Those who weren't there find it hard to appreciate the tremendous leap forward of Unix Version 6 and ed on a PDP-11. We had been using teco on our PDP-10 and the cousin of ed that was on Multics, but we had been getting into PDP-11s for more and more things. Comparing ed on Unix with the line editors available on PDP-11 DOS/BATCH and that new-fangeled RT-11 thing was amazing. Along with all the other tools available on Unix, the PDP-11 went from a toy to a state-of-the-art (for then) development environment. We were mostly on DECwriters and TI-Silent 700s runing hardwired 1200 baud at work and 300 baud from home over the modems. We started to get VT-100s about the time vi was being released and it was again a great leap forward.

    Thanks Bill Joy! I have used your work in the BSDs and Suns and all the followons over the years, but vi was a most important gift at an important time.

  10. Re:Too bad vi sucks by tuxlove · · Score: 2, Interesting

    modal editors is the worst idea in the history of computing. [sic]

    This thinking is precisely why vi continues to be superior to other editors. For some godforsaken reason people seem to be afraid to make modal editors, so "modern" editors damn you to using a mouse or ugly awkward command sequences for everything. Can someone explain why modal editors are a bad thing? It is this very fact that's kept me using vi for decades now.

  11. Old news by Anonymous Coward · · Score: 0

    The article is 3 years old, ffs.

    In my experience vi is 900-1200 times more efficient that Microseft POS Visual Studio when programming.

    1. Re:Old news by Anonymous Coward · · Score: 0

      In my experience vi is 900-1200 times more efficient that Microseft POS Visual Studio when programming.

      Visual Studio is an integrated development environment. Vi is a plain text editor. Apples. Oranges. You're an idiot.

  12. Indeed by Vandil+X · · Score: 1

    I got used to using pico for years. It was installed on all the UNIX systems I worked with. Fast forward many years when I had to edit a config file on a UNIX server that didn't have pico installed. -- I had to google for vi commands...

    --
    Up, Up, Down, Down, Left, Right, Left, Right, B, A, START
    1. Re:Indeed by lysdexia · · Score: 0

      Heh. I know the feeling. I have referred to this page or a version thereof on and off for years.

  13. eek! by rucs_hack · · Score: 1, Insightful

    This could get as ugly as the creationist vs evolutionists debate...

    I prefer Vi, since I spend lots of time at terminals logged into remote machines. Although things are faster these days, having such a tightly optimized editor is useful.

    I have taught Emacs. That was an experience that was. I had to spend a week teaching myself how to use it, then teach a bunch of freshly minted undergrads, who then thought I was some kind of Emacs Guru. How wrong they were.
    Project students, being slightly more experienced final year bods, were all force marched to the Vi camp (well, gvim, I'm not that cruel), so I wouldn't have to use The Eight Megabytes and Constantly Swapping Monster if they needed help.

  14. Echoes of the past by frisket · · Score: 4, Funny
    Just confirms my {subliminal:emacs} unshakeable {subliminal:emacs} prejudice {subliminal:emacs} that vi had its heyday some decades ago.

    The time for dual-mode editors (where you have to press something before you can begin to type, and then press something else when you stop typing) is long since gone, thank goddess.

    1. Re:Echoes of the past by jamesh · · Score: 1

      I still use vi when i'm at a text only console. And even when i'm not a lot of the time. If you ever had to use a text terminal running at 9600bps or slower, you probably would have learned vi and loved it too. At the time the learning curve was steep, but the payoff was grand (even if the payoff was just laughing at the other students waiting for there screens to redraw :). Nowadays, the learning curve is still steep but the payoff isn't so obvious, and kids these days don't seem to understand the concept of delayed gratification.

      As soon as keyboards started to appear with cursor keys on them, I think most implementations of vi would let you use them to move around even when you were in 'type' mode, and that was _years_ ago.

      Actually, I even remember having command line history requiring a press of escape to scroll back. I think it was on an old Irix server. It seemed like a pain until you realised that your hands didn't have to move from the home row at all, which is the other great advantage of vi.

      Bah. I'm too old.

    2. Re:Echoes of the past by Anonymous Coward · · Score: 0

      Until your system is hosed and you have nothing else.

    3. Re:Echoes of the past by Ragica · · Score: 2, Insightful

      Many of the elements that made vi usable at 300 baud are what continue to make vi such an incredibly fast and productive to use today, on fast net connections and locally. Once you've gotten over the initial learning curve of course. (But if you use Emacs then editor learning curves are likely the least of your problems.)

    4. Re:Echoes of the past by evilviper · · Score: 1
      The time for dual-mode editors (where you have to press something before you can begin to type, and then press something else when you stop typing) is long since gone,

      I agree. VI is rather user un-friendly and clumsy.

      Unfortunately, there's no other options out there... {subliminal:emacs sucks}
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    5. Re:Echoes of the past by Brandybuck · · Score: 1

      The time for dual-mode editors... is long since gone

      Funny, I can enter a mode, type a cpmmand, and exit that mode, in the same time it takes an Emacs exert to wrap his fingers into the contortions necessary to type the same command.

      --
      Don't blame me, I didn't vote for either of them!
  15. From TFA: by smittyoneeach · · Score: 3, Funny
    finally there was ex
    And there was much ejoycing.
    (ay)
    --
    Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
    1. Re:From TFA: by ettlz · · Score: 1
      And there was much ejoycing.
      Look, mate, if you want to go about ejoycing you do it in the privacy of your own home, not in public and certainly not on Slashdot.
  16. How do I go about learning Emac? by Anonymous Coward · · Score: 0

    Contrary to parent, I want to learn how to use Emacs. I read about old *nix hands and programmers using it and its potential power excites me but I don't know why yet. However, I find the tutorial very.... um, I just don't remember the commands once I go through it.

    And why do they teach the letter commands to go through the program when the up, down, left, right arrows exist on every keyboard and do the job?

    What is the easiest way to learn emacs? (Besides just using it.)

    1. Re:How do I go about learning Emac? by Marcos+Eliziario · · Score: 2, Informative

      "And why do they teach the letter commands to go through the program when the up, down, left, right arrows exist on every keyboard and do the job?" They do. But they do require more movement from your hand. Believe me, once the commands for navigating thru text are impregnated in your brain, you'll crave for them even within Microsoft Word. At that point of addiction, you'll start googling "emacs key binding microsoft word"

      --
      Your ad could be here!
    2. Re:How do I go about learning Emac? by darkwhite · · Score: 1

      Actually, they are. Home, End, PgUp, PgDn, Ctrl-up/dn/left/right, Alt-up/dn/left/right, Ctrl-F. Those are the keys that work properly in most modern GUI text editors.

      You know how I learned these, and many others? By looking at the main menus and the shortcuts noted in them. This is why I despise both Emacs and vi. They provide no facility whatsoever for UI-based, online help and exploring of options. They have no concept of UI. Thanks, but I'd rather use a less featureful GUI editor (with no mouse necessary) and write some macros than internalize all those key combinations in the blind.

      And don't get me started on Emacs' "menus" or default indentation mode or "GUI" or any number of other quirks.

      --

      [an error occurred while processing this directive]
    3. Re:How do I go about learning Emac? by Marcos+Eliziario · · Score: 1

      Of course, we are not discussing the existence of those keys, neither, are us, emacs users ignorant of them.
      The thing is, to use any one of those keys, I have to move my hands out of the main row in the keyboard. This can be fine for you, but for me, I found out that it's a lot less stressful if I can navigate around my text without moving my hand wildly across the keyboard.
      Of course, to fully take advantage of that, you need to know touch typing, otherwise you are already moving your hands and the extra economy in movements won't be worth the hassle. Another thing is moving around buffers, In a language like Java, where almost every class has its own file, I find a lot more convenient to use emacs commands to move around buffers than having to get my hand on the mouse to click in a tab.
      I used to think like you in the past, as I was using windows since windows 3.0. But I am glad that I was open minded enough to learn a more elegant weapon for more civilized times.

      --
      Your ad could be here!
    4. Re:How do I go about learning Emac? by darkwhite · · Score: 1

      But I am glad that I was open minded enough to learn a more elegant weapon for more civilized times.

      Save your condescension for when you can actually make a point. Almost everyone these days knows how to touch type and few people feel the need to learn the unintuitive double-keypress commands for movement. I can use the keys I described far faster than the modifier+X keys, simply because they are single keypresses and I can home my right hand on them with no effort at all without looking at the keyboard, especially on the Thinkpad keyboard I use most of the time. Likewise, if you think a modern GUI-based text editor requires a mouse to switch between buffers, you've been living in the past for a long time. Many modern editors have even caught up with Emacs on text-completion-based buffer switching, but unlike Emacs, they are actually able to also display all the open files and loads of other useful hierarchy information in a sidepane.

      --

      [an error occurred while processing this directive]
  17. iI like vi by v3xt0r · · Score: 1

    ioops, I did it again!

    --
    the only permanence in existence, is the impermanence of existence.
    1. Re:iI like vi by Neeth · · Score: 1

      :q!

      --
      Yes, I am the one with the legendary sig.
    2. Re:iI like vi by Col.+Bloodnok · · Score: 4, Funny

      nstresting comment!:wq

    3. Re:iI like vi by ysegalov · · Score: 0

      you are aware of the fact that :x does the same as :wq, right?

    4. Re:iI like vi by hclyff · · Score: 1

      You can ZZ as well, with one hand and you don't even have to enter the command mode!

      As you can plainly see, vi is the best. QED. And by QED I mean ZZ

    5. Re:iI like vi by Col.+Bloodnok · · Score: 2, Insightful

      I don't like :x. To my mind the words e(x)it and (q)uit are synonymous, whereas "(w)rite then (q)uit please" or "(w)rite then (q)uit DAMN YOU(!)" are obviously not the same as just "(q)uit please". I clobbler fewer files this way.

    6. Re:iI like vi by lysdexia · · Score: 0

      The :wq sequence, along with good, old sudo has saved me over and over again.

      Muscle memory
      so fine until speed kills.
      Think: drag chute, geek boy.

    7. Re:iI like vi by Anonymous Coward · · Score: 0

      Damn, I didn't know that. Thanks! ...learn something new every day.

  18. Hard to learn but worth it by jlherren · · Score: 5, Insightful

    vi was a horror when I started using UNIX systems and I couldn't understand why anyone would want to use such a strange editor. So I went with emacs and was happy. But after a while (dunno how this happened) I went back to vi(m) and invested the necessary time to learn it. I took me about a year before I could say that I'm able to use it efficiently, so the learning curve is pretty heavy. But at the end I don't regret it at all, because I feel a lot more efficient with vi(m) than with any other editor. I couldn't live without it now.

    Good tools are hard to master.

    1. Re:Hard to learn but worth it by Cheapy · · Score: 2, Interesting

      A screwdriver isn't hard to master, and that's a pretty damn good tool if you ask me.

      --
      Would you kindly mod me +1 insightful?
    2. Re:Hard to learn but worth it by Anonymous Coward · · Score: 0

      To use and to master are two very different things. Even with a tool as simple as a screwdriver.
      Believe me it takes more than a few hours to really master a screwdriver.

      Tom.

    3. Re:Hard to learn but worth it by itlurksbeneath · · Score: 1

      A screwdriver is a pretty specific tool for a specific task. Granted you could say that emacs and vi are specific tools for editing files, but there's a whole lot of different tasks involved in editing a text file.

      It's probably more like a compound miter saw or a wood lathe. Anybody can use the saw or lathe, but it takes some time to master it.

      --
      Have you ever considered piracy? You'd make a wonderful Dread Pirate Roberts.
    4. Re:Hard to learn but worth it by david_costanzo · · Score: 1

      I stopped using VI when someone showed me that XEmacs had a VI emulation mode. (M-x viper-mode). XEmacs has some features that I haven't found in the VI clones, like good CVS integration. Once you're in viper mode, you can use XEmacs just like VI, but you also get some additional functionality.

  19. I use both Vi (vim) and Emacs. Brief is better by cdn-programmer · · Score: 2, Funny

    Brief (by underware) is better.

    I use both VI and Emacs and I just miss Brief. I thing is that the code was sold to Borland which last I looked became Impress (which isn't impressing me) and the code base is shelved. Can we OSS the code base?

    I understand the issues. What I do not understand is why the HUGE advancements in VI for instance are so obscure that I use it at only a very primative level. Then we have Emacs and xEmacs.

    I think we need some courses put together for kindergarten kids. The biggest issues is that most people are not willing to spend endless hours digging through unorganised and disjointed documentation. So we don't learn what our tools can do.

    This is sad.

    Here is what I think. I think editors have been around for 40 years at least. Some have horrible personalities. But the issue is not the personality... it is the person who loves the personality.

    So perhaps we need to ask why I cannot ask Emacs to present the full "Brief" personality. I know that Emacs can do this. I've programmed a number of elisp commands. The issue then becomes.. how do we work as a community?

    I am certain there are at least a billion answers. I kinda think there is a lot of code laying around that the authors of which pained over and they have "given up".

    I do not know all the things VI can do. I wish I did. I wish I could rent a lecture that showed me. Numbers I got are that this costs $1000 a minuet.

    Maybe this is why its not there.

    Alas

  20. Unix console text editors are annoying by bl8n8r · · Score: 2, Interesting

    I've been using them since 1993 and have never gotten used to them. I got hooked on the Borland 3.1 IDE and IMHO it was a better text editor. I appreciate the efficiency of nano and others when logged in over a serial line, but I really miss BC. One of the biggest problems has been keyboard sets. A Sun keyboard gives different scan codes than a PC and if the terminal settings don't take this into account, things get wacky. You end up with a complete evolution of keys and combinations in each editor just to cut and paste a line of text *ugh*. Nothing the same between them. Another problem with vi (and maybe others) is their growing dependancies on system libraries. I recently tried and install of vi which complained of a gtk dependancy; sheesh. This one [0] is from an embedded arm system (debian). Why do I need gpm when running vi? All I want is a simple, independant text editor that fits in a small space. The mouse isn't even useful in vi (directly). Another curious feature of these text editors is people seem to fancy themselves l33t h4x0r5 when they master the hjkl keys of vi or other un-intuitive keyboard combinations. People, you've not cracked a Gibson here; it's just a text editor. Go fix Bind, then we'll all be impressed.

    [0] vim.basic: error while loading shared libraries: libgpm.so.1: cannot open shared object file: No such file or directory

    --
    boycott slashdot February 10th - 17th check out: altSlashdot.org
    1. Re:Unix console text editors are annoying by Anonymous Coward · · Score: 1, Interesting

      like many others you think you're using 'vi', but in fact you're using vim or other crap.

      just google; you'll find that the original vi is free now, and builds fine on linux.
      and there's 'nvi' too, which is also better than vim.

      the only reason why someone would use vim is support for multibyte encodings, double-width
      characters, etc.

      and you could cut & paste a line in vi with ':m+2' eg to move it 2 lines below, or with a
      combination of 'dd' and 'p' or 'P'.

      finally, vi is a terminal editor, not a kernel, and has no fucking idea of the scancodes
      and things like that.

    2. Re:Unix console text editors are annoying by jgrahn · · Score: 3, Interesting
      Another problem with vi (and maybe others) is their growing dependancies on system libraries. I recently tried and install of vi which complained of a gtk dependancy; sheesh. This one [0] is from an embedded arm system (debian). Why do I need gpm when running vi?

      You mean libgpmg1. That's not related to GTK in any way (thank god).

      Personally, I am happy with nvi(1), "a 'bug-for-bug compatible' clone of the original BSD vi". No strange dependencies there. But then I use emacs for all longer editing sessions.

    3. Re:Unix console text editors are annoying by BitchKapoor · · Score: 1

      Yo yo, Borland C and joe both use default keystrokes derived from WordStar. When I switched from DOS to Linux in the mid-'90s, I found it quite easy and natural to pick up joe, and I've been using it ever since. Check it out!

    4. Re:Unix console text editors are annoying by Anonymous Coward · · Score: 0

      Learning how to do things in vi that you can do in normal text editors is hardly noteworthy, but if you learn to use vi properly (most people who know how to use vi, but mostly use other editors, don't), you'll realize that there are things it can do that are very awkward in other editors.

      I use combinations like ">}" and "dt)" all the time. I also use f a lot. Most editors don't support such things at all. Even emacs doesn't make those things as quick and convenient.

  21. VI is a bad joke by Anonymous Coward · · Score: 0

    seriously

    1. Re:VI is a bad joke by Anonymous Coward · · Score: 0

      I make my living using vi and I earn more money than you. Please keep laughing ;-D

  22. Interesting Choice of News by icedivr · · Score: 5, Informative

    The article has definately triggered some nostalgic moments, but it's an article from September 2003 that reports on the content of an interview conducted in 1999. It isn't really news any longer.

  23. The perfect excuse to game! by Anonymous Coward · · Score: 0

    "Come on, whats this. Are you playing that stupid ascii game nethack again?"
    "No, I'm working on my vi-fu. I seem to have mastered the movement keys"

  24. He wrote vi? by Anonymous Coward · · Score: 0

    He should have used vim - more features.

  25. Re:Too bad vi sucks by fnj · · Score: 3, Insightful

    modal editors is the worst idea in the history of computing.

    Insert mode. Overtype mode. That's modal. I suppose you're against that.

  26. Vi is really good for editing the emacs makefile by david.emery · · Score: 1

    If that qualifies as a "boon to mankind". OK. :-)

              dave

  27. Trolling for controversy? by hammarlund · · Score: 2, Informative

    Interesting article, but this article was published on 11th September 2003.

    1. Re:Trolling for controversy? by Joebert · · Score: 1

      Got an extra pair of socks ? I got some soap.

      --
      Wanna fight ? Bend over, stick your head up your ass, and fight for air.
    2. Re:Trolling for controversy? by zurmikopa · · Score: 1

      Yeah, it's good to see that Slashdot is finally posting some more recent articles.

  28. Vi: great stuff by GreatBunzinni · · Score: 2

    I may be a young whippersnapper with only a couple of years of non-MS Windows experience under my belt but if there is one thing that I really felt in love in the unixy-way of doing things then that thing is vi (or vim). Sure, it has a very steep learning curve. After a lifetime of notepad-like editors, who in their right mind finds all those modes and obscure commands palatable? Yet, after a bit of teeth cringing in front of a terminal editing text then all those obscure commands start to sink in, make sense and even getting indispensable. The vi way of editing text is such a time saver that starts to be indispensable. As I see it, anyone with a reasonable vi experience is able to become much more productive at writing text than the regular way. All the operations the user will ever need are literally a couple of keypresses away. You don't need to waste time reaching for and using a mouse, resort to finger gymnastics to use modifier keys... Everything is just there at the tips of your fingers. And even if you need any custom task you can bind any custom operation to a key shortcut and you are ready to go. So many thanks Bill Joy. Your work is much appreciated. Kudos!

    --
    Slashdot, fix your code or at least hire someone who is competent at it to do it for you.
  29. No... by SimonShine · · Score: 1

    > Do you recommend vi to all new *nix users now?

    No, because recommending vi to anyone means having to spend more time helping them leave the editor. The fact that the editor has (almost UI transparent) states where keys behave differently throws off most people. But I do like to help people who have already chosen the editor and damn themselves for not changing.

    Why have sex when you have six?

    --
    Take off every 'ZIG' !!
    1. Re:No... by TheRaven64 · · Score: 1

      Vim shows you the mode in the bottom left hand corner. Also, when you invoke it, it gives you a little help screen telling you how to quit and how to get help. If they are starting off on a Linux system then they will be using vim whenever they type 'vi' (on other platforms, vi may be either nvi or something else). Learning vim is easier than learning vi, but using vi when you know vim is pretty easy.

      --
      I am TheRaven on Soylent News
    2. Re:No... by RKThoadan · · Score: 1

      > The fact that the editor has (almost UI transparent) states where keys behave differently throws off most people.

      Yep, that's my big problem with vi. I just got a job where I'm in an AIX box frequently, and it's just plain vi, it doesn't even tell me what mode I'm in, so I really stumble through it. I think I would be reasonably happy if backspace and delete would work normally, but nope, gotta change modes to delete anything. I guess thats one way to encourage people to type it right the first time. I think if it would loosen up and let me use a few commands without switching modes I could really like it.

    3. Re:No... by LizardKing · · Score: 1

      :set showmode

      Or better still, add it to your ~/.exrc file.

    4. Re:No... by SimonShine · · Score: 1

      > Vim shows you the mode in the bottom left hand corner.

      Hence the 'almost' - it might not be obvious what those mean to new users, though.

      > Also, when you invoke it, it gives you a little help screen telling you how to quit and how to get help.

      Not if you invoke the editor with a filename as argument. And not if you press mostly any other key than the quit sequence since it will wait for a full command. The first thing I learned in this regard was to press escape a number of times since, in command mode, one escape and a character will call forth one set of commands, whereas two escapes in a row will return to command mode with a bell beep, suggesting you can now type :commands again. Confusing, I admit, but once one gets used to it, it is really just a matter of how much of the editor's state one can experience through subtleties.

      > If they are starting off on a Linux system then they will be using vim whenever they type 'vi' (on other platforms, vi may be either nvi or something else).

      Yes, I have noticed this hideous tendency. I personally have 'vi' aliased to execute vim because I can use the command anywhere and avoid "command not found" (compareable to when Linux users type 'ls' in MS-DOS prompts). But faking the editor binary seems like an obfuscating practice. I have noticed on one particular server I connect to that the operating system has been shipped with a customised vim adapted to behave exactly like Berkeley vi. They even disabled colours, run in compatible mode and the like. Exactly why is beyond my understanding.

      > Learning vim is easier than learning vi, but using vi when you know vim is pretty easy.

      Returning to vi on systems I have less control of, I continuously type commands that only exist in vim.

      And the basics are basically just i, and :wq, ain't it. :-)

      --
      Take off every 'ZIG' !!
    5. Re:No... by TheRaven64 · · Score: 1

      I have noticed on one particular server I connect to that the operating system has been shipped with a customised vim adapted to behave exactly like Berkeley vi It's not a customised vim. When you invoke vim with the filename vi (typically done by hard linking it to vi) then it runs in compatibility mode. I believe the exception to this is when it detects a .vimrc and you run :set nocompatible. This is the default configuration on many GNU systems, since people expect vi to exist, but since it is non-Free, they can't include it. BSD systems tend to use nvi instead.
      --
      I am TheRaven on Soylent News
  30. Re:Too bad vi sucks by fforw · · Score: 1

    the common argument against modes in software is that they lead to mode errors. Users forget they're in the mode and thus the software doesn't act like it's expected to be. there seem to be very few exceptions where that is no problem, e.g. holding down the shift key to enter the uppercase mode

    --
    while (!asleep()) sheep++
  31. MOD PARENT FUNNY YET RATHER CLEVER by cliveholloway · · Score: 1

    oh go on. go on go on go on go on go on go on go on.

    --
    -- Trinity in high heels carrying a whip: The donimatrix - there is no spoonerism
    1. Re:MOD PARENT FUNNY YET RATHER CLEVER by Anonymous Coward · · Score: 0

      'tea, bishop brennan?'

  32. parentheses and brackets, oh yeah by misanthrope101 · · Score: 1

    I'm new to Unix-type things, but I really like vi. My favorite features are the movement commands. As soon as I found that I could use the parentheses and brackets to move around and copy/paste, I was hooked. I still haven't figured out the buffers that well, and I miss the idiot-proof ctrl-c/x/v, but p hasn't killed me yet. But selecting the last 2 sentences is much easier with 2( than it is with the mouse, with which I have to visually count sentences and then hunt for the beginning of the one I want to start from.

    1. Re:parentheses and brackets, oh yeah by maraist · · Score: 2, Informative

      Come on.. You haven't memorized "aYj"bY2j"ap2j"bp yet? (" (Store next-command in buffer) a, Yank-line. j Move to next line. " (buffer) name b Yank line. (Repeat next command) 2 times - j line-down. Then from " (buffer) name a paste. 2 lines j (down), From " (buffer) b, paste.). Once you've written that to your brain, the ability to cut and past between hundreds of megabytes of text file becomes blinding.

      Or 10Gma2jd'a Goto line 10, mark line/col-number to buffer a, move down j 2 lines. d from current line to marked line a

      Or 02wma2j01wd`a Go to 0'th column of current line. Jump 2 words forward. mark line/col to buffer a. Jump 2 lines j (down). Go to 0'th column. Jump 1 wword forward. delete from the `current line/col to the line col in buffer

      Cryptic, but no more so than a programming language - once you learn the building blocks, complex stuff comes naturally (assuming you have a mind for compositing).

      I've not see named buffering (especially with the ability to refer to either the lines as a whole or the exact col-positions) in any other editor. emacs has ring-buffers (or kill-buffers), but I've never been able to use that intuitively. There are vi key-sequences that can be applied to heavy-weight editors like emacs, eclipse or Intellij Idea, but they just don't seem to fit naturally (because the power of those editors are afforded by their special key-sequences).

      The end result is that I still have gvim windows and Idea windows on separate monitors 24/7. Each type of editor does its intended role perfectly - no more, no less.

      --
      -Michael
  33. Not hard enough.. by B5_geek · · Score: 5, Funny

    I haven't found vi or emacs to be hard enough.

    That why I port edlin to every box I work on.

    --
    "The price good men pay for indifference to public affairs is to be ruled by evil men." ~Plato (427-347 BC)
    1. Re:Not hard enough.. by Uncle+Kadigan · · Score: 1

      Hey, don't knock edlin! It's far and away the best text-processing tool that microsoft ever released. It's small enough to fit on a usefully-equipped boot floppy, able to edit files of ANY size, and capable of being invoked in batch mode. None of these were true of its supposed replacement, edit. Additionally, every other editor ms has released has required use of a mouse. I can't begin to count the number of hours I spent using edlin back when I was making a living working in DOS.

  34. Re:Too bad vi sucks by Anonymous Coward · · Score: 0

    Yes, Overwrite mode is lame. There should only be insert mode, which would make the editor modeless.

  35. Obligitary joke by zakezuke · · Score: 5, Funny

    "My PID is Inigo Montoya. You kill -9 my parent process, prepare to vi. "

    modded down in three, two...

    --
    There is no sanctuary. There is no sanctuary. SHUT UP! There is no shut up. There is no shut up.
    1. Re:Obligitary joke by Anonymous Coward · · Score: 0

      It's a like a thousand hackers suddenly groaned out and then were silenced,...

    2. Re:Obligitary joke by Anonymous Coward · · Score: 0

      It's a like a thousand hackers suddenly groaned out and then were silenced,...

      My /. ID# is 229119, I repeate the same joke and get + mod points, prepare to groan then silenced.

  36. vi is great, but emacs is greater. by rtra · · Score: 1

    Vi's mode really helps my RSI, but emacs is so powerful that I've choose to adopt it as my primary editor.

    If only existed a good emacs mode for modal editing... :-|

    1. Re:vi is great, but emacs is greater. by Cow+Herd+(Anonymous) · · Score: 1
      If only existed a good emacs mode for modal editing... :-|
      You should investigate viper mode. Vi key bindings in emacs; but keeping most of the emacs key bindings and all of emacs' programmability.
    2. Re:vi is great, but emacs is greater. by rtra · · Score: 1

      I found a good solution, besides using viper mode.

      I'm using AccessX's sticky keys.

      Works great!

  37. Re:Too bad vi sucks by ChrisMaple · · Score: 1

    And the rebuttal to the common argument against modes is "The status line displays the current mode."

    --
    Contribute to civilization: ari.aynrand.org/donate
  38. I wish I had portable vi by misanthrope101 · · Score: 1

    I run Portable Openoffice and Portable Firefox from a usb pendrive. The only other programs that I have really wanted was a portable version of Drivecrypt and Portable Vi. That, and maybe TexMaker with all the requisite backend LaTeX stuff to make PDFs.

    1. Re:I wish I had portable vi by arabagast · · Score: 1

      I don't know about a portable vi (perhaps a small cygwin install on your flashdrive ?) but I can really recommend truecrypt as encryption for your pen drive. It's both for windows and linux. It really helped me from a paranoia attack the other day, when I lost my keychain with my USB drive attached to it. (found it a day later, hapilly)

      --
      Doolittle : ...What is your one purpose in life?
      Bomb no.20 : To explode of course.
    2. Re:I wish I had portable vi by misanthrope101 · · Score: 1

      I use Truecrypt, on both Windows and Linux. But you still have to be able to install it, something you can't do on locked-down systems like I have at work. I'd like to be able to just drag the container file to the Truecrypt icon on the pen-drive, but there is some deeper mojo that has to take place for it to work, and you need administrator priveleges to get it to work.

    3. Re:I wish I had portable vi by dyamkovoy · · Score: 2, Informative

      There _is_ a portable gVim here. And for built in vi, Firefox has the ViewSourceWith plugin, which works just great with gVim. It lets you edit any textarea using the editor of your choice. (I'm not affiliated with either of these, they're just good software.)

    4. Re:I wish I had portable vi by Anonymous Coward · · Score: 0

      ... I'm pretty sure you don't have to install it. There's a "traveller" mode where you just copy the folder over to your pendrive, doubleclick on the trucrypt executable, and you're up and running.

    5. Re:I wish I had portable vi by misanthrope101 · · Score: 1

      I didn't know about portable gvim. Thanks!

    6. Re:I wish I had portable vi by nudeatom · · Score: 1

      Try Unixkit Tiny, runs well off a USB drive and contains vi. http://jlb.twu.net/code/unixkit.php/

      --
      Yeah right, Like Im gonna write a sig.
  39. Rebuttal to the rebuttal by Anonymous Coward · · Score: 0

    I shouldn't have to look at the status bar to know what keypresses are going to do. I know whether or not I have my fingers on Ctrl-X or whatever without having to look away from the text I am focusing on.

  40. emacs is for failures by Anonymous Coward · · Score: 3, Funny

    All code that doesn't fit an 80 column terminal was written by failures.

  41. Richard Stallman's model for emacs by Anonymous Coward · · Score: 4, Funny
    1. Re:Richard Stallman's model for emacs by GringoCroco · · Score: 0

      I think that's an image of Perl ...

  42. i do it all with... by FudRucker · · Score: 1

    Midnight Commander (works great in both CLI & GUI)

    --
    Politics is Treachery, Religion is Brainwashing
    1. Re:i do it all with... by dbcad7 · · Score: 1
      For Linux, I agree with you.. can't comment on other Unix systems. I am annoyed that most distro's stopped including it by default. If I had an install that went bad for the X-server configuration, I found mc very handy. I suppose the other editors are just as good, but I found it useful to have file and directory and editing capabilities all rolled into one.. And most people with previous MS-DOS editing experience would have no problem using mc. I think for an editor that you are trying to use without "having used it before", it's hard to beat.

      Now on the GUI front.. I think there are many other editors I would use instead... but to each their own.

      --
      waiting for ad.doubleclick.net
    2. Re:i do it all with... by FudRucker · · Score: 1

      RE: ["Now on the GUI front.. I think there are many other editors I would use instead... but to each their own."]

      Nedit is a nice little GUI text editor, has excellent syntax highlighting in many languages.

      http://www.nedit.org/ (it should also be available at sourceforge too)

      --
      Politics is Treachery, Religion is Brainwashing
  43. From vi to vim, now back again to vi by MrBoombasticfantasti · · Score: 1
    After learning about vim (back in the 3.0 time), I used it for everything. However, since about a year I find myself going back to the original vi.

    I don't know why, but it 'feels' better. Yes, I sometimes miss the syntax highlighting of vim and I really love the visual columnar blocks (don't need it much, but when i do it's really nifty!). But overal I feel vim has become too bloated. Too many config files, too many dependencies and (yes) too many commands.

    So, back to vi it is for me.

    --
    !ERR: Signature not found.
    1. Re:From vi to vim, now back again to vi by massysett · · Score: 1

      Where do you even find the original vi? As a user of various Linuces I've never even seen vi. It's always vim.

    2. Re:From vi to vim, now back again to vi by ir · · Score: 0

      Look for 'nvi'. It's the default on *BSD systems, and I'm guessing it would be available for Linux too.

      --
      Irina Romanov
    3. Re:From vi to vim, now back again to vi by Anonymous Coward · · Score: 0

      nvi is not the original vi. Duh.

    4. Re:From vi to vim, now back again to vi by Anonymous Coward · · Score: 1, Interesting
      Where do you even find the original vi?

      The Unix Heritage Society has the original source code. Get the file 2bsd.tar.gz . It's a beautiful tarball. The timestamps in it go back to May 1979! Vi is located in the src/ex directory. This source code might be hard to compile, but Gunnar Ritter has added the needed changes to make it run on Linux. Try http://ex-vi.sourceforge.net/
    5. Re:From vi to vim, now back again to vi by swordgeek · · Score: 1

      Step away from Linux, and you'll discover that it's the oddity in the crowd.

      Solaris: vi
      HP-UX: vi
      AIX: vi
      IRIX: vi
      *BSD: nvi (not exactly vi, but much closer than vim)

      Why vim took over the Linux world baffles me. It always takes me a week on a new Linux machine to figure out how to turn off all of the unwelcome 'on by default' features. If vim is invoked as vi, it should revert to strict vi compatibility mode by default.

      --

      "People who do stupid things with hazardous materials often die." -- Jim Davidson on alt.folklore.urban
    6. Re:From vi to vim, now back again to vi by Anonymous Coward · · Score: 0
    7. Re:From vi to vim, now back again to vi by metamatic · · Score: 1
      If vim is invoked as vi, it should revert to strict vi compatibility mode by default.

      It does. You need to :set nocompatible to get the extended behavior. However, some Linux distributions decide to install helpful .vimrcs by default.

      --
      GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
    8. Re:From vi to vim, now back again to vi by swordgeek · · Score: 1

      I would argue against that claim.

      When I say "strict vi compatability," I mean that I shouldn't know that I'm using anything other than plain ol' vanilla vi. vim's compatability mode is...weak. Lots of things that might be closer, but still aren't vi.

      --

      "People who do stupid things with hazardous materials often die." -- Jim Davidson on alt.folklore.urban
  44. CygnusEd by hoover · · Score: 1

    I wish somebody would port Amiga's CygnusEd over to Linux. While I'm an emacs user when working on Unix systems, I still recall fondly the ease of use, speed and straight-forwardness of working with CygnusEd on my trusty A500. It just took a bit of AREXX / VLT magic to turn this thing into a full blown email client, just as an example.

    Ok, the softscrolling might be hard to do without the custom chips on Linux system, but I guess I could do without them for now ;-)

    --
    Ever wondered whats wrong with the world? http://www.ishmael.org/
  45. Edlin - 6 month quick fix still available in Vista by Anonymous Coward · · Score: 1, Interesting

    Edlin is obviously the best.

    Yeah Edlin's not bad for a 6 month quick fix in QDOS which is still available as the *same* version in Vista ! Microsoft certainly know how to resell code ;-)

    I miss these old editors which had many uses..... With regards to VI for example my friends and myself used to use it to clear out a.out files under rsh (That's RSH as in Restricted SHell under System 4 and NOT Remote SHell)! Mind you that was before we worked out the far simpler command "time csh" which obviously is just a helpful command to time how long you spent in the CSH shell when you ussed that command to start CSH from the RSH shell.... :) Yes, VI helped many people free themselves of the shackles of certain restrictive shells....

  46. There is no confusion! by MrBoombasticfantasti · · Score: 1
    Think about it this way: you are always in 'command mode'. In this mode you can issue commands that modify your text or move your cursor around. When you want to insert (or append) any text, you give the 'insert' command, by pressing 'i'. Then you enter your text. When you are done, you press 'escape'.


    Where is the confusion? You just treat insert as a command which has a limited scope. You stop inserting when you are done, just as you stop deleting when you are done.


    It really makes perfect sense.

    --
    !ERR: Signature not found.
  47. The ultimate Unix editor by Ambitwistor · · Score: 4, Funny

    I see so-called "hardcore" Unix geeks advocating 'ed'. Nonsense! The ultimate Unix editor is "cat >filename". All the others are for indecisive wimps who don't know what they're going to write, or incompetent losers who make mistakes.

    1. Re:The ultimate Unix editor by rhizome · · Score: 1

      Indeed. "Ed is the standard editor" like Windows is the standard OS!

      --
      When I was a kid, we only had one Darth.
    2. Re:The ultimate Unix editor by marcosdumay · · Score: 1

      cat > filename is also much easier to use...

    3. Re:The ultimate Unix editor by Millenniumman · · Score: 1

      Gah. cat is for fools who can't manage their own character encoding.
      od is for losers with no luck
      A true unix expert uses dd and /dev/random, and it always gets it it exactly write the first time. In fact, for a true unix expert, it will fix bugs/typos/spelling errors he hadn't thought of.

      --
      Stupidity is like nuclear power, it can be used for good or evil. And you don't want to get any on you.
  48. Join the Church of vi by Chrax · · Score: 5, Funny

    :w saves!

    I actually want that on a t-shirt. I would do it myself, but I don't think my stenciling skills are up to the task.

    1. Re:Join the Church of vi by cananian · · Score: 2, Informative

      That's what CafePress is for.

      --
      [ /. is too noisy already -- who needs a .sig? ]
    2. Re:Join the Church of vi by Anonymous Coward · · Score: 0

      Cafepress t-shirts themselves are decent, but the printing (even just black on white) is just an iron-on transfer thing and fades rather quickly. I'd look for alternatives that do proper silkscreening or whatever.

  49. ugh Vi by Anonymous Coward · · Score: 0

    It amazes me, with some of the hot text editors (ultredit for example) we have so many old school aka 1980 folks that just love their Vi. I despise it and the limitations it puts on others if you work in a dept with a nazi old school unix person who requires everyone use Vi. Evolve would ya. I dont need to be restricted.

  50. Today's Editor War: Eclipse vs. NetBeans by Anonymous Coward · · Score: 0

    We have a similar war going on today. Except unlike the EMACS vs. vi war, we don't have two systems that each offer unique benefits. Instead we have NetBeans, which is bloated beyond all hell and is as slow as a snail. And on the other hand we have Eclipse, which is slightly less bloated and only slightly faster than NetBeans.

    1. Re:Today's Editor War: Eclipse vs. NetBeans by cibyr · · Score: 1

      Having used both recently, netbeans is better at playing nice with people who are using other editors. Eclipse is better at everything else.

      With regards to the slowness, on a 3ish GHz P4 with 512MB RAM eclipse is fast enough to not piss me off. Netbeans isn't. Running netbeans on an UltraSPARC dev server with ridiculous amounts of RAM, fast disc and CPU is a whole other story. It still seems to do more stupid things than eclipse though.

      --
      It's not exactly rocket surgery.
  51. I didn need no stinkeen editors by crovira · · Score: 2, Interesting

    a toggle switch front panel with a STURDY [deposit] switch was enough for me. (God I feel O-L-D!)

    PDP-8s PDP-11s, Interdata 7-32s, Cromemcoes, Keronics (Data General knock offs) all those machines I used to toggle in the IPL boot codes for every morning.

    --
    MSBPodcast.com The opinions expressed here are my own. If you don't like 'em... Think up your own stuff.
  52. Re:Too bad vi sucks by vidarh · · Score: 1
    For me, the main thing is that commands apart from basic cursor movements (up, down, left right, start of line, end of line, page up/down, go to line, got to start/end) are exceptions. I only extremely rarely need to type more than a single command in between editing and cursor movements, and so having to switch modes back and forth is wasteful. In emacs, I can do all the basic cursor movements with a single hand movement apart from "go to line" which requires me to type in the line number, and I'm instantly ready to edit the text. So the mode does not offer me any advantage for the single group of commands I use often (the cursor movements), and adds the inconvenience of switching modes back and forth all the time to move around and edit text.

  53. Re:Too bad vi sucks by It'sYerMam · · Score: 1

    And so, to prevent mistakes, you have to check the status line before each command? If it were actually to happen, it would make editting slow and cumbersome, but it wouldn't/doesn't happen for precisely that reason. Most of the time, people remember what's going on, so they have no need for a status line. However, no one is likely to remember that all of the time (I'm sure even the most well-rehearsed vi user must make the occasional mistake) so mistakes are made.

    --
    im in ur .sig, writin ur memes.
  54. Ease of use AND productivity by Anonymous Coward · · Score: 0

    Let me point out some ideas I had over the years...

    First, let me tell I used something like vi about 15-25 years ago, on a CP/M system (or alike... memory fails me). I got somewhat proficient at the time, using macros and the like.

    Having said this:

    1) Ease of use is a complex thing: a spoon is as easy as it can be. Nevertheless, digging a hole is better done with a shovel (unless you're in prison, but I digress...).

    Likewise, Windows is not easy to use, despite all chants and mantras repeated by M$ brainless subjects. It's convincingly easy at the moment of purchase (which is its main mission) and somewhat easy to figure out (not entirely easy!) at the first steps.
    After getting the basics in quite a short time, then reality strucks -- the learning curve stops: there's nothing else to be learned, progress comes to a halt, until you insert more coins.

    Conversely, vi has a steep learning curve, but after the initial high climb one starts to run faster and plan entire complex editing sequences. It's indeed very pleasant in itself. Also, there are less limits to what one can do, admittedly at the price of knowing more commands.

    2) Productivity: high gains to be attained. Human machine interface, unfortunately, sucks terribly. People worry more about criticizing innovations than questioning the status quo.
    The mouse is a bright idea desperately needing improvement... it slows the operator by requiring the hand to leave the keyboard, by being specialized (in pointing -- humans use words for very good reason) and because of uncomfortable/clumsy mapping (between the screen and the table).
    The keyboard, this is old news, allows for a very low transfer rate (about 20 chars per second, the typical maximum).
    We need faster computer-brain communication and voice input won't do.
    vi lessens this problem by not requiring a mouse and compressing communications going through hands with a special protocol (those cryptic vi commands).

  55. the editor with the two letters... by butterberg · · Score: 1

    q!
  56. Re:Too bad vi sucks by TheRaven64 · · Score: 5, Interesting

    Modal editors are a bad idea, but the thing is, most people don't actually want an editor. Most of the time, they want an electronic typewriter. Entering text and editing text are two conceptually separate tasks, and this is why vi works as an exception to the rule 'modal user interfaces are bad.' Vi is really two separate applications; one for entering text, and one for editing text. Because you often want to do these in quick succession, it allows you to quickly switch between them.

    --
    I am TheRaven on Soylent News
  57. pining for vi by epine · · Score: 1


    I want to use an editor to edit my files, not an operating system like emacs.

    Nor do you need Firefox 2.0 with a 200MB process size to access your mailbox. Firefox has a generalized page rendering subsystem. It's a sunk cost, justified by one or two other uses. Emacs has a generalized scripting language, which ironically, is also the love object of a sufficiency cult. What's your point?

  58. Re:Too bad vi sucks by It'sYerMam · · Score: 1

    I'd say it's less irritating because it's rarer. However, if you accidentally engage overwrite, that is indeed a bitch.

    --
    im in ur .sig, writin ur memes.
  59. Re:Too bad vi sucks by Anonymous Coward · · Score: 0

    Mistakes? Psh, I never make any mistakes. Seriously, what are you thinking...:wq

  60. :s/vi/Latin by UnanimousCoward · · Score: 1

    Man, we must be getting old...

    vi is the basis/root of so much of what is out there. The obvious/popular one is the quick search mechanism in FF. I'll leave it as an exercise to the user to come up with programming examples. :-)

    That being said, I wonder if it's worth it for newbies to learn it...

    --
    Twelve-and-three-quarter inches. Unyielding. This wand belonged to Bellatrix Lestrange.
  61. Slashdot wishlist... by UnanimousCoward · · Score: 1

    I wish that /. would build in vi so I could use it to write this f'ing comment!

    --
    Twelve-and-three-quarter inches. Unyielding. This wand belonged to Bellatrix Lestrange.
  62. Old networks by Mostly+a+lurker · · Score: 2, Interesting
    '... meanwhile, I'm sitting at home in sort of World War II surplus housing at Berkeley with a modem and a terminal that can just barely get the cursor off the bottom line.'
    I feel his pain. I can remember, even in the early 1980's, travelling around Europe in a support role with an acoustic coupler (300 bps, sometimes less depending on line quality) to talk back to head office. Those who have never done it cannot imagine what 3270 eumulation across a line at this speed is like. Watching grass grow is exciting in comparison. It did have occasional advantages though: if you mess up the programming of your 3270 data streams, debugging by watching the data slowly paint on your screen is surprisingly useful!
  63. my story by gsn · · Score: 3, Interesting

    When I was young and foolish I used notepad.
    When I was forced to learn unix, I chose pico.
    When I learned more about the GPL and linux I chose nano (a whole three orders of magnitude better).
    When I figured out that most of the physics and astronomy I do involves coding, I tried Emacs.
    When I found machines that didn't have Emacs or a network connection, I was shocked and horrified
    (these are remarkably common in the astronomy world though you wish they weren't)
    With no other recourse, I forced myself to learn vi(m). The vimtutor and docs were my friend.
    Now I do not need them. I learned the keys. Then I forgot them. My fingers remember though...
    J'y suis, j'y reste.

    --
    Reality must take precedence over public relations, for nature cannot be fooled.
    1. Re:my story by pimpimpim · · Score: 1
      Ditto for me, except for the emacs part. I did use the now extinct 'programmers file editor' (pfe) for windows for a while, which was neat because it could handle the EOL for both unix and windows systems, which also helped me getting files for the apple (OS 8 or 9) uncorrupted by nasty junk characters. I quickly found out that nano and friends are unusable for serious editing. Someone mentioned that the fact that vi(m) doesn't react to mouse input is a bad thing, but I think it's a good thing. You can copy text with the mouse and click anywhere in your editor, and it will be pasted at the position of your cursor. It saves you a lot of trouble and time aiming your mouse at the exact destination of the text. I got used to it and like it a lot.

      The only disadvantage to vi(m) is that at some point you think you learned enough of it to work with it, and you keep working with it with the small list of commands you learned (say 10-20% of all vi(m) commands). I am now at this point, and every now and then realize that there are probably much faster ways to do it in vi(m). The vimtutor doesn't explain these, so it's hard to find them easily.

      --
      molmod.com - computing tips from a molecular modeling
  64. Study? by cameronm · · Score: 1

    I'm a vi user, and I will die a vi user Has anyone done a study comparing editors based on productivity? It would be interesting to see how many key presses are required for different tasks.

  65. portable gvim by Anonymous Coward · · Score: 0

    Well, it's not exactly vi, but portable gvim is useful nonetheless.

  66. speed issue sour grapes? by Anonymous Coward · · Score: 0

    Joy said that VI was designed for slower dialups and that Emacs was designed for fast channels. That is not true. The Emacs redisplay algorithm is independent of the editing commands and was/is adaptable to the speed of the communications line. In fact, I remember using a version of Emacs called FINE (Fine is not Emacs), developed at Carnegie-Mellon and written in the mid 70s. FINE worked very well at 1200 baud -- I wrote my dissertation on it.

    1. Re:speed issue sour grapes? by Anonymous Coward · · Score: 0

      In fact, I remember using a version of Emacs called FINE (Fine is not Emacs)

      Well, the fact you were not using emacs sort of says it right there, I would think.

  67. Re:Too bad vi sucks by Anonymous Coward · · Score: 0

    I'm against those GUI-interface things. You never know in which window your keystrokes are going to.

  68. Just remember... VI is power by chrysrobyn · · Score: 1

    My vote for VI.

    (For the less clued, voltage times current equals watts ... VI equals power ... nevermind ... it was funnier in college...)

    1. Re:Just remember... VI is power by WilliamSChips · · Score: 1

      It also means "with force" in Latin, as the ablative of the word vis meaning force or strength. vim is also a form of the same word but the accusative of a word like vis makes no sense out of context.

      --
      Please, for the good of Humanity, vote Obama.
  69. I S P F! by cavehobbit · · Score: 1

    I have used editors on many systems. vi, edlin (ugh), various windows editors starting with notepad to ultraedit, as well as proprietary editors, such as SAP's ABAP editor.

    But for the working programmer, who needs to both code and look at data, sometimes in hex, I have not found an editor that is better for writing code and also looking at data, than IBM's ISPF editor.

    So far as what kind of commands you use to perform editing functions, that is a matter of both preference and familiarity. You will tend to use and like what you know the best. It is like arguing what style and color of shirt is best. No one is right or wrong, each has their preference.

    I am talking about functionality for coders.

    The two best things about ISPF that I have not found in any other editor:

    1. Vertical, columnar, cut/copy/paste/insert across lines, without affecting characters to the left or right, which allows editing data that is in a fixed format, as in what may be transmitted via EDI or in record based data files. So you can copy/cut/paste/insert, by example, the 53rd character on each line, all at the same time in a column, without affecting any other character in the file, move that column of characters and paste it elsewhere in the same file or into another file.

    2. An intuitive hex display that displays hex values directly below each character, rather than opening a separate window that requires you to read two different displays at the same time and hope you are keeping the character counts in sync. This allows parsing data to find if there are non-printing characters causing errors in processing routines or violating agreed to formats between applications, which is still important in businesses and on non-mainframe platforms

    Kind of like this:
    466626626666276673
    B9E40F60C9B504893A

    Rather than this: | 52617468 65722074 68616E20 74686973
                                                        | 3A

    (hope that formats correctly, use a mono-space font like courier if not to see what I mean)

    There were some efforts to port ISPF to other platforms, (SPF-PC, SPF-SE, etc), but greed and 1950's thinking concerning copyright, marketing and intellectual property, basically doomed them, just as it doomed Apple, Detroit, Betamax and many other products.

    However, while looking up those editor names over on Dave's SPF Editor page at planetmvs, I just found an open source version that claims to work on Linux and Windows. The guy is calling it Hybrid Editor XE.

    I'm going to take a look, but seeing as it is from Japan, and having experience with code from Japan, I am not that hopeful. But I will keep an open mind. No offense intended to anyone from Japan, but I have seen code from three different Japanese corporations, and I was not impressed, to say the least. But seeing that my experience is with only three sources, is the reason WHY I am keeping an open mind.

    1. Re:I S P F! by Anonymous Coward · · Score: 0

      In vim you can do a hex dump using :xxd. Type :help hex in vim and you will get your fill of the hexly goodlyness.

    2. Re:I S P F! by gangien · · Score: 1

      don't remind me of z/OS, it makes me cry, remembering the horrors of it, growing up on windows and linux.

    3. Re:I S P F! by El_Oscuro · · Score: 1

      Try slickedit or kedit. Kedit emulates IBM xedit on Windows, and includes almost all of the kedit and ISPF functions.

      Slickedit runs on about any O/S and emulates everything including ISPF and VI.

      You can get either at http://www.programmers.com./

      Slickedit is more powerful but expensive. If you are using windows, kedit can be run from a floppy or pen drive, and is cheaper.

      --
      "Be grateful for what you have. You may never know when you may lose it."
    4. Re:I S P F! by larson9999 · · Score: 1

      I use The Hybrid Editor XE in windows, freedos, and linux. I have been using it for a few years now. It runs great on all of those platforms. In fact, I'm the person who posted it to wikipedia, planetmvs, and a few others. It was pretty much unadvertised but since it's the only opensource, multiplatform option I know of and it works very well, I decided to try to promoted it. I have yet to try it with mvs + hercules but I will very soon. The author is responsive and actively updates it. And his English is pretty good. But in case you can't get him to respond quick enough or for any other reason, you can post questions here if you like and I'll reply to the best of my ability.

    5. Re:I S P F! by larson9999 · · Score: 1

      By the way, you hit this nail on the head regarding the 2 reasons spf editors rule imho. Never seen a better way to view hex and the combination of line and edit commands is near optimal. I have 7 years of vi experience under my belt, too. I feel comfortable with both and think my comparison of the 2 is objective. Just ask a good vi guy to find all the occurances of 'Abc' in column 52 and see how long it takes him. Then, just for fun, ask him to change all of those occurances(in column 52 of course) to 'Xyz' :) And that's just the tip of the iceberg.

  70. vi rules on mobile devices by Werrismys · · Score: 1
    On something like Nokia 770 or Communicator or some S60 symbian device vi is infinitely better than emacs over SSH connections simply because you never need control or alt keys.

    Vi is perfectly usable over GPRS connection using a virtual keyboard + touchscreen. Typing in ctrl-sequences requires much more work.

    I used Emacs/Jed for 12 years but have now more and more found myself in vi(m).

    --
    'Once scientists, even the dim-witted social scientists, get muzzled, the Western Civilization is finished.' - oldhack
  71. csh by roamingapril · · Score: 1

    You know, the article doesn't mention Bill Joy's other "gift" to mankind: the C Shell.

    1. Re:csh by rubycodez · · Score: 1

      I took that gift back and exchanged it for a nice bash

  72. Slow Modems... by waterford0069 · · Score: 1

    Oddly enough, having a slow modem was one of the things that pushed me to learn vi.

    The "user friendly" editor that was promoted when I was in school was pico. Waiting for a full screen update was just plain painful at 2400bps.

  73. VI all the way! by DoctorPepper · · Score: 1

    I started using vi (on an HP-9000 K-Class server) back in early 1999. It was my first exposure to UNIX and vi. It was also the only editor on that system! I got into Linux and the BSD's because of that, and vi (mostly Vim) has been my favorite editor since. I use it on Windows, OSX, Unix and Linux. I am a programmer, and find the commands quite logical for programming.

    I ran Emacs once, just to see what it was like. I damn near panicked because I couldn't figure out how to exit the damn thing!

    --

    No matter where you go... there you are.
    1. Re:VI all the way! by WrecklessSandwich · · Score: 1

      I did the same exact thing. Figured I'd open it up and see what all the hype was about. Oh God what is this thing how do I get out of it.

  74. It's Turtles all the way down by The+Monster · · Score: 2, Funny

    "I edit that I edit".

    --

    [100% ISO 646 Compliant]
    SVM, ERGO MONSTRO.

  75. What? by Hamoohead · · Score: 1

    What's emacs? Is that one of those Apple computers?

    --
    "If your parents never had children, chances are you wonât either." -Dick Cavett
  76. vim? by spudnic · · Score: 1

    Has Bill Joy spoken about his feelings towards vim anywhere?

    --
    load "linux",8,1
  77. I call BS! On Bill Joy!?! by drfuchs · · Score: 4, Informative
    Sorry, Bill, but your memory has dropped a few bits. Even back in the 1970's, EMACS was very careful about doing only the absolute necessary screen updating, and worked quite well at 1200 baud. The code made all sorts of effort to take advantage of whatever capabilities your particular terminal had for moving text around on the screen by itself (such as inserting a character within a line without re-sending the whole line; ditto for inserting a new line without having to re-send the lines below it). See "The Display Processor" section of Stallman's "EMACS: The Extensible, Customizable Display Editor" 1981 paper for the ACM Conference on Text Processing http://www.gnu.org/software/emacs/emacs-paper.html / for more info on the optimizations involved.

    I remember once getting really fooled by this. I'd accidently created a file with two sequential copies of the text I thought I had. I searched for "foobar", which worked as expected; then I searched again. The screen didn't change, and the cursor didn't move. So, first I checked if the mainframe had crashed, but that wasn't it. It took many minutes of fooling around to realize what had happened: EMACS had figured out that the screen already looked right, so no need to do anything (except perhaps update a character or two on the status line). I wonder how many other people had similar experiences back in the day.

    So, sure EMACS may have been too big to run fast on Bill's machine, but bandwidth to the terminal had nothing to do with it.

  78. "vi" wasn't first, but it was free. by Animats · · Score: 3, Interesting

    Long before Bill Joy, UNIX had a good full-screen editor - the RAND editor. The RAND editor dated from the early 1970s. I used it at Ford Aerospace, and it was much nicer than "vi". But it wasn't free. You had to pay RAND for each copy.

    The RAND editor was much closer to "what you see is what you get" than "vi". It was a full-screen editor with all the commands on function keys. All the keys like "insert", "delete", etc. did what you'd expect. Labels were provided to show what each function key did. So it was far more user-friendly than "vi".

    The RAND editor was modestly portable from terminal to terminal. It worked best on HP terminals of the period, and was table driven so that it could support different devices. But you had to change the tables in C and rebuild to add support for a new device.

    The RAND editor had fewer "mode" issues than "vi". What you typed went in at the cursor position. For a few special commands, like "find", a special line at the bottom of the screen was used. But you could always see visually what was going on. Much better look and feel than "vi".

    Those of us who had both available used the RAND editor.

    Some of what Joy is credited for in the early days of UNIX reflects the fact that he worked for a tax-funded organization working under a contract that allowed them to give software away.

  79. Non UNIX keyboard layouts suck. by Anonymous Coward · · Score: 0

    Well, on the keyboard for which vi was designed, escape was where tab is now, right above control, which is more convenient certainly. Even on the standard UNIX layout, escape is where the tilde is now, beside the 1, which is better, but probably not as nice as where tab is. It's easy to remap caps lock to control, but it's trickier to suitably move escape to the tilde, because you still need the tilde for home directories, etc. You can't put it where it belongs easily (above backspace) without fucking up the layout. Backspace should be where the pipe is, with the pipe and tilde directly above on the top row.

  80. Re:I use both Vi (vim) and Emacs. Brief is better by brocktune · · Score: 3, Interesting

    Up until recently I worked at Borland. My whole team was informed by teleconference that our work was offshored. Anyway, I used Brief in the 90s at other jobs, both before and after Borland bought it. So naturally, I assumed it would be easy to get a copy of Brief to do my development, given that my employer owns the program. Sorry, the help desk doesn't know anything about Brief and can't help you. So, I stared googling for a bootleg copy, from my Borland workstation, of Borland software.

    Any wonder Borland is about to go bankrupt?

  81. a funny recollection of the "olde days" of 300bps by porky_pig_jr · · Score: 1

    Many years ago, my boss finally got a terminal and 300bps modem to hook up to the mainframe runing VM/CMS. So we're talking after the weekend. He said: it's painfully slow to edit anything, but I've found a nice solution: I just drink beer, that slows me down roughly to 300 bps, so everything is just fine. The only drawback: he didn't get reimbursed for beer.

  82. What are you talking about?? by Anonymous Coward · · Score: 0

    "The people doing Emacs were sitting in labs at MIT with what were essentially fibre-channel links to the host, in contemporary terms."

    What in the world are you talking about? Either somebody fed you a bunch of hooey, or you are a vi zealot. I worked with Emacs on 2400 baud modems; screen updates occurred asynchronously to commands executed (so if a command implied that the previous repainting was now irrelevant, it would start the next series of screen updates). And it also took advantage of VT terminal primitves for shifting blocks of text. It was a very livable editor, when you were doing work via dialup!

    Emacs' programmibility, customizability, IDEs for programming languages (though there does not appear to ones for Java, JavaScript or HTML/JSP markup, but maybe somebody else can enlighten me here...) makes it the king. Vi, as helpful as it was on very old boxes, is now irrelevant. They started out with some poor design choices, and all the fixing up is not going to save it...

  83. Web has its own problems. by SanityInAnarchy · · Score: 2, Insightful

    You make the point well enough about all the security. That means it's a lot saner to run your web configuration through Apache or something. It also means you'll have to deal with issues like a username/password, and you'll probably want to proxy the whole thing through SSH or something (or you'll need an SSL-enabled Apache)...

    Unless you're doing something AJAX-y, changes do require you to fill out a form and hit "submit", and wait for a response. I don't really see how this is different than editing a config file and pinging the app. But if you're going to do something AJAX-y, we're getting pretty heavy into the realm of external dependencies -- this is no longer something you want embedded into your app, the way CUPS configuration is.

    And I don't really want to have to install Apache, mod_ssl, and some AJAX libs just to configure, say, an IRC server, or a DNS server.

    Besides: It doesn't have to require pinging the app. I seem to remember exim checking the timestamp on its config file with every mail received, so if you made a change, you could expect it to take effect instantly. Another way to do this would be inotify -- I believe vim writes all your changes to a temporary file, then 'rename's the temporary file on top of the original one. Thus, as soon as you see a new file there, you can probably parse it -- worst case, if you don't trust the text editor, you can wait a second or two for the inotify events to settle.

    Now, there are advantages -- you can actually display a finite set of options, you can show the user what their system can actually handle, and there aren't going to be any syntax errors. But none of these have ever really been a problem for me -- I can crack open just about any config file, read the comments, and make a few changes, and be confident that it'll work.

    --
    Don't thank God, thank a doctor!
  84. Modality, and special keys by PhotoGuy · · Score: 3, Informative
    One thing Joy didn't mention, but I think is probably safe to imply, and one of the reasons that vi is still my favorite editor: because of its modes, you don't have to rely upon special keys (arrows, function keys, etc.), because the navigation is done with the standard alphanumeric keys (which the typewriter keyboard was designed for, not for taking the hands off the home position to reach for arrow keys and such).

    One can edit in VI very efficiently without moving the keys from the home position, and doing unnatural stretches for odd keys.

    --
    Love many, trust a few, do harm to none.
  85. PDP-10 Emacs by KC1P · · Score: 1
    Wait, why bust on PDP-10 EMACS? I used to use it with my VT52 and Vadic 1200-baud modem as a turist on AI and OZ and I have to say, the screen painting was a beautiful thing, it was very good at optimizing output and dropping everything to process type-ahead before finishing the screen. That GNU behemoth doesn't have a lot to do with what was on the PDP-10s. Yes I'm sure the TVs (I never saw one) made it possible to get lazy, but laziness was not in keeping with PDP-10 culture. People who bend over backwards to save microseconds in their code are certainly going to go to a little trouble to save many seconds in screen painting.

    Even DEC did try. EDT got pretty good with screen painting (it was certainly clever about knowing which parameters can be defaulted in VTxxx control sequences), and it had an option to use only the top N lines of the screen for really slow connections (it was painful at 300 baud but still good enough). Also, CHANGE mode in V1 of EDT (still available in later EDTs, EDT is really four editors in one) has a similar reek to vi so I would have thought the Weenix Unies would like it. KED (the mini-EDT on that new-fangled RT-11 thing) was nowhere near as flexible as EDT (and implements only CHANGE mode, and only the V2+ flavor) but it still made a good effort on slow terminals.

    As for vi, I don't get it. Yes I use it on a daily basis too but I despise it, it's inconsistent and line-oriented and case-sensitive and all-around annoying. The only good thing I can see about it is that every single Weenix system has it, so wherever you go, you can always find an editor your fingers know how to use.

  86. another way to re-map the Caps Lock Key by Anonymous Coward · · Score: 0

    I remember an HP-UX workstation I used to work on that had the escape character right above the Caps-Lock key. Since vi was my main editor I often hit the Caps-Lock key rather than escape. Instead of a software key re-map I made a minor hardware modification and pulled the Caps-Lock key off the keyboard. It made it much easier to find the escape key and also eliminated the times when I would mistakenly go into ALL CAPS MODE.

  87. Re:Too bad vi sucks by darkwhite · · Score: 1

    Telling a modern computer user to distinguish between text editors and electronic typewriters is like telling a cell phone user to distinguish between a rotary dial and a keypad. Anachronistic in the extreme.

    There is no reason why these two tasks should be logically separate from each other.

    --

    [an error occurred while processing this directive]
  88. Re:Too bad vi sucks by ucblockhead · · Score: 1

    For writing books, yes. But computer programs aren't text. When you "write" a computer program, you typically write in batches of 10-50 lines at a go, then go back over, making small edit after small edit. Programming usually involves far more editing than straight-out typing.

    This is what vi is designed for and what modal editing concepts are great for.

    --
    The cake is a pie
  89. Re:Too bad vi sucks by scotch · · Score: 1
    Sure, that's the common argument. But really, once you've used vi for a while, you don't really make the mode-state errors anymore. Maybe less that 0.01% of all errors you make will be due to you not knowing what mode you are in. So in effect, that argument against modal errors is pretty stupid in the long term. Most arguments in the arena (editor / interface flame wars) are similar - they assume that the user is perpetually a beginner, which is not true.

    You might as well argue that a bicycle is lousy invention because you will fall over all the time, when people who ride bicycles rarely, if ever, fall over.

    There are countless human endeavors where you need to be consciously or subconsciously aware of some state you are in, and adapt your behavior accordingly. Many of these endeavors reward mistakes with death rather than a few junk characters in your terminal. In short, people are quite adept at handling the modal nature of vi, and people who choose to do so can be quite productive.

    --
    XML causes global warming.
  90. Re:Too bad vi sucks by scotch · · Score: 1
    For people who use VI as their primary editor, the occurrence of mode-state errors is so low as to be a non issue. This discussion is rediculous:wq

    :)

    --
    XML causes global warming.
  91. Vi and emac, bah! Edlin is the choice! by Anonymous Coward · · Score: 0

    Yeah, that's right, vi and emac can't hold a candle to the worlds greatest editor: Edlin! You could do anything easily with Edlin! No fancy pansy key presses to memorize no itsy bitsy weakling commands to deal with. Edlin was a real coders editor. :-)

  92. Why use a real editor? by crucini · · Score: 1
    Others are pointing out that vi works over modems, is available on all servers, etc. But if that were the only motivator, I could use vi in those situations and something more "modern" for development.

    I've used Eclipse and Visual Studio. In both cases I tried to get over the initial revulsion and find out what's attractive about these tools. In both cases I went back to vi in a month or two.

    I find that GUIs break my concentration. Vi lets me focus on the code - the task of communicating with the machine is in muscle memory.
    Most people today, including most computer people, don't seem to share your belief that it's evil to place your hand on the mouse...

    I've worked with programmers of varying abilities over the years. All the really good ones use vi or emacs. Most programmers shouldn't be programmers. They lack the abstract thinking needed to create substantial value in software; they are merely clerks copying data from A to B.

    Don't expect good programmers to follow the lead of bad programmers, let alone "most computer people". Would you expect automotive engineers to stop using ProE because car mechanics don't use it?
    1. Re:Why use a real editor? by F452 · · Score: 1

      I've worked with programmers of varying abilities over the years. All the really good ones use vi or emacs.

      That's a pretty broad and sweeping generalization. How would you rate John Carmack? I'm pretty sure he uses an IDE for development, and I think I read recently where he even touted the benefits of "code sense" kinds of interfaces -- the kind where you type the dot and you get a nice popup with your method choices. There's a lot to be said for being comfortable at the raw text file level, but I think you're missing out on a lot of productivity enhancers if you're going to write off all modern tools.

    2. Re:Why use a real editor? by NickFortune · · Score: 1
      How would you rate John Carmack? I'm pretty sure he uses an IDE for development,
      First of all, I think it's important to understand that Emacs pretty much is an IDE in its own right, and I say this as a Vi user. That's why Emacs users say "Emacs is my operating system, and Linux its device driver." Vi users don't have so much built into the editor, but as Larry Wall once pointed out, the entire Unix command line toolset is an IDE in its own right, and you can access it all from inside Vi. So that's point number one: just because someone isn't using a GUI based editor, that doesn't mean they're not using an IDE.

      Secondly, I think programmers that cut their teeth on DOS/Windows have a different perspective on things. The basic windows environment is (from a Linux users viewpoint, admittedly) incredibly hostile to performing any sort of programming action. Even the .NET SDKs are lacking in basic command line tools, and in any event the .NET languages seem broken by design in order to make Visual Studio look better value for money. So that the second point: Windows programmers who try the command line have such an awful experience that they acquire a deep seated horror of coding without a mouse and desktop. Sadly, this all to often leads them to assume that anyone still using the command line has vestigial gills and needs to spawn in water in order to reproduce, and that's where the trouble starts... ;)

      There's a lot to be said for being comfortable at the raw text file level, but I think you're missing out on a lot of productivity enhancers if you're going to write off all modern tools.
      Oh hell, yes! I wouldn't do without the Gimp, for instance, and while I've occasionally found it convenient to draw UML diagrams using ASCII Art, it's far more sensible to use a tool like visio or inkscape.
      --
      Don't let THEM immanentize the Eschaton!
  93. Re:Too bad vi sucks by lysdexia · · Score: 0

    I thought Jef Raskin's suggestion of leveraging the color capabilities of modern systems by changing or inverting colors dependent on mode was a pretty good answer to that argument.

    Tomato/Tomahto. :-)

  94. Re:Too bad vi sucks by mad.frog · · Score: 1

    Yes, actually. Disabling overtype mode (if possible) is one of the first things I do in any new editor.

  95. plain vi - mode and backspace by crucini · · Score: 1

    The lack of mode notification sucks.

    The backspace problem is probably with your terminal config. You can fix it with
    stty. Once you get the formula, put it in your .profile or something.

    Something like: stty erase ^Vbackspace.

    Alternatively, vi doesn't understand your terminal type. echo $TERM. Try "export TERM=vt100" or something.

  96. Re:Too bad vi sucks by grumbel · · Score: 1

    ### Vi is really two separate applications; one for entering text, and one for editing text.

    And that is the thing I never understood about Vi. Sure, from a historical context it makes sense, since ed didn't had a full-screen interface one had to separate entering of text and editing and since vi is kind of build on top of ed, it kept it that way. The limitation to write via a 300 baud modem didn't really allow anything else either of course. But from an interface design point of view today, where we no longer are limited to 300 baud modems, it just doesn't make much sense at all. When I type text there never is a clear distinction between inputing it and editing it. In the strict sense inputing means straight forward typing, no backspace, no cursor movement no nothing, just text from left to right, all those other stuff is reserved for the edit-mode. That however is totally not how I or anybody I know works. I constantly jump around, insert a bit here, a bit there, go a few words forward or backwards, mark and delete a little here and there. Switching modes between each and every of these operations, which just take a few second or less, is totally annoying, and the Esc key not being placed in an exactly ergonomic position doesn't really help much either.

    In short I simply don't get how to use Vi the Right Way[tm], since it works completly different then I work and think. I have never meet anybody who either could show or explain to me how to actually use Vi, since those that used Vi often just did it either by force, since nothing else is around on some Unixes or since they simply gotten used to it over the years and haven't bothered to look at the alternatives, but so far I have meet nobody who picked Vi because of how great its user interface is. And looking at Vim and all those other later Vi clones which constantly blur the line and allow you more complex movement even in edit mode I just have some doubt that there actually is any benefit.

    One one last word to the chaining of commands that Vi can do: Begin able to delete the next 5 lines, sentences, paragraphs or whatever via a simple two letter command sounds nifty in theory, but I have yet to meet any real world example where that actually would be useful, I mean how am I supposed to know that it are exactly five lines and not six, or ten and not eleven? Am I supposed to count them by hand on the screen? How exactly is that faster then just jumping the cursor down to where I want it to actually delete and start deleting? Instead of blindly typing a delete command and hopping that I haven't miss counted the number of lines, sentences or whatever.

    Maybe its time for somebody to just place a camera above his shoulder and show some of the mighty power of Vi in real life and upload the result to Youtube, since I really have a very hard time to 'get' Vi and I have actually used that thing for a few years for all my config file editing, but it really didn't help in understanding it at all.

  97. My Simple, Humble... by torrentami · · Score: 1

    reason for liking vi... I was a sys admin 12 or so years ago working in sun and solaris environments and used vi exclusively. As time went on I found myself navigating around in linux relatively infrequently as I worked in various different job capacities. But one thing that always amazed me was whenever I need to edit a file in unix, I could always rely on vi and the 2 or 3 commands I needed to know to function effectively. I could get anything done just by using "/", "x", "a" and "wq!".

  98. Re:Too bad vi sucks by grumbel · · Score: 2, Insightful

    ### Insert mode. Overtype mode. That's modal. I suppose you're against that.

    Actually it is bad, so bad that Microsoft and a bunch of other keyboard manufactures moved the 'Insert' key which switches between those modes and made it only available via weird Fn-Key combinations. For a lot of people it causes a lot more trouble then worth it and truth to be told, for writing text I have never actually used the mode myself, the only reason when I use it is if I program and have to change some stuff where overwriting is faster then hitting delete or using regex (say multiple lines below each other where a '+' has to be changed to a '-' in only a single column).

  99. In soviet Russia... by Anonymous Coward · · Score: 0

    vi edits YOU!!!

  100. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  101. Re:Too bad vi sucks by WilliamSChips · · Score: 1

    That is a really good idea. I plan on doing that if I create an editor.

    --
    Please, for the good of Humanity, vote Obama.
  102. line wrapping by r00t · · Score: 1

    No kidding. Arrrgh!

    Why is this ever on by default? Unless I specifically set the desired width, the editor has no way of knowing what is appropriate.

    FYI, joe version 3 comes with broken config files that enable this, despite joe having excellent handling of side scrolling for long lines. It's fixable. Go into /etc/joe/*, find ever occurance of -wordwrap, and add a space in front of the line.

  103. Re:pico -w by hawaiian717 · · Score: 2, Informative

    alias nano="nano -w" is found in most of my .bashrc files. You can also add set nowrap to /etc/nanorc or ~/.nanorc. I just noticed that option today.

    --
    End of Line.
  104. 9600? 1200? Stimulate it now. :) by antdude · · Score: 1

    "... 9600 baud is faster than you can read. 1200 baud is way slower. So the editor was optimized so that you could edit and feel productive when it was painting slower than you could think. Now that computers are so much faster than you can think, nobody understands this anymore..."

    Well, who said you had to use faster speeds today? Just use SyncTERM and tell it you want a slower connection speed like 1200 baud. :) It also supports old school BBS' too.

    --
    Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  105. positive vi experiences by petrus4 · · Score: 2

    I've trolled about vi myself a couple of times in the past, but installing FreeBSD a few weeks ago finally convinced me to take the time to pick up at least a very rudimentary degree of mobility in it.

    If nothing else, the one thing which it gave me which I'm actually grateful for is that it disrupted my old habits/patterns (if only temporarily) and forced me to have to think. Vi is a thoroughly alien interface compared to virtually anything else I've used, and although with the tutorial (which is surprisingly good) it's discoverable, I don't feel it would have been without it.

    I'm still undecided as to whether or not I feel the interface has actual technical merit, or whether it's simply something vestigial that certain people are so fond of for whatever reason that they've been unable to force themselves to throw it away...although if it's true as Mr Joy says that the editor was originally designed for, and works in, extremely low-bandwidth environments, then that element at least is something which I feel is very much worth keeping.

    One thing which I find extremely distressing these days is that many people seem to feel that the conservatism which motivated the philosophy behind a lot of early UNIX software is an anachronistic attitude and is no longer warranted, given the glut of cpu cycles and other system resources we now find ourselves in. I would urge such people to remember that even under normal circumstances, in some situations (such as embedded/small devices) such is not always the case, and that not only that, were a sufficiently large scale disaster of some kind to happen, it could universally cease to be the case also.

    Conservatism is a good thing to hold onto. Certainly, when the sun is shining and everything is fine, you can feel lulled into believing that not only do you not need it, but that you'll never need it again. If the last few years have been any indication however, some parts of the world are going to continue to face severe environmental catastrophes going forward...and the conservatism of old school UNIX may be one of the only things we know about that could keep computer infrastructure going in such places under such conditions. It is very strange how the past can often end up being the present and the future, especially when we do not expect it.

    1. Re:positive vi experiences by voidy · · Score: 0

      vi's interface may certainly be unintuitive, and for people who aren't programming or something of that ilk, it doesn't make sense to use it. However, for a programmer, vi can make your life incredibly easy, and I don't agree that it's outmoded, new features like omnicompletion, and relatively mature ones like parentheses matching and syntax highlighting are all things that to a unix hacker of eld, would have seemed as resource hungry and frivolous as all the new desktop eye-candy around nowadays. But they're things that noone bats an eyelid at today (well, the omnicompletion kinda made me bat a few though:)

      The fact is, that it's a dream come true for someone who might want to quickly and easily search and replace a certain function appearing in certain contexts with other instances of the same string all about the place in different contexts. This may be something that is more to do with regexes, but this is also something that seems like an incredibly archaic pita to learn, but they actually make your like so easy once you can harness the power. (anyway that kind of example might be better with something like sed or awk if you have loads of source files to do, but yeah, it's all part of the dark side of the force). With vim, you start to find that so many things can be with much fewer keypresses, hence, for certain people, vi is much much easier than the intuitive editors which make even slightly complex jobs an absolute nightmare

      If you have complicated needs, then you may need a complicated beast like vi/m, if not, then I'd say you're better off without, and I don't think i'm being elitist in saying that. I don't recommend vi to anyone who isn't interested. I'm not a vi zealot, i'm a vi disciple :)

      Btw, i'm no guru, i've never used ed, but I appreciate the historical reasons for the way that vi is as well as appreciating the fact that it can bring so much power to my fingertips.

      --
      I do not fear computers. I fear the lack of them. Isaac Asimov
    2. Re:positive vi experiences by El_Oscuro · · Score: 1

      Way back in 92, when I started with Unix from a DOS environment, I couldn't believe how user hostile it was, especially vi. I went to such lengths to avoid it, I ftped files to the PC so I could edit them there. Equally fustrating was the current directory wasn't in your path, and you couldn't even change the system time without rebooting the server.

      Anyway, I learned how to use vi and eventually became proficient in it. Now it is installed on all of my Windows servers, and I use it there too. Quite a few of our Windows programmers prefer vi. One even has slickedit configured to emulate it.

      While most of our lines to our remote servers are pretty good, we have some that would make a 9.6 look good. Small and fast is always good, no matter how many CPU cycles you have. Have you ever downloaded any of Steve Gibsons utilities at grc.com? 20k for a Windows GUI program, even in this day.

      As far as the other anoyances I originally had in Unix:

      • In Windows, one of our system admins accidently clicked on the desktop clock and changed the "AM" to "PM" on our central server. Under NT 4.0 this change took effect immediately, which no confirmation. We didn't know what happened until servers started going down for backups in the middle of the day.
      • Having the current directory in the path allows someone to create a "notepad.bat" file which might be tripped over by the admin and run code of the attackers choice. Of course there are so many other ways to bust a Windows box, this probably is not used much.

      The old-school ways of doing things has much to recommend it. One of the things 9/11 taught me was everything we take for granted (power, water, food), we might not have in the future.

      --
      "Be grateful for what you have. You may never know when you may lose it."
  106. Huh? What about Ed Gould and others? by karl.auerbach · · Score: 1

    Back at the Unix Users Group meeting in Santa Barbara in around 197?? Ed Gould described how he was working on a full-screen version of ed.

    Let's give credit where credit is due - to the *entire* group of folks at Berkeley.

  107. I heard by GregNorc · · Score: 1

    People who use vi have names like Lenny and people who use Emacs have names like Carl.

  108. ViEmu by rikkus-x · · Score: 1

    I now write code in VS.NET and use ViEmu, which makes the text editor quite vi-like (actually vim-like).

    Heartily recommended.

  109. I had a dream ... by SamLowry42 · · Score: 1

    I once had a dream. All I remember from it was that it ended with ":wq".

  110. 300 baud by vga_init · · Score: 1

    Bill Joy makes this really off the wall comment about browsing the net on a satellite phone at 2400 baud. First of all, why pick such an obscure way to connect to the Internet? Secondly, 2400 baud is way off from 300. He makes it sounds like that's the only way to get such a slow connection speed.

    As far as the Internet goes, you could always simulate this by deliberately slowing down your connection. It's easier to slow down fast connections than it is to speed up slow ones. :)

    Internet aside, though, just get a serial terminal and set that up. As far as I know most of them have adjustable baud rates (I have a portable 286 running DOS, and I use kermit to emulate a vt100--baud rate can be whatever). That kind of hardware is not difficult to find, and plus you can always emulate it and see what 300 baud is really like.

    Maybe I'm crazy, but low baud rates are kind of fun. It really makes you value your time more when you have to sit and watch the text being printed out on the screen. You start to think more about what you're doing and work more efficiently.

  111. Shift-ZZ, baby! by tinrobot · · Score: 1

    In the early 80's, I used to do tech support on some of the earliest commercial Unix systems. Vi was just about all you could use to edit system files when dialing in to a customer's system at 1200-2400 baud.

    I used it so much during that time, my neurons became permanently wired to the command set. I still find myself using vi to edit system files, mostly because it's what I've always done... and yes, I'm really fast with it.

  112. Screen update by Anonymous Coward · · Score: 0

    Funny that he should mention screen updates. GNU Emacs actually has a very good screen update algorithm. It is non-blocking (one can type commands while it is updating, e.g,, scroll multiple pages without waiting each page to be displayed completely) and generally makes good use of terminal control sequences. Quite usable over 1200 bps.

  113. Re:Too bad vi sucks by ratboy666 · · Score: 1

    Study TECO first. Look at VI again.

    Insert is then no longer a "mode". It is simply a command, terminated by ESC. In TECO, all commands are terminated by ESC (except for a limited number of "immediate" keys). In VI, i is terminated by ESC.

    And, with this definition, VI is no longer modal. Also, some commands now make sense. To generate the
    banner box: 80i*ESC makes sense: it is, after all, a command.

    --
    Just another "Cubible(sic) Joe" 2 17 3061
  114. Re:Too bad vi sucks by Millenniumman · · Score: 1

    I have no problem with modal editors like vim, although in Linux I mainly use emacs because I know the keystrokes better.

    That said, overtype mode is absolutely the worst and most destructive feature I have ever encountered in a program. It's also almost useless.

    --
    Stupidity is like nuclear power, it can be used for good or evil. And you don't want to get any on you.
  115. Vi for non-english by TeatimeofSoul · · Score: 1

    I will take this opportunity to ask, concerning the localization of vi to other languages than english; is there some standard remapping you can use so common functions don't end up in difficult places. For instance, when looking through the basic help, you are supposed to press C-] to enter topics. On my keyboard this means pressing ctrl+alt gr+9. If I want to keep my right hand in its home position, I then need to press alt gr with my thumb upside-down, and I'm already a bit sore.

    I guess basic commands are given simple to reach keystrokes, but localization messes this up. How do other non-english people deal with this?

  116. I agree with this comment... by syukton · · Score: 1

    ...and I work at Microsoft.

    --
    Reinvent the wheel only at either a lower cost, greater effectiveness, or your own personal enrichment and satisfaction.
  117. Modality is *so* 70s. by fm6 · · Score: 1
    Vi is the ultimate editor, for one main reason. It's a modal editor, so commands can be mnemonic.

    EMACS is a modal editor too. Both EMACS and Vi were written to run on character terminals. Any interactive editor designed for that environment has to be modal, because that's the only way to separate commands from input. EMACS, being designed for powerful terminals with very fast connections, can make text entry the primary mode and commands brief escapes from text entry mode. Vi, which was designed for cheap terminals connected to 30 characters-per-second connections (and was even used on 11 CPS connections), did things exactly the opposite.

    And a note to the usual vi-versus-EMACS flamers: which one you use in a modern GUI environment is matter of what you're used to. They're both equally out of date: good GUI programs do not have modes. And I'm not speaking theoretically: I've used vi (or nowadays, vim) almost every working day for 27 years, and I still screw up cut-and-pastes occasionally because I forget which mode I left the vim window in.

    So if I think modes are dumb, why don't I switch to a modeless editor? Well, I have jedit, and I keep meaning to try to make it my working editor. But there are always bigger priorities than retooling my brain's text editor zones. I might feel differently if Bram Moolenar and the other vimmers hadn't done such a good job of adapting vi to the GUI world. Speaking of which, no vim user should forget to express their gratitude.

  118. Re:Too bad vi sucks by Anonymous Coward · · Score: 1, Informative

    In the strict sense inputing means straight forward typing, no backspace, no cursor movement no nothing, just text from left to right, all those other stuff is reserved for the edit-mode. That however is totally not how I or anybody I know works. I constantly jump around, insert a bit here, a bit there, go a few words forward or backwards, mark and delete a little here and there. Switching modes between each and every of these operations, which just take a few second or less, is totally annoying

    It's all in how your mind works. I have been using vi for about 23 years now, and I don't even think about it. I'm very happy and productive in vi.

    Personally, I'd rather bang on the Esc key with a pinky once, and then be in edit mode, rather than having to mash the control key while typing Ctrl+X Ctrl+C or whatever. You don't have to agree with me; we can both run what we prefer, no big deal.

    In short I simply don't get how to use Vi the Right Way[tm], since it works completly different then I work and think.

    If true, then you shouldn't use vi. And that's okay.

    I have never meet anybody who either could show or explain to me how to actually use Vi

    I think of vi as the text editor equivalent of a set of Lego blocks. You have a few small commands, which "snap" together into bigger commands.

    w moves forward a word.
    dw deletes forward a word.
    fi skips the cursor to the next 'i' character in a line.
    dfi deletes forward to the next 'i' character in a line.

    I totally love being able, in one step, to delete from the cursor to the next 'i' character. And what if there were two 'i' characters in the middle of the text I want to delete, before the final 'i' character I actually want to delete? Well, you can count them and use d3fi, or you could use dfi and then bang on the '.' key twice (the '.' repeats the last command).

    There are basics: move forward word, move to end of line, etc.

    There are shortcuts: move to end of line is $, so delete to end of line is d$, but since that's common you can just hit D.

    There are advanced shortcuts.

    And there is ex mode (available with the ':' key) if you want it too.

    Begin able to delete the next 5 lines, sentences, paragraphs or whatever via a simple two letter command sounds nifty in theory, but I have yet to meet any real world example where that actually would be useful, I mean how am I supposed to know that it are exactly five lines and not six, or ten and not eleven? Am I supposed to count them by hand on the screen?

    Well, if you want to. But usually I use the mark command: mb assigns mark 'b' to the current position. Then you can navigate to the end, and:

    'b would return to the marked position called 'b'
    d'b deletes back to the marked position called 'b'

    Sometimes I mark beginning with mb, then mark end with me, then use the ex command: :'b,'ed<Enter>

    If I can just look and see that I have, say, 3 lines to delete, I'll just bang out 3dd. But for longer ones, I use the marks.

    Maybe its time for somebody to just place a camera above his shoulder and show some of the mighty power of Vi in real life and upload the result to Youtube,

    Huh. Interesting idea. Maybe I'll do that sometime.

    I'm fast with vi, and I doubt I'll ever be as fast in any other editor. I can chop out a block of code, move around, paste it in, shift it over, etc etc all without thinking about what I'm doing. My fingers understand vi, I don't think "3dd", I just think about the three lines going away and they do. It's wonderful. But I don't try to claim everyone would agree with me.

  119. vi state machine by tedgyz · · Score: 1

    I had the displeasure of implementing vi editing in a Motif UI textline. It was like turning a snake inside out. The code is all state-driven with the call stack being the maintainer of state. Now try to imagine taking that logic and implementing in an event-driven UI. All that call-stack state had to be encapsulated. :-(

    --
    "No matter where you go, there you are." -- Buckaroo Banzai
    1. Re:vi state machine by cnettel · · Score: 1

      Hey, setjmp/longjmp and/or OS/library support for fibers could solve that! (and/or a separate thread...)

  120. Re: function / cursor keys by Anonymous Coward · · Score: 0

    No guarantees that function / cursor keys will be present on an ASCII terminal. If the application is written to be dependent upon such keys, then the application will be unusable on many terminals/emulations. An ASCII terminal will generally be able to generate all* ASCII characters - but no guarantees beyond that.

    *some aren't able to generate that ASCII null character and/or the ASCII delete character

  121. vi causes brain damage by liftphreaker · · Score: 1

    *Any* editor is better than the brain damaged vi. Even MS-DOS's "edit", pico, nano, gedit, and most other current editors. The only things worse than vi are ex, ed and the dreaded edlin. Emacs rules.

  122. Telnet??!? by sczimme · · Score: 1


    What are you supposed to do when you telnet into a machine and need to edit a file?

    You should poke yourself in the eye with a sharp stick for using telnet instead of ssh.

    --
    I want to drag this out as long as possible. Bring me my protractor.
  123. A man after my own heart by whitroth · · Score: 1

    Someone who *isn't* on the latest, hottest machine that either their company, their college, or their parents with lots of disposible income would buy them.

    We've seen WAAAAYYYY too much of the emacs-environment mindset in the industry, from #1, Bill the Gates, on down to the idiot who I tried to contact, a few years ago, who had four or five 1.5M-2M jpegs on *one* page on his Website. Far too few folks in management ever look at someone on dialup, or on the two or three generations old computers that most home users have. And if you doubt that, slashdotters, try asking your *NON* computer friends what they, or their kids, are running on, or what they have in city public schools, or....

                    mark

  124. Tog's results don't apply in all cases. by ChaosDiscord · · Score: 1

    Tog's research is only part of the answer. When he's not sharing his insane conspiracy theories about traffic engineers, Tog tends to ignore parts of the problem that are inconvienent to his theories. In particular he tends to ignore expert users. If you're doing the same thing over and over again it ceases to be aboue spending "two seconds to decide upon which special-function key to press," it's muscle memory. Ever watch someone do bulk data entry on a mouse-less terminal? Once you learn to tab between fields it's extremely efficient. No moving your hands to mouse, locating the mouse pointer, and clicking on the next field. Type field, tab, type field, tab, type field, enter to submit. Conversely, whenever I've seen people use Tog's precious mouse in such interfaces I'm subjected to lots and lots of waiting while they type in a field, grab the mouse, locate the mouse pointer, click the next field, and move back to the keyboard.

    The same goes for Ctrl+S. For Joe Random User who doesn't use a given piece of software very often, yes, shortcuts are indeed slower than mouse and menu. But for someware you use heavily and commands you use frequently it's faster. It's faster because Tog's core claim: that you're spending two seconds remembering what shortcut to use, is nonsense. You start thinking "I was to save" and before the thought is fully formed you've mashed Ctrl+S and gone on to the next task. Even with Tog's pet-UI designs like sticking menus at the top of the screen you've got to move to the mouse, slam it to the top, more carefully adjust it left and right to the menu you need, and carefully drag down to the specific item you want. Assuming you commit such a finicky procedure to muscle memory it's not possible to make it as fast.

    If you've got good software and spend a lot of time using it, it should eventually become second nature; you move beyond thinking about which command you want for 90% of what you do.

    If you can find them, watch someone really skilled at data entry whiz through form submission without a mouse. Check out a programmer really in touch with his editor of choice. I knew a man who knew Visual Studio's interface so well that he flew through it faster than I could have decided which menu I wanted.

  125. I left my nitroglycerine-fueled flamethrower.... by abb3w · · Score: 1

    http://www.asktog.com/TOI/toi06KeyboardVMouse1.htm l

    Another excerpt:

    It takes two seconds to decide upon which special-function key to press. Deciding among abstract symbols is a high-level cognitive function. Not only is this decision not boring, the user actually experiences amnesia! Real amnesia! The time-slice spent making the decision simply ceases to exist.

    The key error of this study: assuming such comparison remains constant; there's a learning curve. As others noted, this was an article written in 1989, back when the mouse was a relative novelty, and computers were a novelty to almost everyone. The decision of which keys to press takes less and less time the more you use a particular function, much reminiscent of computer cache memory. The neural network of the human brain eventually learns that "paste" means press "<control-v>", and requires no more thought than pressing "p-r-e-s-s-i-n-g" does to type the word "pressing"... and less time. On the other hand, going up to the top menu to select "Edit -> Paste" also requires time... to shift cognitive attention, move the mouse into position, move it again, and shift cognitive attention back to the original focus. The minimum time for an experienced mouse user is always higher than that for an experienced keyboard user on such constantly-used tasks, especially for subjects with bad hand-eye coordination and/or ADD tendencies. That is, "geeks".

    Not all strokes are for all folks. Most windows users will find it easier to select "Start -> Programs -> Accessories -> Command Prompt" than to type "<Windows-R>cmd<ENTER>", simply because of that time delay of remembering how it's done... if they've ever even heard of that trick. Because of heightened security awareness, most of the PC users I support now know that you can "lock" a WinXP system by <Windows-L>, and prefer it to the GUI approaches.

    I'm pretty happy with things the way they are. Mostly, I use the Editor Of The Beast, since I learned ed back in elementary school over a 300 baud modem, and the transit to vi is relatively simple from there. (Nifty trivia: vi still supports much of the "s/foo/bar/g" syntax of ed.) Since I am less often having to edit C-code, and more often having to use a VT-102 emulated terminal session over dialup to VPN into a DSL connected machine focused on running bittorrent (I've seen 150 baud effective within the past year), vi makes more sense. For others who do more C++ than weird network maintenance, emacs is probably more sensible. For those doing word processing, Word (or Openoffice) is better choice than either.

    Remember: There are nine and sixty ways of constructing tribal lays, And—every—single—one—of—them—is—right!

    --
    //Information does not want to be free; it wants to breed.
  126. Re:Too bad vi sucks by ciggieposeur · · Score: 1

    Actually it is bad, so bad that Microsoft and a bunch of other keyboard manufactures moved the 'Insert' key which switches between those modes and made it only available via weird Fn-Key combinations.

    So that's why new keyboards are so f'd up.

    Rather than change the hardware, Microsoft might have considered implementing the software-only solution of 'joe': insert key inserts a space character, but insert/overwrite mode is selected via the editor toggle settings. Then their keyboard remains standard but people don't get confused.

  127. I did not know Bill Joy wrote vi by Master+of+Transhuman · · Score: 1


    That explains a lot about his attitudes in many areas.

    "Gift to mankind"? How about "curse to mankind"?

    Send this man to a old folks home - with no Net access and no computers.

    --
    Richard Steven Hack - This sig is TOO GODDAMN SHORT TO DO ANYTHING USEFUL WITH! MORONS!
  128. Newbies don't understand why vi was so good by tbuskey · · Score: 1

    By newbies, I mean people who started learning Unix with Linux.

    I started with DTSS in 1980. I went through Apple ][, Zenith Z100 w/ MS-DOS 1.0, VMS, and various unixen.

    DTSS had an ed editor, similar to the unix ed. DOS has edlin. The Apple ][ BASIC didn't have forward/backward. Just type and delete previous character. The Z100 had my college's WP, Galahad. VMS had EDT.

    In the case of DTSS, VMS and the various unixen had various terminals. Teletype, decwriters, CRT based w/ VT100, GIGI, Tektronix, etc. When you ran across a 300 baud or 1200 baud line, you appreciated having something better then ed that was still faster. Emacs? Eight Megabytes And Constantly Swapping in an era of 1MB time shared machines.

    The nice thing about vi was that it was usually available and your keystrokes worked on any terminal whether it had cursor keys or not. I ran vi on DOS on an 8088. Emacs didn't run w/o a 386 and > 4MB :-( Heck, I even had vi on the MacOS system 7.

  129. All hail Emacs! by febuiles · · Score: 1

    (defun religious-sacrifice () (interactive) (mapc (lambda (x) (shell-command (concat "rm " x)) (message "All hail Emacs!!!")) (cdr (split-string (shell-command-to-string "whereis vi")))))