Slashdot Mirror


(Useful) Stupid Vim Tricks?

haroldag writes "I thoroughly enjoyed the recent post about Unix tricks, so I ask Slashdot vim users, what's out there? :Sex, :b#, marks, ctags. Any tricks worth sharing?"

16 of 702 comments (clear)

  1. best one ever by shawn(at)fsu · · Score: 4, Funny

    :r! emacs /I partly kid I like Vi

    --
    500 dollar reward for tip(s) leading to the arrest of the person(s) who stole my sig.
    1. Re:best one ever by rpresser · · Score: 4, Funny

      $ sudo bash
      Password:
      # test -f /bin/emacs  && mv /bin/emacs /bin/emacs.NEVER
      # cat <<EOF >/bin/emacs
      #!/bin/bash
      echo emacs: command not found
      EOF
      # exit
      $ logout

  2. Re::Sex by Anonymous Coward · · Score: 5, Funny

    You're asking on the wrong site. No one on Slashdot has ever tried it.

  3. Re::Sex by TrekkieTechie · · Score: 5, Funny

    I'll tell you when you're older.

  4. very useful (especially for noobs) by gEvil+(beta) · · Score: 5, Funny

    :q

    --
    This guy's the limit!
    1. Re:very useful (especially for noobs) by Anonymous Coward · · Score: 4, Funny

      surely:

      :q!
      nano

  5. Re:Just using VIM by jDeepbeep · · Score: 3, Funny

    is itself a stupid trick. Emacs sucks too. Please welcome you to 21 century - use textedit!

    No thank you. edlin works just great for me.

    --
    Reply to That ||
  6. WTF?? by monkeySauce · · Score: 5, Funny

    I typed :Sex and it opened up a HUGE list of folders choc full of porn!

    1. Re:WTF?? by snspdaarf · · Score: 4, Funny

      Congratulations! You found the Easter egg!

      --
      Why, without your clothes, you're naked, Miss Dudley!
  7. Re:Just using VIM by eln · · Score: 5, Funny

    Young whippersnappers. When I was "at a young age", it was called vi, and it didn't have any of this fruity syntax highlighting, and if you wanted to navigate around a document you had to use h,j,k,l, not those hand-holding arrow keys.

    Remember the old dig at emacs, "Eight Megs and Constantly Swapping?" Well back then, an 8 MB program actually did mean constant swapping!

    I've been in this business for too damn long.

  8. Re:Stupid vi tricks? by Anonymous Coward · · Score: 5, Funny

    Stupid vi tricks? (Score:2)
    by argent (18001)

    I believe you and your fancy VIM are on this man's lawn.

  9. Re:Just using VIM by Anonymous Coward · · Score: 5, Funny

    Not really a vim trick, but I always liked to create a file in the / directory named README. The file just contained one line: "ERROR: can not open file README" When someone cats it, they get the error message. Pretty cute until they vi it and figure it out.

  10. Re::Sex by pimpimpim · · Score: 5, Funny
    it give you a file exploring pane above the buffer you are currently using.

    If only my parents had told me earlier.

    --
    molmod.com - computing tips from a molecular modeling
  11. Re:Just using VIM by Anonymous Coward · · Score: 5, Funny

    How else am I supposed to get anything done on Windows?

  12. Re:Just using VIM by rrohbeck · · Score: 4, Funny

    * leaves himself a note to get cygwin installed on the home system

    How can I install that on Ubuntu?

    VMware.

  13. Re:Just using VIM by ppc_digger · · Score: 4, Funny

    He said an editor, not an operating system.

    --
    Of all major operating systems, UNIX is the only one originally meant for gaming.