Stories
Slash Boxes
Comments

SoylentNews is people

SoylentNews is powered by your submissions, so send in your scoop. Only 19 submissions in the queue.
posted by martyb on Tuesday October 24 2017, @07:28AM   Printer-friendly
from the what-about-emacs? dept.

It's an old article, but if you use vi/m it's always good to read a refresher. I've been using the editor for almost 30 years and always learn something new:

If you spend a lot of time typing plain text, writing programs or HTML, you can save much of that time by using a good editor and using it effectively. This paper will present guidelines and hints for doing your work more quickly and with fewer mistakes.

The open source text editor Vim (Vi IMproved) will be used here to present the ideas about effective editing, but they apply to other editors just as well. Choosing the right editor is actually the first step towards effective editing. The discussion about which editor is the best for you would take too much room and is avoided. If you don't know which editor to use or are dissatisfied with what you are currently using, give Vim a try; you won't be disappointed.

[...] The point is that you need to get to know these commands. You might object that you can't possibly learn all these commands - there are hundreds of different movement commands, some simple, some very clever - and it would take weeks of training to learn them all. Well, you don't need to; instead realize what your specific way of editing is, and learn only those commands that make your editing more effective.

There are three basic steps:

        1. While you are editing, keep an eye out for actions you repeat and/or spend quite a bit of time on.
        2. Find out if there is an editor command that will do this action quicker. Read the documentation, ask a friend, or look at how others do this.
        3. Train using the command. Do this until your fingers type it without thinking.


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 4, Funny) by MichaelDavidCrawford on Tuesday October 24 2017, @07:30AM (17 children)

    by MichaelDavidCrawford (2339) Subscriber Badge <mdcrawford@gmail.com> on Tuesday October 24 2017, @07:30AM (#586755) Homepage Journal

    But us Christians Use:

    Eight
    Megs
    And
    Constantly
    Swapping

    --
    Yes I Have No Bananas. [gofundme.com]
    Starting Score:    1  point
    Moderation   +2  
       Funny=1, Touché=1, Total=2
    Extra 'Funny' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   4  
  • (Score: 2) by maxwell demon on Tuesday October 24 2017, @07:57AM (3 children)

    by maxwell demon (1608) on Tuesday October 24 2017, @07:57AM (#586762) Journal

    I'm sure you mean Escape Meta Alt Control Shift.

    The other backronym is utterly outdated. A system constantly swaps because a program uses 8 megabytes? How many programs these days actually use less than that?

    --
    The Tao of math: The numbers you can count are not the real numbers.
    • (Score: 2) by MichaelDavidCrawford on Tuesday October 24 2017, @08:27AM (1 child)

      by MichaelDavidCrawford (2339) Subscriber Badge <mdcrawford@gmail.com> on Tuesday October 24 2017, @08:27AM (#586771) Homepage Journal

      like really nasty feature phones like the one Fred Meyer sells for $14.99.

      The Oxford Semiconductor OXFW911 had 1800 bytes of RAM. Not megabytes, not kilobytes: bytes.

      I wanted to use more RAM for a project so I created a spreadsheet that had all the memory objects in it, then shorted some arrays.

      --
      Yes I Have No Bananas. [gofundme.com]
      • (Score: 2) by Wootery on Tuesday October 24 2017, @11:56AM

        by Wootery (2341) on Tuesday October 24 2017, @11:56AM (#586807)

        Ought to be enough for anyone, right? ;-P

    • (Score: 1, Redundant) by isostatic on Tuesday October 24 2017, @09:09AM

      by isostatic (365) on Tuesday October 24 2017, @09:09AM (#586785) Journal

      The other backronym is utterly outdated

      No shit.

  • (Score: 1, Insightful) by Anonymous Coward on Tuesday October 24 2017, @12:34PM (1 child)

    by Anonymous Coward on Tuesday October 24 2017, @12:34PM (#586819)

    Let's bring that into the 21st century: 8 gigabytes and constantly swapping.
    Not picking on vim, that's for all modern software.

    • (Score: 0) by Anonymous Coward on Tuesday October 24 2017, @02:14PM

      by Anonymous Coward on Tuesday October 24 2017, @02:14PM (#586859)

      So, what's EGACS? :D

  • (Score: 0) by Anonymous Coward on Tuesday October 24 2017, @01:35PM

    by Anonymous Coward on Tuesday October 24 2017, @01:35PM (#586839)

    Um... Pagan here. How are all you non-pagans doing these days? I heard you had to relearn your Redmond built user interfaces ten times since my sparc station was first blessed with the blood of virgins. Forced upgrades must be hell.

    Anyway, ya'll are welcomed at the old pentagram any time. BYOB and all that.

    Cheers!

  • (Score: 2) by Thexalon on Tuesday October 24 2017, @02:41PM (7 children)

    by Thexalon (636) on Tuesday October 24 2017, @02:41PM (#586874)

    Actually, speaking as a pagan, I'm polytheistic, so I regularly use both vim and emacs. Sometimes at the same time.

    --
    The only thing that stops a bad guy with a compiler is a good guy with a compiler.
    • (Score: 0) by Anonymous Coward on Tuesday October 24 2017, @02:47PM (1 child)

      by Anonymous Coward on Tuesday October 24 2017, @02:47PM (#586879)

      so you're that teacher I heard about who wrote the (geometry) problem with one hand and drew the picture with the other hand. at the same time.

      • (Score: 0) by Anonymous Coward on Tuesday October 24 2017, @04:36PM

        by Anonymous Coward on Tuesday October 24 2017, @04:36PM (#586922)

        Grab a potato chip and eat it?

    • (Score: 2) by LoRdTAW on Tuesday October 24 2017, @05:16PM

      by LoRdTAW (3755) on Tuesday October 24 2017, @05:16PM (#586947) Journal

      You kinky bastard! Well, at least I'm not alone in this hateful world.

    • (Score: 2) by Phoenix666 on Tuesday October 24 2017, @07:14PM

      by Phoenix666 (552) on Tuesday October 24 2017, @07:14PM (#587017) Journal

      That's sick. And wrong.

      --
      Washington DC delenda est.
    • (Score: 2) by MichaelDavidCrawford on Tuesday October 24 2017, @09:05PM (2 children)

      by MichaelDavidCrawford (2339) Subscriber Badge <mdcrawford@gmail.com> on Tuesday October 24 2017, @09:05PM (#587101) Homepage Journal

      Richard Stallman praised it for being highly orthogonal.

      --
      Yes I Have No Bananas. [gofundme.com]
      • (Score: 3, Interesting) by Thexalon on Tuesday October 24 2017, @10:20PM

        by Thexalon (636) on Tuesday October 24 2017, @10:20PM (#587144)

        It's possible to run vim's binary within emacs and vice versa. That to me is the perfect demonstration of their flexibility.

        --
        The only thing that stops a bad guy with a compiler is a good guy with a compiler.
      • (Score: 2) by srobert on Tuesday October 24 2017, @11:18PM

        by srobert (4803) on Tuesday October 24 2017, @11:18PM (#587153)

        Emacs with evil mode is tolerable or perhaps Spacemacs is OK. But I prefer vim, actually neovim. Other editors have a strange feature of littering my text files with extraneous "j's k's f's and w's"

  • (Score: 2) by forkazoo on Tuesday October 24 2017, @07:36PM (1 child)

    by forkazoo (2561) on Tuesday October 24 2017, @07:36PM (#587048)

    Of course Vim is for pagans, that's why you start it by typing Roman Numeral Six.

    • (Score: 2) by bart9h on Wednesday October 25 2017, @01:31AM

      by bart9h (767) on Wednesday October 25 2017, @01:31AM (#587203)

      VI VI VI

      the editor of the beast