Slashdot Mirror


A Visual Walkthrough of New Features in Vim 7.0

An anonymous reader writes "Anybody who has used Linux or any other OS would be aware of the very powerful and feature rich text editor Vi. This interesting article takes a visual look at some of the new features in the latest version of Vim 7.0 — a Vi clone created by Bram Moolenaar. From the article: 'Just for once, I wouldn't mind siding with the beast if that is what it takes to use Vi. The modern avatar of Vi is Vim — the free editor created by Bram Moolenaar. Riding from strength to strength, this editor in its 7th version is a powerhouse as far as an editor is concerned. When ever I use Vim (or GVim for that matter), it gives me the impression of the Beauty and the Beast.'"

406 comments

  1. editors are for wimps by joss · · Score: 4, Funny

    Real men just input the entire program at the command line using cat>myprog.c
    Of course, "real men" score higher on machismo than common sense.
    C'mon.. there is nothing that really needs saying on this topic, let the flame
    wars begin.

    --
    http://rareformnewmedia.com/
    1. Re:editors are for wimps by WillerZ · · Score: 1

      No, real programmers use XEDIT/VM or the ISPF editor.

      --
      I guess today is a passable day to die.
    2. Re:editors are for wimps by Anonymous Coward · · Score: 4, Funny

      >Real men just input the entire program at the command line using cat>myprog.c


      Huh? Try directly typing into GCC next time, you know, like:

      gcc -x c - && ./a.out
        #include <stdlib.h>
        #include <stdio.h>
       
        int main(void) {
            if(puts("H., w.!")==EOF || fflush(stdout)==EOF) {
                fputs("Failed writing to standard output!\n", stderr);
                return(EXIT_FAILURE);
                }
       
            return(EXIT_SUCCESS);
            }
        ^D
    3. Re:editors are for wimps by laejoh · · Score: 2, Informative

      Or http://hessling-editor.sourceforge.net/, if you're into that kind of thing...

    4. Re:editors are for wimps by Monsieur_F · · Score: 1

      For even more fun I tried sending gcc output to stdout using "-o -" but it just created a file called -.
      Anyhow I am not sure how to "execute" stdin...

      --
      McCartney fans pay bus tickets. [...] Lennon fans too, with discretion.
    5. Re:editors are for wimps by kdemetter · · Score: 1

      why is this -1 ?

      it's not a flame or anything .

    6. Re:editors are for wimps by clickclickdrone · · Score: 4, Interesting

      You may laugh, I knew someone that coded that way. They sat, thought, mapped it all out in their head then typed it all in top to bottom in one go. Worse still, it worked first time 99% of the time and I don't recall them ever producing a single bug. Git. This was Dbase III+ FWIW.

      --
      I want a list of atrocities done in your name - Recoil
    7. Re:editors are for wimps by value_added · · Score: 1

      Real men just input the entire program at the command line using cat>myprog.c

      The modern man, however, uses nc -l 1234 > myprog.c.

    8. Re:editors are for wimps by Armer+Hund · · Score: 5, Funny

      Real men just input the entire program at the command line using cat>myprog.c
      A real man writes directly to the disk with a magnetised paperclip.

    9. Re:editors are for wimps by cortana · · Score: 1

      You could try gcc -o /dev/stdout piped through /lib/ld-linux.so.2 /dev/stdin... but I think the loader would fail since it can't mmap stdin.

    10. Re:editors are for wimps by bsharitt · · Score: 1

      Nano for life

    11. Re:editors are for wimps by MartinG · · Score: 1

      cat? That's _way_ too much typing. I always get my developers to use zcat.

      --
      -- MartinG To mail me: echo kewyjlcxyzvjfxbqwh | tr bcefhjklqvwxyz .@adgimnoprstu
    12. Re:editors are for wimps by include($dysmas) · · Score: 5, Funny

      a disk? you luck pucker.

      in my day we had to arrange stones monoliths on hills to store data.

    13. Re:editors are for wimps by NearlyHeadless · · Score: 4, Interesting
      In the non-fiction book The Cuckoo's Egg, Clifford Stoll is trying to get a call to his computer in Berkeley traced; the person at British Telecom that he talks to originally took computer programming via a correspondence course. He had to write his program out on coding forms, then mail them. They would be keypunched and he would be mailed back the output from the line printer.

      He got in the habit of getting it right the first time.

    14. Re:editors are for wimps by ddvlad · · Score: 1
      A real man writes directly to the disk with a magnetised paperclip.

      Real men just type Hello World! at the prompt, instead of writing a program for it, compiling and running it.

      --
      Cornholio is a prophet.
    15. Re:editors are for wimps by rlp · · Score: 1

      Real programmers input their programs in binary.

      --
      [Insert pithy quote here]
    16. Re:editors are for wimps by clickclickdrone · · Score: 3, Interesting

      That was pretty common not that long ago. Most people I know who did programming/science/engineering at University in the 80's did it on clunky old timeshare systems where they wrote the programs (Fortran, usually), punched the cards, sent them off and waited a week. Don't even start talking to them about dropping their card stacks...
      On a slight tangent, I worked for a UK bank around 1988 who had a service where they sent big customers mag tapes of the previous nights checks/cheques for reconcilliation. One tape merged two accounts in error so we had to reproduce the two accounts by hand by having an entire department type out and check 20,000 punch cards over a few days and nights. To add insult to injury, the completed tape was then couriered by motorbike to the customer but the bike crashed and the tape got smashed so we had to get another tape done which took a further 24 hours.
      Youngsters these days with that there Inteenet thang don't know they're born!

      --
      I want a list of atrocities done in your name - Recoil
    17. Re:editors are for wimps by Anonymous Coward · · Score: 0

      Do real men also have a lot of problems with crashing into other people as they go in and out the wrong doors?

    18. Re:editors are for wimps by orasio · · Score: 2, Funny

      Chuck Norris just stares at the phosphor triads, and the inscription starts glowing from then on.

    19. Re:editors are for wimps by just_another_sean · · Score: 1

      I think his name was Mel.

      --
      Creationist Textbook Stickers Declared Unconstitutional by CowboyNeal
    20. Re:editors are for wimps by Lord+Ender · · Score: 1

      Cat? Cat is for girlie-men! If ye had anything hangin between those skinny legs, ye'd write using copy con!

      --
      A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.
    21. Re:editors are for wimps by sgml4kids · · Score: 1

      Actually, real men use: cat > a.out

    22. Re:editors are for wimps by martinlp · · Score: 1

      I believe that is how microsoft also write most of their software

    23. Re:editors are for wimps by Anonymous Coward · · Score: 0

      No, that would be McGuyver.

    24. Re:editors are for wimps by Schraegstrichpunkt · · Score: 1

      Pff. You guys and your overengineered complexity.

      Real men use base64-decode | dd of=/dev/kmem ...

    25. Re:editors are for wimps by Randseed · · Score: 1

      Real men key their code in hexidecimal using 8 bit ASCII!

    26. Re:editors are for wimps by Anonymous Coward · · Score: 0

      Real men don't waste keystrokes:
      bunzip2>myprog.c

    27. Re:editors are for wimps by roystgnr · · Score: 5, Funny

      So you're the one who littered a bunch of tiny 40 ton monoliths all over the database hills I arranged, huh? Jerk. Now I have to wait for the next glaciation to reformat.

    28. Re:editors are for wimps by creepynut · · Score: 1

      Wait... there's ANOTHER WAY?

    29. Re:editors are for wimps by balbord · · Score: 1

      Ye ought sink t'Davy Jones' locker fer yer words! Aft in me tide we used vi t' do jus' about anythin'! 't makes me one good eye water t' be seein' such disrespect! Let me wannion ye an' all yer ancestors as well t' hell!

      Arrrrr!

      --
      "If I have been able to see so far, It is because I went out and bought a damn binoculars" - Ze da Esquina
    30. Re:editors are for wimps by pimpimpim · · Score: 1

      That is nothing! When this happened in my time there were no motorbikes and we had to go, uphill, by bicycle!!! In the snow!!! And there were no magnetic tapes, so it had to be carved in stone instead!!!

      --
      molmod.com - computing tips from a molecular modeling
    31. Re:editors are for wimps by forkazoo · · Score: 1
      Real men just input the entire program at the command line using cat>myprog.c
      Of course, "real men" score higher on machismo than common sense.
      C'mon.. there is nothing that really needs saying on this topic, let the flame
      wars begin.


      To just jump straight tho the logical terminus of the "real men" jokes...

      Real men don't need software. They just impliment directly in hardware. And they get it right the first time. None of this, "oops, made a typo, just recompile and run it again."
    32. Re:editors are for wimps by HiThere · · Score: 1

      Patience, one's on the way. Glaciations generally follow a spell of global warming.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    33. Re:editors are for wimps by Anonymous Coward · · Score: 0

      You have an error in your program!

      root:~$ gcc -x c - && ./a.out
      bash: gcc: command not found
      root:~$

      Please review your source before submitting!

  2. VIm 7.0 has been shipping with Ubuntu for months by diablo-d3 · · Score: 0

    Ubuntu started shipping Vim 7.0 way back in April or May. Even though I quit Ubuntu, I have to say Ubuntu managed to do something right for once.

    --
    Patrick "Diablo-D3" McFarland || http://AdTerrasPerAspera.com
  3. psst. i use emacs. by include($dysmas) · · Score: 1

    3 .. 2 ... 1 Flameware commence :

  4. Please help me with vim by xtracto · · Score: 1

    So from the article it seems Vim 7 is very powerful. I have tried to use vi several times but I just cant get used to the keys. I even have right here a "Vi editor Cheat Sheet" printed in small text as a card to have handy at my computer side.

    I know the best way to learn to use Vim is to use it every day. My main editing tasks everyday are Latex processing and Java development. Usually I use Kile and Eclipse to solve my problems. As you can see I something like an IDE wore (wow). But I really would like to learn Vi (please I am not trolling).

    I remember I once read about a Latex pluing or environment for Vi, but I found it a bit difficult to use it. Maybe i am making the wrong approach or something.

    On the other side, why is it that the cursor move keys are HJKL when the touchtyping home keys are JKL; that is something that has always give me problems, I would feel more confortable having the JKL; as cursor because thats the place where I have my fingers (I touch type pretty quickly, thats one of the reasons I like to learn Vim, because of the reduced keyboard usage).

    BTW, if anyone needs these tips, use CTRL+[ for ESC and CTRL+M for new line, this will prevent you from moving your hands (if you touch type of course) to weird places where those keys are. Oh and CTRL+H is the same as backspace...

    --
    Ubuntu is an African word meaning 'I can't configure Debian'
    1. Re:Please help me with vim by oggiejnr · · Score: 2, Informative

      LatexSuite at http://vim-latex.sourceforge.net/ is brilliant for editing latex documents. It took me a couple of days to initially learn but the tutorial on their site makes starting easy.

    2. Re:Please help me with vim by Gumph · · Score: 1

      On the other side, why is it that the cursor move keys are HJKL when the touchtyping home keys are JKL; that is something that has always give me problems,
      The reason vi use the hjkl combo - is that it was first created on a terminal that did not have any cursor keys and these 4 keys were used instead to move around the screen.

      --
      'By the pricking of my thumbs, something wicked this way comes'
    3. Re:Please help me with vim by arun_s · · Score: 1

      I learnt Vi when I had to telnet to a remote machine and no other decent tool was available. You're right, using it really is the best way to learn it. So maybe you could try reducing your dependency on IDEs.
      Open a terminal and stick with it.
      Symlink eclipse to vi.
      If you still feel you're faster in Eclipse, you could always stick with it. I agree the HJKL keys could have been JKL; but since you're either in insert mode or escape mode at any one time, hopefully it shouldn't be too much of a bother.

      --
      I can explain it for you, but I can't understand it for you.
    4. Re:Please help me with vim by TeknoHog · · Score: 1

      How about you read the question again. Why "HJKL" instead of the more natural (for touch typists) "JKL;"?

      --
      Escher was the first MC and Giger invented the HR department.
    5. Re:Please help me with vim by cortana · · Score: 1

      Try running 'vimtutor'

      Personally I took in more when I read read the reference manual rather than the tutorial. http://vimdoc.sourceforge.net/ has the manual in PDF form, as well as a Vim book, FAQ and other guides.

      As for your cursor keys question, I guess it's due to tradition. You can use the 'map' command to change what the jkl and ; do.

    6. Re:Please help me with vim by Scarblac · · Score: 4, Insightful

      Presumably hjkl are much more reliably next to each other than jkl;?

      --
      I believe posters are recognized by their sig. So I made one.
    7. Re:Please help me with vim by spitzak · · Score: 1

      I heard the terminal had arrows printed on those keys, which is why they were chosen. It might also make sense to avoid using a punctuation mark (the semicolon) as one of the arrows.

    8. Re:Please help me with vim by thanners · · Score: 1
      HJLK vs JKL;

      Well, at first I thought this was a bit strange, too, but I've become reasonably comfortable with it now.

      I find that more often than not, when I do need to move around in a file, more often than not I'm moving down, so having my index-finger poised over that key seems fairly sane. Probably next most common movement is up the text file again, so between my index and middle fingers, I've got the primary movements covered fairly easily. :P Further, I'm somewhat uncoordinated with the pinky-fingers on both hands, so it actually feels more convenient for me to reach across to H with my index finger to move left than if I had to use my pinky finger to hit semi-colon to move right.

    9. Re:Please help me with vim by Lusa · · Score: 4, Insightful

      So maybe you could try reducing your dependency on IDEs.
      Open a terminal and stick with it.
      Symlink eclipse to vi.


      That is perhaps the worst bit of advise I have seen so far. If they have a job to do, then they should not switch away from what gets the job done quickest for them. A far better bit of advise is to use vi for when the IDE does not help. Such as quick edits, shell script editing or config file changing. That way they still can get their job done in a reasonable amount of time but still get to use vi on a regular basis.

    10. Re:Please help me with vim by Ulfalizer · · Score: 1

      I for one am glad it's HJKL, as ; to the right of L is unique to english keyboard layouts, iirc. Then again, it's pretty easy to remap keys.

      Ulf

    11. Re:Please help me with vim by nath_de · · Score: 2, Interesting
      Presumably hjkl are much more reliably next to each other than jkl;?
      Right, on a German keyboard it is jklö for example. To reach ; you have to use the shift key.
    12. Re:Please help me with vim by Anonymous Coward · · Score: 0
    13. Re:Please help me with vim by glarbl_blarbl · · Score: 1

      Personally, I like to use the cursor keys... I don't have any terminals which don't have them, and the recent versions of vim recognize them just fine... Of course, I'm not a coder - so the quarter-second it takes to move my hand over doesn't actually add up to much. Also pgdn/pgup and home/end are very handy (pardon the pun).

      --
      I use friend/foe to signal strong [dis]agreement instead of mod points. What else are f/f good for?
    14. Re:Please help me with vim by arun_s · · Score: 1

      You're right, I wouldn't normally recommend anyone to do that. In this case he specifically asked for help in performing his IDE-related tasks (latex etc).
      If he sticks to config file editing, he'll learn nothing new in vi except insert mode, make changes and :wq.
      For the actual stuff that really makes Vim powerful, you need to focus it on your specific requirement.
      Just my 0.02$.

      --
      I can explain it for you, but I can't understand it for you.
    15. Re:Please help me with vim by Anonymous Coward · · Score: 0

      yopu are le stupax

    16. Re:Please help me with vim by eMbry00s · · Score: 1
      I like your bindings. Personally, I prefer:
      :imap lkjh <esc>h
      Otherwise, buying a laptop-size keyboard will make your dreams come true unless you use the numpad keys a lot. Makes Enter/CR/Newline and all other keys a lot easier to reach, but might make it a little harder to do CTRL-X combos.
    17. Re:Please help me with vim by glesga_kiss · · Score: 1
      If you still feel you're faster in Eclipse, you could always stick with it.

      If you are using Eclipse right, you should always be faster in it. An IDE can handle a lot of code/class generation for you. It's much like vi; unless you learn the not-so-obvious features, you'll never get the most out of it.

      To start off, use type "whi" and hit control space. Try some of the while loop autogeneration templates and use the TAB key to jump through the fields. Another example, NEVER create a class. Just reference it in the code, select the "errored" reference and hit "ctrl-1". One of the options is "create class". "ctrl-1" on any error is useful. I use it to add any casts I need, along with "add field", "add variable" and "add parameter".

      Learn all of these tricks and you outpace even the most hardended vi/emacs user.

    18. Re:Please help me with vim by Atzanteol · · Score: 0, Offtopic
      Aye, Eclipse has some nifty 'autocomplete' features (though I immediately turn off the ones that insert closing " and ) while I type - there is nothing more irritating than ending up with ");"); at the end of a line every-now-and-then. I'm fully capable of typing two or three extra characters!). But I still look for a decent free vi plugin for it. Would be the best of both worlds. Navigating code with the eclipse editor is a nightmare. I get the feeling Eclipse was designed with very *very* poor typists in mind.

      One of my favorite ViM commands is 'o' (or 'O') to insert a new line below my current one (or above for 'O'). Doesn't matter where I am in the line, I get a new one below me. No needing to hit 'end' and then 'enter'.

      --
      "Ignorance more frequently begets confidence than does knowledge"

      - Charles Darwin
    19. Re:Please help me with vim by donaldm · · Score: 2, Insightful

      Basically vi was designed for 24x80 CRT screens of which the ADM3 and the VT100 became the most popular although this depends who you talk to. On an ADM3 the HJKL key actually had the Left, Down, Up and Right arrow keys printed on them hence the convention. I do actually surprise my colleagues by using the basic keyboard (ie. no function or cursor keys) but I have a background of using so many different keyboards (including teletypes) that it is much faster for me to do this.

      By using "cursors" it was possible to write a termcap (BSD) or terminfo (SYS V) that would allow the user of vi to use function and arrow keys. This is true even today and is usable by vim or even gvim which is really a vi type window which has graphical capability (ie. mouse) so that you can use the old tty commands and/or mouse.

      There are always advantages and disadvantages in using a GUI or keyboard commands and vim/gvim does give many options. In fact I do find that if you know vi you basically know vim and can very easily use gvim.

      I know many people like Emacs but now is not the time for religious wars like those of the mid 1980's. When people ask me which editor to use I first ask them what they want to do and then outline the pluses and minuses of vi vs emacs (if installed) vs pico (if installed). IMHO I think the best way to describe the editors is:

      vi - excellent general purpose editor (a must if you are a System Admin)

      emacs - very powerful editor but requires devotion to learn properly but well worth it.

      pico - great cut-down emacs editor (low learning curve) for people who just want to type something.

      If you are a Unix System Admin you will find that sometimes you may need to learn "ed" which to many may seem a strange thing to say today but believe me it is important that you know some of the basics of this line editor. I have even seen people use "ed" as their default editor and use it surprisingly quickly and efficiently.

      My apologies to those people who are going to say "what about XXXX" (insert for favorate editor here). If you look at *nix editors you are always guaranteed to have "vi", "ed" and possibly "emacs" all the others are basically add-on's although with Linux you do get "vim" which you can call with "vi".

      Learning "vi" is not as complex as learning "emacs" (not to say don't learn, but the learning curve is steeper) and it is surprisingly easy once you come to grips with the short cuts and how they relate to each other. Examples: [b]ack (word back), [w]ord (word forward), [e]nd (end of word). Also remember upper case is usually the reverse of what you did with the lower case command. There are some excellent books/papers you can get from Google. I find the best way to learn something is to have some serious editing then use the editor you want to learn.

      --
      There ain't no such thing as proprietary standards only proprietary formats. Standards are by definition open.
    20. Re:Please help me with vim by Spikeles · · Score: 1, Informative

      I found a vi plugin for Eclipse a while ago, it emulates almost of all vi's features in Eclipse, and it's very handy. The only problem is that it costs money and the trial has an idiotic nag screen that pops up like every 45secs, but i thought it was worth every cent when i bought it. http://satokar.com/viplugin/index.php

      --
      I don't need to test my programs.. I have an error correcting modem.
    21. Re:Please help me with vim by slowdive1979 · · Score: 1

      personally, i tend to hit J more than H, so i like that it is hjkl instead of jkl;. this way i can use my index finger for the more common task (move down a line instead of moving left one char).

    22. Re:Please help me with vim by oggiejnr · · Score: 1

      You could always use Eclipse inside VIM http://sourceforge.net/projects/eclim/ though I can't get my head round it someone else might.

    23. Re:Please help me with vim by orasio · · Score: 1

      You mean JKLÑ, obviously.

    24. Re:Please help me with vim by nickos · · Score: 3, Informative
      Like probably many people, I have the "inverse T" cursor key layout deeply etched in muscle memory, and I much prefer this to having left, down, up, right in a row like hjkl is (although I'm sure others prefer having all the keys on the home row). As a result I use ijkl to move the cursor and h to insert (this also means that touch typists get to keep their fingers on the touchtyping home keys and just move their second finger to i when they move the cursor up). This is what the relevant part of my .vimrc file looks like:
      " remap h to insert and use ijkl for inverse T cursor movement
      map h <insert>
      map i <up>
      map j <left>
      map k <down>
    25. Re:Please help me with vim by seanmeister · · Score: 1
      On the other side, why is it that the cursor move keys are HJKL when the touchtyping home keys are JKL; that is something that has always give me problems, I would feel more confortable having the JKL; as cursor because thats the place where I have my fingers (I touch type pretty quickly, thats one of the reasons I like to learn Vim, because of the reduced keyboard usage).

      Easily done by remapping the keys in your vimrc:

      :no ; l
      :no l k
      :no k j
      :no j h
    26. Re:Please help me with vim by Anonymous Coward · · Score: 0

      "hjkl" is actually pretty easy to remember if you know ASCII codes. The way it was taught to be is:

      H: move to the left, just like a backspace (backspace is CTRL-H in ASCII)
      J: move down, just like a linefeed (linefeed is CTRL-J in ASCII)
      K, L: mirror image of the above two

      Granted, this was 20+ years ago... back then knowing what ASCII control characters did what to a teletype was the sort of knowledge that many programmers had burned into their skull. So that little memory trick probably isn't as useful today.

      It does explain why someone writing an editor 25-30 years ago would consider "H is left, J is down" to be the natural key choices, though.

    27. Re:Please help me with vim by xtracto · · Score: 1

      Darn, I would mod you informative if I could (of course I posted the GP).

      This was the most (only?) useful answer, from the more than 15 answers I got. I have already edited my .vimrc with this and I feel it is like 100% more intuitive.

      Of course, after looking at the Latex possibilities, I'll still use Kile or Eclipse to develop... VIM is my text editor of choice however.

      thank you very much indeed!

      --
      Ubuntu is an African word meaning 'I can't configure Debian'
    28. Re:Please help me with vim by CastrTroy · · Score: 1

      but what if you're using a DVORAK keyboard? then the whole thing is completely useless? Is there anyway to switch VIM, so that it uses DHTN instead of hjkl?

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    29. Re:Please help me with vim by thelenm · · Score: 1

      No, just use the Dvorak mappings of HJKL anyway. I've been using Vim with a Dvorak keyboard for years without problems. J and K are still right next to each other; H and L are still relatively left and right of each other. As with anything, once you get used to it, it's not a problem.

      --
      Use Ctrl-C instead of ESC in Vim!
    30. Re:Please help me with vim by Anonymous Coward · · Score: 1, Interesting

      Hey dude, try Cream. It's Vim but with simpler menus and stuff. http://cream.sf.net/

    31. Re:Please help me with vim by b17bmbr · · Score: 1

      some time ago when I was busier setting up servers for my school (unbeknownst to my linux-phobic district honchos!!) because the librarian and others couldn't wait for a district approved solution, anyways...I was forced to learn vim because admining a server without a gui (I was running P166's w/32mb ram which make great small servers). Anyways, the best advice I can give you is to learn a basic subset of vim. Then, you can add things to the knowledge base as needed.

      I personally love vim, but, it does take some time to get used to. First, it is entirely oposite a standard text editor. I.e., no common key sequences. So ctrl-c/v/x etc don't work. And you never use a mouse, which again is hard to adjust to. However, you'll be much faster once you ignore the mouse.

      Learn some of the notations in vim. For example, $ means end of the line. Thus, d$ means delete to the end of the line. Hitting $ takes you to the end of the line.

      Here's an example of vim's power. Say you're coding java and you want you need to comment out to functions, let's say lines 48-72. Now, you could scroll up to line 48 and type /* then scroll down to line 72 and type */ or:

      type in command mode:

      :48,72s/^/\/\//g


      Some quick useful things:

      d means delete and copy to buffer
      y means copy to buffer
      p means paste
      w takes you to the next word (10w advances 10 words)
      b takes you to the previous word (10w takes you 10 words back)
      :47 takes you to line 47
      :$ takes you to the end fo the doc, :0 to the beginning
      :r -filename- will read filename into the file. useful for a variety of things.

      know when you're in command versus edit mode. There's so much more to the editor, but as I said, learn a few basic things, and then gradually acquire more. Once yo udo so, you'll find that you are really more productive. At least that's been my experience.

      --
      My problem? I was perfectly gruntled, until some numbnuts came by and dissed me.
    32. Re:Please help me with vim by Fred_A · · Score: 1

      This sums thing up fairly well. Knowing the basics of vi is still unfortunately difficult to avoid nowadays (at least enough to do small changes to a config file) since you'll often only have that to consistently rely on on a basic system. *However* some distributions installators come *without* vi and with some other weird editor such as "nano" which I discovered when installing Gentoo for the first time a few years ago and got stalled when I couldn't figure how to edit the config files (I finally found a reference to it in the "Fine Manual"). Why they couldn't spare a couple Ks for vi remains a mystery to me...

      As to which is the "best" the question in itself is of course meaningless since it depends on what you want to do, how you work and the POM. Not to mention that there's much more to choose from than the two antiquated editors a lot of us grew up with to choose from nowadays.

      --

      May contain traces of nut.
      Made from the freshest electrons.
    33. Re:Please help me with vim by morcego · · Score: 1

      No, I think he means JKLÇ.

      --
      morcego
    34. Re:Please help me with vim by rawtatoor · · Score: 1
      and don't forget to remap the 'd' (delete) to something else. (I use k).
      Here's the relevant part of my .vimrc:

      noremap k d
      noremap d h
      noremap h j
      noremap t k
      noremap n l
    35. Re:Please help me with vim by Anonymous Coward · · Score: 0
      Basically vi was designed for 24x80 CRT screens of which the ADM3 and the VT100 became the most popular although this depends who you talk to. On an ADM3 the HJKL key actually had the Left, Down, Up and Right arrow keys printed on them hence the convention.


      Also, ^H is backspace, and ^J is line feed (move down), so those sort of mnemonically helps one learn the hjkl mapping. (The similar annoyance that bugs me is that many late 70s/early 80s computer games used IJKM for movement, with no remapping, whereas IJKL is usually easier..)
    36. Re:Please help me with vim by Anonymous Coward · · Score: 0

      You're both wrong, it's JKLÆ!

    37. Re:Please help me with vim by Anonymous Coward · · Score: 0

      I'm still hoping we'll get support for proprtional fonts and elastic tabstops in a later version. Could be a long wait :(

  5. nvi undo? by Anonymous Coward · · Score: 0

    Does anyone know if this version allows you to configure it so that you can undo/redo like FreeBSD's vi (nvi)? With the previous versions, I've tried many times to no avail (including macro hacks).

    1. Re:nvi undo? by truedfx · · Score: 1

      If you mean what I think you mean, you can get that by setting u in your cpoptions setting.

    2. Re:nvi undo? by Anonymous Coward · · Score: 0

      Thanks for the reply to my poorly worded question. I think you deciphered it correctly but, unfortunately, nvi is different from vi in that it uses "." for undo/redo repeats as opposed to "CTRL-R". This is the problem I am having and is highlighted in the link below. Again, sorry for the wording of my question.

      http://www.polarhome.com/vim/manual/v55/undo.html# undo-two-ways

    3. Re:nvi undo? by truedfx · · Score: 1
      Ah... I get it now. I don't think you can do that easily. You'd need to do something ugly. This seems to work (but I don't know a whole lot about vim's functions, so it's probably bad style at best, and possibly broken in certain cases):
      set cpoptions+=u
      func ReUndo()
      set cpoptions-=u
      let currentchange = changenr()
      silent redo
      if changenr() != currentchange
      silent undo
      undo
      else
      .
      endif
      set cpoptions+=u
      endfunc
      map . :call ReUndo()<CR>
    4. Re:nvi undo? by Anonymous Coward · · Score: 0

      Again, thank you very much. It's not quite perfect a perfect replecation of nvi's behaviour, but an impressive effort considering you probably don't have a copy to compare with. It certainly does the undo using "." as advertised (which is half the battle) but with nvi, a subsequent press of "u" toggles redo (undoes the last undo) so the following presses of "." continues to redo. That probably doesn't make sense.

      In nvi, if you do ....

      dwdwdwu.

      It deletes three words, undoes the last delete ("u"), then undoes the second-last delete ("." repeats undo). Your modification does this perfectly :-)

      If you try ....

      dwdwdwu.u.

      It does the above, then redoes the second-last delete ("u" undoes the last undo), the redoes the last delete ("." repeats redo). It seem odd at first, but seems pretty intuitive after using it for a while (aka: a hard habit to break).

      In any case, thanks for your effort.

    5. Re:nvi undo? by truedfx · · Score: 1

      Actually, I do normally have nvi installed (and vim too). I just didn't know about nvi's . behaviour yet. :)

      Unfortunately, I'm not able to find a way to do what you want... After uu, a . should try to redo "redo", and report an error because there is nothing left. However, for vim to be able to emulate this, it must have a way of knowing that the last command was "redo". While it undoubtedly stores this somewhere, I can't seem to come up with a way to reliably tell from a function.

    6. Re:nvi undo? by Anonymous Coward · · Score: 0

      I'm starting to sound like a broken record here, but I really do appreciate your effort. Thanks. After reading about the Craigslist sex-bait wanker last week, I was starting to wonder about humanity in general. It's refreshing to know there are some genuinely helpful people out there. Cheers.

      As for vim, I'll still use it for its multi-byte character support, but I can't wait until I find a way to emulate the nvi "." behaviour. Syntax colouring? Bliss :-)

  6. Cream For VIM by Anonymous Coward · · Score: 1, Interesting

    I recently tried Cream For VIM see - http://sourceforge.net/projects/cream
    It is an open source GPL best of add-on's released already built onto VIM. Makes VIM more CUA like, includes versions for MS Windows and many linuxes. I can recommend, and would like to hear others opinions

  7. Re:No, it's *not* Moolenaar by Wm_K · · Score: 1

    So he even manages to spell it wrong on his own webpage? And What is umulated? Do you mean umlauted? Which is something the Dutch hardly do. That's a German thing...

  8. Emacs by arun_s · · Score: 5, Interesting
    I used to use Vim extensively, but have now switched to Emacs for the sheer joy of learning something new and interesting. Not trying to flame here, but this is one of the strongest quotes I've read on Emacs (Stepehenson, of course):
    I use emacs, which might be thought of as a thermonuclear word processor. It was created by Richard Stallman; enough said. It is written in Lisp, which is the only computer language that is beautiful. It is colossal, and yet it only edits straight ASCII text files, which is to say, no fonts, no boldface, no underlining. In other words, the engineer-hours that, in the case of Microsoft Word, were devoted to features like mail merge, and the ability to embed feature-length motion pictures in corporate memoranda, were, in the case of emacs, focused with maniacal intensity on the deceptively simple-seeming problem of editing text. If you are a professional writer--i.e., if someone else is getting paid to worry about how your words are formatted and printed--emacs outshines all other editing software in approximately the same way that the noonday sun does the stars. It is not just bigger and brighter; it simply makes everything else vanish.

    But vim is pretty cool too (I have windows ports for both the editors so I can use both in office). Arguing over which is better is a waste of time IMO, both do their job fantastically well.
    --
    I can explain it for you, but I can't understand it for you.
    1. Re:Emacs by bateleur · · Score: 1

      The issue which really puzzles me about vim and emacs is not people preferring one or the other it's experienced programmers who use neither. That's like trying to program without caffeine!

    2. Re:Emacs by cortana · · Score: 3, Interesting

      On the other hand, arguing is fun and a good way to learn about the editor you don't use because you're not familiar with it. :)

    3. Re:Emacs by swordgeek · · Score: 1

      I did some coding work for a year. Forced myself to use emacs for all of it, and came to appreciate the power and customisability of it. However, most of that power is only evident if you're doing something like programming or maybe writing a book.

      vi has always been a fairly lightweight editor. It functions on a minimal system, and is ubiquitous. Also, it's not written by RMS. These are all good features. :-)

      Two editors have two different niches. As you say, they both do their respective jobs fantastically well.

      --

      "People who do stupid things with hazardous materials often die." -- Jim Davidson on alt.folklore.urban
    4. Re:Emacs by Scarblac · · Score: 1

      I agree.

      Although it looks like the IDEs are getting features that the great text editors won't get any time soon; I was particularly impressed when I saw the Java refactoring things in Eclipse. Just select a few lines with a loop or so, right-click 'Extract method', name it and the rest is automatic. Emacs and vi won't get that sort of language integration ever, I think.

      But since that won't work well for more dynamic languages anyway, and the current job is Perl... yay for Emacs :-)

      --
      I believe posters are recognized by their sig. So I made one.
    5. Re:Emacs by bateleur · · Score: 1

      Emacs and vi won't get that sort of language integration ever, I think.

      Can't speak for vim, but there is at least one Java refactoring tool for emacs.

      Not too surprising if you think about it. The whole point of emacs is that it's extensible. If there's something you want - write it!

    6. Re:Emacs by Scarblac · · Score: 1

      Thanks! Stupid of me not to search.

      --
      I believe posters are recognized by their sig. So I made one.
    7. Re:Emacs by Saval · · Score: 2, Informative
      I was particularly impressed when I saw the Java refactoring things in Eclipse. Just select a few lines with a loop or so, right-click 'Extract method', name it and the rest is automatic. Emacs and vi won't get that sort of language integration ever, I think.


      Might not get, but Eclipse has got ViPlugin. So you actually can use familiar vi-editing inside eclipse with all the bells and whistles of eclipse!

      --
      --Saval
    8. Re:Emacs by RPoet · · Score: 1

      Eclipse has emacs keys support too, you insensitive clod.

      --
      "Oppression and harassment is a small price to pay to live in the land of the free." -- Montgomery Burns.
    9. Re:Emacs by DrXym · · Score: 1
      I've dumped both vi and emacs. Except for an occasional need to edit something from a console, there are numerous graphical editors which are far less arcane (font locking anyone?), more intuitive and simple to use than either of them.

      For general programming, XML and HTML needs, Eclipse works excellently, not least because it's an IDE as well. Alternatively something like JEdit is great or Notepad++ on Win32. In fact Notepad++ on Windows has to be one of the best and fastest editors I've had the pleasure of using.

    10. Re:Emacs by agent_blue · · Score: 1

      I can't tell if the quote is being serious or not. It says "It is colossal, and yet it only edits straight ASCII text files" Why would you need such a colossal program to do something so basic? It also says Lisp is the only computer language that is beautiful, I think that is subjective.

      and for the last quote, Emacs outshining all other text editors... I guess if that's what you want to go for. Personally If i want a program that just edits text, I want one as small as possible and as fast as possible (with all the features I want obviously). the whole quote just dons't strike me as being all that great about emacs.

    11. Re:Emacs by Eivind+Eklund · · Score: 1
      I use vim. I've used emacs and I've used caffeine. Both seemed to help me while I used them, and I found a noticable productivity boost when I quit...

      Eivind.

      --
      Doubting the existence of evolution is like doubting the existence of China: It just shows that you're uninformed.
    12. Re:Emacs by swillden · · Score: 1

      there is at least one Java refactoring tool for emacs.

      And for C++, too -- a commercial, closed-source EMACS extension <boggle/>

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    13. Re:Emacs by zootm · · Score: 1

      For some reason, I've fallen into using the editor jEdit. I feel more comfortable with it in a windowing environment, since emacs and vi have always seemed to harbour a lot of their command-line roots, which I don't have a particular use for. Probably because I can't be bothered learning them, though.

      As for actual coding, though, I think that with a lot of languages IDEs are definitely the way to go, at least for me. Any customisations I added to a text editor to make it the way I'd like to code would merely bring it up to the level of a good IDE, rather than surpassing it.

    14. Re:Emacs by Jah-Wren+Ryel · · Score: 3, Funny

      I use emacs, which might be thought of as a thermonuclear word processor. It was created by Richard Stallman; enough said....

      Enough said, yet the author goes on to write an entire paragraph?

      Perhaps Neal Stephenson does not quite grasp the meaning of "enough?" Judging by the length of his books, I guess that's probably true.

      --
      When information is power, privacy is freedom.
    15. Re:Emacs by bsharitt · · Score: 1

      What more do you need than nano?

    16. Re:Emacs by pilkul · · Score: 1

      I've been using Vim for years and I love it, but when I write C++ on large projects I've increasingly just been using the Visual Studio IDE with the Visual Assist plugin. The productivity gains from its integrated debugger and understanding of C++ syntax (so I can just leap to the function under my cursor by pressing alt-G) are usually much greater than what I get out of Vim's general text editing features. I only go back to Vim when either I'm only typing new code rather than browsing around, or I've got a repetitive task best done with regexps.

    17. Re:Emacs by thogard · · Score: 1

      Some of us have been using vi (or Emacs) for 20 years and because they are so programmable, we have some very impressive private macros that do all sorts of things and what you mention is trivial.

      Most vi users don't even know about tags (:ta foo to find function foo).
      I still see :wq when that died 20+ years ago when :x was included to fix the ambiguity with :wq!

      It was only 2 years ago when I found a real argument about which is better, vi or emacs? Emacs works better when cats type on your keyboard but thats not going to get me to switch to their side.

    18. Re:Emacs by Anonymous Coward · · Score: 0

      Oh, you mean the sort of refactoring tools that Visual Studio has had on the right-click context menu for years now?

      vim and emacs have had their time. For today's mainstream development shops, they're obsolete.

    19. Re:Emacs by honkycat · · Score: 1

      I started off as an emacs user (well, after first starting with the Turbo C++ wordstar-esque(?) IDE). When I got out of college, I worked at a place where vi was the editor of choice for many of the more senior programmers. Partly as an exercise and mostly because running emacs on an old HP-UX box sucked hard, I started using vi. I got pretty good with it, too. Learned all the shortcuts I needed, etc.

      After about 6 months, though, I noticed something funny happening. I found that I was subconsciously trying to avoid making more changes to a file than I needed to. I'd adjust my programming/debugging style to keep the number of lines I had to edit to a minimum. Sometimes this was a good thing, but often it ended up making things take longer. After a bit I realized it was because I really found working in vi to be a pain -- I switched back to emacs and had never felt so free in my programming life.

      Not much point to my story, other than to share my experience. I still do use vi for quick editing tasks such as config file updates. Still, if I spend too much time in it, my quality of life deteriorates pretty quickly. Not to say there's anything wrong with vi, just doesn't suit the way my brain functions.

    20. Re:Emacs by Kazoo+the+Clown · · Score: 1

      It also says Lisp is the only computer language that is beautiful, I think that is subjective.

      I agree with this-- for me the only computer language that is truly beautiful is APL, though only on the original 2741 typeball terminals, since video screens and keyboards have not kept up with it very well (I find overstrikes more elegant than larger character sets). See http://catpad.net/michael/apl/index.html (Conway's Life in 68 characters).

    21. Re:Emacs by Abcd1234 · · Score: 1

      Funny, I made the exact opposite switch. I used Emacs for many years and made the switch to Vim a couple months back. This was primarily fueled by the need to alleviate tendonitis... emacs-finger is not fun, and Vim allows me to use both hands equally when invoking editor commands.

      Of course, the speed with which Vim starts is terrific, as well, and since I do a lot of coding by remote, being able to comfortably run my editor in a GNU Screen over a terminal that may not do a create job sending control characters is really quite handy.

    22. Re:Emacs by Just+Some+Guy · · Score: 1
      Of course, the speed with which Vim starts is terrific, as well, and since I do a lot of coding by remote, being able to comfortably run my editor in a GNU Screen over a terminal that may not do a create job sending control characters is really quite handy.

      You mean that you used Emacs for more than a month and didn't discover Tramp? I edit remote files all day long, but do it from Emacs running on my local machine. Also makes applying the same macros to similar files on several different remote machines trivially easy.

      --
      Dewey, what part of this looks like authorities should be involved?
    23. Re:Emacs by Abcd1234 · · Score: 1

      If you actually believe that replaces all the functionality of GNU Screen, you've never used it.

    24. Re:Emacs by Anonymous Coward · · Score: 0


      The issue which really puzzles me about vim and emacs is not people preferring one or the other it's experienced programmers who use neither. That's like trying to program without caffeine!



      I could not agree more. I've been a vi/vim user for, uh, 15 years or so. I switched to emacs for a while just to try it out (did *everything* in it for over 6 months) and then switched back again. Emacs is also an insanely powerful editor, but my mind is more wired to vi.

      I've used (or had to use) any number of IDEs, editors, etc. All of them get in the way of getting stuff done. Sure the learning curve is a bit steep, but getting over that allows you to command the editor to do something *right now*, instead of messing around with mice, insufficiently powerful commands and generally wasting time (which is frustrating and unproductive).

      You must have seen some of these people using the 'visual paradigms' for handling ASCII text? The pain, the horror, the five minute waits for multi-MB paste actions, the inaccuracy of the whole 'dragging stuff' element, the list goes on.

      High level IDEs certainly have their place (you won't catch me refactoring a giant java app in vim any time soon - I really can't be bothered to display the kind of machismo you need to write/debug/troubleshoot the find/sed/awk/grep/sh mess you need for that) - but for text? VI POSSE IN THE HOUSE! Yeah.
    25. Re:Emacs by Anonymous Coward · · Score: 0

      "...but when I write C++ on large projects I've increasingly just been using the Visual Studio IDE with the Visual Assist plugin. The productivity gains from its integrated debugger and understanding of C++ syntax (so I can just leap to the function under my cursor by pressing alt-G) are usually much greater"

      Do you really mean that my C++ pet project for KDE will increase productivity by using Visual Studio?

      Or you better mean that you are a Windows drone?

  9. Re:Its been decided. by SumoRoti · · Score: 5, Funny

    EMACS ? you mean Escape Meta Alt Control Shift ??

  10. Re:No, it's *not* Moolenaar by Scarblac · · Score: 4, Informative

    No, it's Bram Moolenaar. He's Dutch, molenaar means miller, and moolenaar is an old spelling of that. Both Molenaar and Moolenaar are common names; Mölenaar is just wrong, Dutch doesn't use umlauts like that.

    --
    I believe posters are recognized by their sig. So I made one.
  11. Bill Joy by Brainix · · Score: 5, Informative

    For the younger ones in the audience, Vim is a superset of vi, which was originally written by Bill Joy.

    Yes, the same Bill Joy who heavily contributed to BSD, TCP/IP, NFS, and csh.

    Yet I still count vi as one of his top contributions. :-)

    --
    Raj Against the Machine! http://social-butterfly.appspot.com/
    1. Re:Bill Joy by Sqwubbsy · · Score: 0

      Yet I still count vi as one of his top contributions. :-)

      I'm sure Bill is glad for your support.

    2. Re:Bill Joy by MickDownUnder · · Score: 3, Informative

      You might also have mentioned he's the same Bill Joy who was chief architect at Sun through it's hay days.

    3. Re:Bill Joy by MickDownUnder · · Score: 3, Informative

      Oh and he was also co-founder of Sun Microsystems...

      And a recent attendee of the Dropping Knowledge forum in Berlin, where he had this to say... when asked the question "Why don't we dump all patent laws all around the world and stop restraining creativity and innovation?"

    4. Re:Bill Joy by Galactic+Dominator · · Score: 0

      Bill, Thanks for reminding us...again

      --
      brandelf -t FreeBSD /brain
    5. Re:Bill Joy by suv4x4 · · Score: 1

      For the younger ones in the audience, Vim is a superset of vi, which was originally written by Bill Joy.

      For even the younger in our audience, let's learn reading together! This is the English alphabet:

      A B C D E F G H I J K M N O P Q R S T U V X Y Z

      don't forget to mod me informative :P

    6. Re:Bill Joy by Nimey · · Score: 2, Funny

      All hail Bill Joy, god of agriculture!

      --
      Hail Eris, full of mischief...

      E pluribus sanguinem
    7. Re:Bill Joy by derniers · · Score: 1

      I use vi, have used vi and even remember using vi for email way back when nsfnet was all there was and I have always despised vi but I don't hold this against Bill Joy who did lots of other good things

    8. Re:Bill Joy by thogard · · Score: 1

      He bails out of sun and init(8) grows so it includes 800 times more code and it still doesn't do anything new?
      Maybe they should looking to hiring more people with a clue.

    9. Re:Bill Joy by thelenm · · Score: 1

      Ummm... the English alphabet only has 24 letters?

      --
      Use Ctrl-C instead of ESC in Vim!
    10. Re:Bill Joy by suv4x4 · · Score: 1

      Ummm... the English alphabet only has 24 letters?

      "L" and "W" have been deprecated in favor of counting letters on Slashdot posts.

    11. Re:Bill Joy by SEE · · Score: 1

      Merry Christmas to you, too!

      (The First No L . . . )

  12. In the great words of Wikipedia by Anonymous Coward · · Score: 0

    Fork Off!!!!

  13. Looks good by 1310nm · · Score: 5, Funny

    I can see myself using the tab and undo features, but the spillchucker adn autocomplete seme useliss 2 me.

    1. Re:Looks good by wywy008 · · Score: 1

      The reason I use vim instead of vi in UNIX is that I can have unlimited undo in vim.

    2. Re:Looks good by D4MO · · Score: 1

      Unlimited undo, on-the-fly spellchecker. Wow.

      --

      Rocket science is easy. Neurosurgery, now *that's* difficult.
    3. Re:Looks good by TheRaven64 · · Score: 1

      The thing I really like about the Vim 7 spell checker is that it's driven via the syntax highlighting mechanism. That means that it's context sensitive. When I'm editing C code, it will spell check strings and comments, but not anything else. I've not seen that in another editor, although Raskin does have a rant about most text editors not supporting it.

      --
      I am TheRaven on Soylent News
    4. Re:Looks good by Maru+Dubshinki · · Score: 1

      Emacs: M-x flyspell-prog-mode

      "Programmers can use flyspell-prog-mode to enable spell checking only within comments of source code."
      http://www.emacswiki.org/cgi-bin/wiki/FlySpell

      --
      Enquiring minds want to know!
  14. New features by dp_wiz · · Score: 3, Funny

    How do i enable that clippy?

    1. Re:New features by tehshen · · Score: 4, Informative
      --
      Guy asked me for a quarter for a cup of coffee. So I bit him.
    2. Re:New features by arun_s · · Score: 1
      How do i enable that clippy?
      I know you're joking, but someone actually created a version of vi with clippy. Creepy.
      (Haven't tried it though)
      --
      I can explain it for you, but I can't understand it for you.
    3. Re:New features by CadetUmfer · · Score: 1

      You mean this guy?

    4. Re:New features by Anonymous Coward · · Score: 0

      That would have been a lot funnier many years ago when vi was known as a tiny elegant editor whose strength was the way it was designed to take advantage of the rich set of command line text tools common to Unix by calling them from within the editor. But now people think of vi as this huge vim thing (which it ain't). It's just not funny anymore. It just about makes me want to cry.

      If anyone wants to know what vi really is, then check this out. And no, that's not just my opinion, it is absolutely fact that's what vi really is.

  15. "later" command ... by martinmarv · · Score: 5, Funny

    From the Article:
    I realise that I have made a mistake. I can easily take the document to a point 10 minutes back by using the command :
    :earlier 10m

    Or for that matter, move to a point 5 seconds ahead by using the command:
    :later 5s


    ... So I don't need to actually do the work any more? I can just start a new file "Project Plan", enter the command ":later 7200s" then print it out?

    1. Re:"later" command ... by hero_or_what · · Score: 1
      Caution - Offtopic.

      Reminds me of the a Calvin & Hobbes classic where "6.30 Calvin" has to do his homework and "invents" (a.k.a turns the duplicator box topside up), and travels to the future to meet the "8.30 Calvin" and pick up his homework. However, both the Calvins find out that its too late and "8.30 Calvin" has to go to bed. So, they decide to go back to 7.30 and get "7.30 Calvin" to write the story.

      The genius of Bill Waterson but not related to Bram in anyway.

    2. Re:"later" command ... by Anonymous Coward · · Score: 2, Funny

      Thats actually pretty cool. Funny thing happened though.

      I cranked up my emacs to see if it had that-

      M-x earlier 10y

      And I got vi.

      After searching the internet on how to do fucking anything in vi (I forgot the :) (thats not a smiley, its a colon), I did a :later 10y

      And I'm back again. Whew. So yah, later works too.

    3. Re:"later" command ... by ajs318 · · Score: 2, Funny

      You've been down to the lower (higher?) levels on Nethack, haven't you?

      --
      Je fume. Tu fumes. Nous fûmes!
    4. Re:"later" command ... by aurelian · · Score: 1

      Sounds to me like he's still down there.

    5. Re:"later" command ... by IpalindromeI · · Score: 1

      Unfortunately, Calvin didn't think it through. If 8:30 Calvin had the homework finished, 6:30 Calvin would have taken it. 6:30 Calvin would go back to his own time, and at 8:30 he would be visited by 6:30 Calvin, who would take the homework! He wouldn't have it to turn in, anyway.

      --

      --
      Promoting critical thinking since 1994.
  16. Re:No, it's *not* Moolenaar by Hal_Porter · · Score: 5, Funny

    Umulated is when you emulate an umlaut on an pure ASCII system by replacing ü with ue. Or ö with oe.

    #ifndef READER_IS_GERMAN

    An example
    E.g. Göring -> Goering, or Führer to Fuehrer.

    #else

    // can someone else think of some examples that don't make German's spit their coffee?

    #endif

    --
    echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
  17. When Pressed For Time... use VIM by chub_mackerel · · Score: 5, Funny

    FTFA:

    I can easily take the document to a point 10 minutes back by using the command :
    :earlier 10m
    Or for that matter, move to a point 5 seconds ahead by using the command:
    :later 5s

    AWESOME! Need to finish writing a paper? Normally take about 2 hours? Just type in

    :later 2h

    No muss, no fuss.

  18. Woohoo: Eight Megabytes And Continuously Swapping by Anonymous Coward · · Score: 0, Funny


    Hmmm, hang-on, that doesn't sound as bad-ass as it did in the nineties.

  19. Old dog... by Anonymous Coward · · Score: 0

    I use VIM every day and never use any of it's advanced features, I use the same basic VI features I learnt many years ago. Vim's syntax highlighting amd peren matching are cool, but these are on by default. The most advanced I get is trying to make tabs display and save as 2 spaces, why anybody using an 80x24 terminal wants 4 space indents is a total mystery to me. Then there's that recording (q) thing I slip into about 5-6 times a day, is this macro recording or something and can I disable it or remap the keys?

    1. Re:Old dog... by cortana · · Score: 1

      q{0-9a-zA-Z"} Record typed characters into register {0-9a-zA-Z"}
                                                      (uppercase to append). The 'q' command is disabled
                                                      while executing a register, and it doesn't work inside
                                                      a mapping. {Vi: no recording}

      To get escape from it, just press q again:

      q Stops recording. (Implementation note: The 'q' that
                                                      stops recording is not stored in the register, unless
                                                      it was the result of a mapping) {Vi: no recording}

    2. Re:Old dog... by Lord+Bitman · · Score: 1

      2 spaces isnt enough to be worth it- just hit spacebar twice, damnit.
      People who set their ts to 8 scare me.

      --
      -- 'The' Lord and Master Bitman On High, Master Of All
    3. Re:Old dog... by Anonymous Coward · · Score: 0

      I do indent with 2 spaces, the problem is when I'm editing someone elses code. I normally replace replace \t with 2 spaces before editing but that doesn't help because most tabbers mix tabs and spaces at random, Arghhh.

  20. While it may be free by also-rr · · Score: 5, Informative

    It is also charity ware. The website asks for donations to a charity that helps children in Uganda.

    1. Re:While it may be free by smilindog2000 · · Score: 1

      One day, after I make my millions, that add is going to kick in... somebody in Uganda is no longer going to be poor.

      --
      Beer is proof that God loves us, and wants us to be happy.
    2. Re:While it may be free by Anonymous Coward · · Score: 0

      1. Move to Uganda

      2. Wait for smilindog2000 to make millions.

      3. Wait some more...

      4. Still waiting........

      5. ???

      6. Profit!

  21. Default mode by jez9999 · · Score: 0, Flamebait

    Does Vim still default to starting in command mode? I suppose it does. For me, this is the biggest damn problem with it. It's a text editor, it should start in insert mode like every other editor. Pressing some key to start typing is bloody annoying, then pressing Esc to insert commands is also annoying. Ctrl-sequences are much better, and the default insert mode means I can do simple text editing and slowly learn other commands of the editor. To be honest, I also find Vim's shortcuts extremely unintuative. Want to go to the end of the document? 99% of editors, Ctrl-end. Vim, G. Sorry, that's retarded. Maybe it's based in the days of legacy terminals that didn't have arrow keys or even control sequences, but we're not in those days anymore; it's the text editor equivalent of still using a green-on-black text-only monitor.

    1. Re:Default mode by loxosceles · · Score: 2, Informative

      You can add "startinsert" to your .vimrc

      I find ctrl sequences to be a total pain. Most of the time, I want to use several commands in a row. Rather than hit ctrl+ each time, I only have to hit escape once (all sane vim users remap capslock to escape), then the commands, then i to start inserting text again.

      I just deleted my .vimrc to make sure, and ctrl-end and ctrl-home work for me. Although G and gg tend to be faster, because home and end require significant hand repositioning.

      Any other complaints?

    2. Re:Default mode by swordgeek · · Score: 3, Informative

      Sucks to be you.

      I work on dozens of modern, high-end systems that don't have arrow keys. In fact, the only access to many of them is through an amber-on-black text-only monitor (hey, we've evolved from green on black! :-).

      If you don't like vim, fine--there are those other 99% of editors that you can choose from. However, that's not a valid reason to change it from what it was designed for (or at least what vi was designed for) and in the process piss off the people who use it the way it is.

      In short, don't try to change MY editor to suit YOUR desires. -g may be an unintuitive way to get to the end, but you can do it without having to move away from the home-row on the keyboard, it works on all terminals, and 1-g to get to the top of the file or 341-g to get to the line that some config file parser told you was the source of your error is a lot more consistent and efficient than having different keystrokes for each function, and having to scroll to a specific arbitrary line.

      It's not a friendly editor. It's an efficient and universal editor.

      --

      "People who do stupid things with hazardous materials often die." -- Jim Davidson on alt.folklore.urban
    3. Re:Default mode by StonePiano · · Score: 1

      Does Vim still default to starting in command mode? I suppose it does. For me, this is the biggest damn problem with it. It's a text editor, it should start in insert mode like every other editor...

      To be honest, I also find Vim's shortcuts extremely unintuative.


      Ahh, it's so cute to hear such fussing.
      vi is not intuitive at all. It is learned. But when you really think about it, isn't all intuition learned?

      vi is unique, and therefore intuition learned in other environments is unlikely to help here. There are some notable exceptions to this, like regular expressions. If you've learned regexes elsewhere, that will help you in vi.

      However, vi is not trying to be like other editors. It's successfully being many things, powerful, versitile, efficient, but it is not trying to follow the crowd.

      99% of editors, Ctrl-end. Vim, G. Sorry, that's retarded.

      No, that's learned.

    4. Re:Default mode by Waffle+Iron · · Score: 2, Insightful
      Want to go to the end of the document? 99% of editors, Ctrl-end. Vim, G.

      In vim, Ctl+End does go to the end of the document. All of the other arrow key motions work like you would expect as well.

      Does Vim still default to starting in command mode?

      It starts in command mode probably because you almost always need to move the cursor before you resume editing a file. Command mode gives you dozens of powerful commands to navigate to where you need to go in a couple of keystrokes instead of just banging on the arrow and Pgup/Pgdn keys like a monkey with RSI.

    5. Re:Default mode by TheBogBrushZone · · Score: 5, Informative
      Does Vim still default to starting in command mode? I suppose it does (...) It's a text editor, it should start in insert mode like every other editor.

      It has something called 'Easy mode' for those who dislike the mode distinction or just want to use a dubmed-down editor interface. And why should starting in insert mode be the 'right' thing to do just because other editors do it? 99% of the time when I first open a text file I don't want to start inserting text. I want to navigate somewhere, usually by searching for a string or a line number.

      Pressing some key to start typing is bloody annoying, then pressing Esc to insert commands is also annoying.

      You seem to be very easily annoyed. Use vi or ViM for a while and the dual mode system becomes second nature and you miss it in other applications.

      Ctrl-sequences are much better, and the default insert mode means I can do simple text editing and slowly learn other commands of the editor.

      I don't see any major disadvantage here. You can do the same with ViM. All you need to start with are 'i', 'ESC' and 'ZZ'. The cursor keys and most of the navigation keys work in the same way as other editors until you learn to use the more advanced navigation available.

      To be honest, I also find Vim's shortcuts extremely unintuative. Want to go to the end of the document? 99% of editors, Ctrl-end. Vim, G. Sorry, that's retarded.

      Did you actually try doing that in ViM? CTRL-END works just the same as G. Has done for a long time. And why should using one arbitary key combination be more 'retarded' than another? CTRL-END could just as correctly be used to terminate the application or insert the letters 'E', 'N' and 'D'. You are entitled to your opinion but it's just arrogance to assume your interpretation is the only valid one.

      Maybe it's based in the days of legacy terminals that didn't have arrow keys or even control sequences, but we're not in those days anymore; it's the text editor equivalent of still using a green-on-black text-only monitor.

      It's called Vi iMproved. It takes the features that people found useful with vi (and its predecessors) with newer features added (not that the Control key you seem to have an obsession with is exactly a cutting-edge invention). Most developers I know, myself included, prefer ViM because it contains a wealth of practical features and a fast, efficient user interface for those with the patience to learn a little and get past the preoccupation with Microsoft-prescribed keyboard shortcuts.
      --
      And behold, a command prompt and he who sat upon it, his name was shutdown and -h 3:11 followed with him
    6. Re:Default mode by Anonymous Coward · · Score: 0

      Lets say you need to fix a syntax error on line 327 of an existing file. Starting in command mode you simply type ":327" and your cursor is moved to the correct line. That's typically my first command in any session of Vim. (Perhaps I make too many errors, or perhaps I remember the general area where I was last editing). Either way, it seems perfectly logical that the editor starts in command mode. It saves me the extra key press.

    7. Re:Default mode by Atzanteol · · Score: 1
      Does QWERTY make sense? Does Dvorak make sense (the key layout, not the man!)? Think of using Vi(M) like learning to type again. At first things are confusing and difficult to find. But after a short time things become second nature.

      But if you don't like it then quit yer bitching. Use something else...

      --
      "Ignorance more frequently begets confidence than does knowledge"

      - Charles Darwin
    8. Re:Default mode by epine · · Score: 2, Informative


      My first serious use of vi was under OpenBSD 2.6 and I forced myself to become relatively proficient because I recognized that vi was the universal reference point for console administration. For creative work (writing code, documentation) I slogged through the emacs learning curve and eventually found a pleasant comfort level, though never equalling my old proficiency with Brief under MSDOS. Sometimes I manage to get twenty powerful psgml-mode commands embedded into my fingers, but they are soon gone again when I'm no longer working with those document types. I'm one of those people that never recovered from the CTRL key being displaced by the lawyers and losers CAPSLOCK key. As far as I'm concerned, all the lawyers out there writing license agreements should stick the 40 column upper-case only Apple ][. That's about the speed that the legal profession cleans up their own messes anyway, but I digress.

      In my view the problem with vi as a universal editor is that the rules for leaving insert mode are *not* universal. Under OpenBSD 2.6, almost any use of the arrow keys breaks you out of insert mode. Other versions of vi will leave you in insert mode within some nearby region of the inserted text region, but break you out if you move further away.

      Modes are bad enough to begin with, though I'm willing to live with a mode or two where there is a sufficient pragmatic justification. What I'm not prepared to contend with on a daily basis are inconsistent rules regarding magic-mode switches as an unintended/unexpected consequence of common actions (e.g. cursoring around).

      Nor am I prepared to memorize and apply inconsistent commands to disable or override inconsistent mode switches on a per system, per host, per revision, per version, per day-of-the-week basis. I'd rather wrangle with the hopelessly misplaced CTLR, ALT, and Mr Bill keys.

      Perhaps vim has defeated the mystery mode switches associated with cursor actions. But my purpose in learning basic vi was to have a consistent editor available on any system I might need to use, not just a consistent editor when an ideal flavour of vi happens to be installed, so it's worthless to me.

    9. Re:Default mode by Lord+Bitman · · Score: 1

      1) The most frequently used key ("go to normal mode") is the furthest away from the rest of the keyboard. "You can remap it to capslock!" -- does capslock send things to the terminal? Does the ability to pass global all-application-effecting configurations into an unrelated subsystem excuse poor usability decisions? (insert unrelated MDI debate here)
      2) The cursor position in normal mode is one-behind the cursor in insert mode, so if you switch between normal and insert mode, you'll wind up moving backwards. (Workaround: use "append", except you're not trying to append to where you werent, you're trying to insert to where you were)
      3) Because keys are not translated from their terminal sequences before being remapped, you can't remap the escape key itself (as that makes all keys which produce an "escape" character break)

      I use Vi/Vim all day every day, but sometimes it really pisses me off :)

      --
      -- 'The' Lord and Master Bitman On High, Master Of All
    10. Re:Default mode by andersa · · Score: 0

      Right on!

    11. Re:Default mode by TheRaven64 · · Score: 1
      It starts in command mode probably because you almost always need to move the cursor before you resume editing a file.

      True with vi, but vim starts me off where I last edited the document, which is usually where I want to edit it next as well.

      --
      I am TheRaven on Soylent News
    12. Re:Default mode by zsau · · Score: 1

      Just to let you know, it's not actually 'Vi iMproved', but 'Vi IMproved', and the correct capitalisation is 'VIM', not 'ViM'; or at least, if you load it with no files it announces itself as 'VIM - Vi IMproved'.

      I'm being picky, but camel case has been known to make people's eyes fall out. (I'm also exaggerating.)

      --
      Look out!
    13. Re:Default mode by archen · · Score: 1

      For #1 you can also use ctrl-c, or ctrl-[ (which is the escape sequence). If you're going to remap the capslock key you should remap it to ctrl IMHO.

    14. Re:Default mode by pAnkRat · · Score: 1

      Correct, in this day and age, it is very uncommon to see an application/editor which does not have the abbility to remap keys it uses.

      answer to 2)

      Not quiet, this might be because you are misinterpreting the cursor position, the cursor block covers one character, insert/append create scharacters on the corsor boundaries (left for insert, right for append)

      I use vim for all text/config file editing, but as a java developer, I use eclipse for java.
      I do use vim a lot for html and template files.

      --
      we need an "-1 Plain wrong" moderation option!
    15. Re:Default mode by k8to · · Score: 1

      Having used vi for some 15 years now, I can say that there is no such confusion. In classic vi setups, the cursor keys just did not work. In modern vi setups, you should use vim. Your mistake was to use a non-vim version of vi in a modern context. In other words, the problem you describe is limited to OpenBSD.

      There's really no reason to avoid vim. It's easy to install and runs on whatever platform you happen to be using. I have used it on AmigaDOS, BeOS, NeXTstep, MS-DOS, Win95, WinNT4 and WinXP, FreeBSD, SunOS (and solaris), Linux, and MacOSX. It worked consistently and confidently on every one of these platforms, regardless of the stupidity of the platform. Why would you ever want to use some half-baked BSD-vi reimplementation?

      --
      -josh
    16. Re:Default mode by guitaristx · · Score: 1
      Does Vim still default to starting in command mode? I suppose it does. For me, this is the biggest damn problem with it. It's a text editor, it should start in insert mode like every other editor.
      You're half right, Vim is a text editor. However, it shouldn't do anything like every other editor. Vim works differently because it's supposed to work differently.
      Pressing some key to start typing is bloody annoying, then pressing Esc to insert commands is also annoying. Ctrl-sequences are much better, and the default insert mode means I can do simple text editing and slowly learn other commands of the editor. To be honest, I also find Vim's shortcuts extremely unintuative. Want to go to the end of the document? 99% of editors, Ctrl-end. Vim, G. Sorry, that's retarded.
      Perhaps you're "retarded" for failing to ask "Why does Vim do that?" Again, Vim is supposed to work differently. Let's say you want to perform a regex pattern replacement on all lines from the one where your cursor is until the end of the file. Well, that's simple; highlight the lines using the command
      VG
      (V for Visual highlight by line, and G, as you complained about, to go to the end of the file). Now, let's put that together with a pattern replacement:
      VG:s/that's retarded/I'm too lazy and closed-minded to look beyond my own lack of understanding to appreciate software that's been tried and tested for decades/
      That replaces all instances of "that's retarded" with "I'm too lazy and closed-minded to look beyond my own lack of understanding to appreciate software that's been tried and tested for decades". As a bonus, when you use regex pattern replacement, Vim will also automatically mark all places in the file that match the search pattern so that you can easily navigate through them using 'n' and 'N'. Wasn't that fun? For bonus points, you can go figure out why it's easier to modify a macro stored in a named buffer if that macro consists of printable characters instead of CTRL- sequences.
      Maybe it's based in the days of legacy terminals that didn't have arrow keys or even control sequences, but we're not in those days anymore; it's the text editor equivalent of still using a green-on-black text-only monitor.
      Vim recognizes arrow keys quite well. The Windows port even behaves reasonably well with your standard CTRL- sequences, too. I know this is /., but perhaps you should keep your criticisms to yourself until you've made a reasonable effort to determine why those "retarded" things work as they do.
      --
      I pity the foo that isn't metasyntactic
    17. Re:Default mode by pongo000 · · Score: 1
      In my view the problem with vi as a universal editor is that the rules for leaving insert mode are *not* universal. Under OpenBSD 2.6, almost any use of the arrow keys breaks you out of insert mode. Other versions of vi will leave you in insert mode within some nearby region of the inserted text region, but break you out if you move further away.


      Well, therein lies your problem -- those nasty arrow keys! Banish them from your repertoire of vi commands, and all will be right with your world.
    18. Re:Default mode by Dirtside · · Score: 1
      In my view the problem with vi as a universal editor is that the rules for leaving insert mode are *not* universal. Under OpenBSD 2.6, almost any use of the arrow keys breaks you out of insert mode. Other versions of vi will leave you in insert mode within some nearby region of the inserted text region, but break you out if you move further away.

      What the hell are you talking about? I've been using vim for seven years now, and I've never even heard of that behavior, let alone had it happen. The only way I know of to leave insert mode is to hit ESC.

      Are you talking about some old, weird legacy version of vi from ye olden days?
      --
      "Destroy science and religion. Science would re-emerge exactly the same; but not religion." - Penn Jillette, paraphrased
    19. Re:Default mode by namekuseijin · · Score: 1

      you can always have tons of CTRL+META+ALT-SHIFT schizofun with Emacs. :)

      or you can have your basic and featureless CTRL-C/CTRL-V fun and mouse-select with the many editors following the notepad school...

      I want the powerful features and easy-typing of vi-like editors...

      --
      I don't feel like it...
    20. Re:Default mode by Anonymous Coward · · Score: 0

      > It's a text editor, it should start in insert mode like every other editor.

      I have found that about 90% of the time, I am using vim on an existing document, and the very first thing I need to do is to navigate to the place where I will making changes. So for me, starting in command mode is helpful 90% of the time.

      > Ctrl-sequences are much better

      Sometimes I need to do extensive moving and searching within a document for a long time, to figure out the code. With other editors, I find that my left hand gets sore having to hold down the CTRL key so much. I appreciate vim's ability to let me do extensive navigation within a document with regular keystrokes.

    21. Re:Default mode by Eideewt · · Score: 1

      Doesn't VIM start you where you were last editing by default? I realize that this can be disabled, but why would you do that if it's usually what you want?

    22. Re:Default mode by Lord+Bitman · · Score: 1

      I'm not "misinterpreting" anything. VIM gets it wrong. This is undeniable, despite its being universally denied. All normal mode operations act based on the cursor being where it appears to be, all insert mode operations act based on the cursor being where it appears to be. Entering Normal Mode causes the position on which actions occur to change. Whether or not behind-the-scenes the variable involved doesnt actually change is utterly irrelevent and unrelated.

      If you're in an array of text and your cursor is as anArray[57], inserting a character should insert at position 57. Performing an operation on the current position should effect the character at position 57. Appending should effect position 58. The visual cues given by VIM insist that the cursor is at position 57 for inserting text and position 56 for operating on text. You can't defend an obviously incorrect interface with "but in the code it makes perfect sense!"

      Move your cursor to the beginning of a line (not file! Line!) and watch it behave differently from all other positions. Suddenly moving backwards isnt such a keen idea?
      With the current method, going between insert, normal and normal moves the cursor, while going between append and normal does not. While I can think of many reasons why you'd want a seperate "insert" and "append" key (that is: go into insert mode, starting to either the left or the right of the current cursor position), I can still not think of any reason why I'd want to reposition my apparent cursor (regardless of what internal states exist) before entering Normal mode.

      Your argument is flawed and doesnt take into account all the facts: Regardless of how you entered Insert mode (using i or a), the Normal Mode cursor always appears to the left of the current position (as if, by your words, one had always entered Insert mode using the Append key). By your own words, it should be obvious the cursor belongs (in that case) To The Right of the inserted text (as text has been inserted To The Left of the cursor)

      So the whole of what you have said is irrelevent, inaccurate, bunk. VIM gets it wrong, and due to processing remaps too early, it cannot be fixed in the .vimrc

      --
      -- 'The' Lord and Master Bitman On High, Master Of All
    23. Re:Default mode by Abcd1234 · · Score: 1

      1) The most frequently used key ("go to normal mode") is the furthest away from the rest of the keyboard. "You can remap it to capslock!"

      Screw that, rebind it to 'jj'. It's right on the home row, and I've never had a problem with it. 'course, I happen to use capslock as a third meta for use with WindowMaker, so I have other reasons for working this way.

    24. Re:Default mode by MiKM · · Score: 1
      You seem to be very easily annoyed. Use vi or ViM for a while and the dual mode system becomes second nature and you miss it in other applications
      Seriously. Only a few months after I used vi(m) for the first time, I would often type "i" and ":w" in OpenOffice and wonder for a second what the hell was wrong.
    25. Re:Default mode by crucini · · Score: 1

      That may not be where you want to edit. You could be responding to a compiler's error message.

    26. Re:Default mode by pAnkRat · · Score: 1

      I don't think I follow you correctly here, or we are using differnt vim's.

      > If you're in an array of text and your cursor is as anArray[57], inserting a character should insert at position 57

      As a test I opened vim in an xterm.
      Did an 'I 1234567890 ESC', resulting in the following screen (I have linenumbers on):

        1 1234567890

      I then positioned the cursor on the number 5, so that it 'covers' the number 5 completely.
      This could translate to your anArray[5] if you want.
      I then hit 'i a ESC' wich results in:

        1 1234a567890

      So the INSERT command mode switch will result in inserting/creating new characters _before_ the current highlighted cursor position, and shifting following charcters to the right.
      The APPEND command inserts/creates characters _after_ the currently highlighted cursor position.

      So in my examle an 'a a ESC' results in:

        1 12345a67890

      I cannot find anything wrong with that.

      On a site note, I often get confused by the difference in the p and P command to paste a buffer,
      if the buffer is a complete line, the behaviour is obvious, but if the buffer only contains some words,
      it often seems to paste in an illogical location.

      --
      we need an "-1 Plain wrong" moderation option!
    27. Re:Default mode by Lord+Bitman · · Score: 1

      Did you stop reading the post after that one note? That was half of the example. Standing by itself it is perfectly acceptable.
      I was talking about an inconsistency.

      If you are /at/ position 5 and insert, it inserts "at" position 5 (that is, before the text '5', which is moved to position 6). Meanwhile, the cursor is moved forward so the next "insert" would occur at position 6. Because when you entered insert mode from position 5 it allowed you to insert characters at position 5, it stands to reason that now that you are inserting characters at position 6 you should stay at position 6 when you re-enter normal mode.
      Now re-enter normal mode. You find yourself at position 5 again. Wtf?

      It can probably be assumed from this (I havent actually read the code) that the so-called "Insert" mode is actually a "move backward one, then Append" mode.
      I've seen this error excused by "but if we did it that way, the cursor would need to be handled differently at the end of the file than anywhere else, otherwise the cursor would be on some "virtual" non-existent character!"
      This is a common excuse, and completely false. If you insert a new line and add no characters, moving between insert and normal modes behaves just as it should in any other circumstance- the cursor does not move. There are no characters on the line, so by the logic given in defending the wrong way, the cursor must be on some non-existant "virtual" character. Either way, does a flawed implementation ever excuse a flawed interface? [hint: it's an anagram of "on"]

      VIM supports about 6378 options which allow the editor to behave a little less like vi, which is nice, but can be annoying. This is not one of them.

      --
      -- 'The' Lord and Master Bitman On High, Master Of All
  22. Re:Its been decided. by Anonymous Coward · · Score: 5, Funny
    EMACS ? you mean Escape Meta Alt Control Shift ??
    Nope, as in Generally Not Used / Except by Middle Aged Computer Scientists.
  23. Re:No, it's *not* Moolenaar by truedfx · · Score: 1

    Dutch uses umlauts like that. See for example "überhaupt", which while originally German can be found in Dutch dictionaries. And if you're referring to words such as "poëzie", that's a trema, not an umlaut.

  24. Vim schwim - give me Notepad2 or give me death. by melted · · Score: 0

    Is there at least one editor in Linux that closely mimicks the feature set (and hotkeys) of Notepad2 (http://www.flos-freeware.ch/notepad2.html), but in console mode? That's all I ever use on Windows these days. I know there's SciTe, but I want the same thing _in console_

    1. Re:Vim schwim - give me Notepad2 or give me death. by edxwelch · · Score: 1

      Does it mimic the non-recognition of Linux style linefeeds too? That would be very handy on a Linux box.

    2. Re:Vim schwim - give me Notepad2 or give me death. by ajs318 · · Score: 1

      I reluctantly got into vi back in the early 1990s, after being spoilt by the wonderful text editors available on VAX/VMS. Then I promptly forgot all about it -- never even had a fling with ELVIS on MS-DOS -- until discovering Linux sometime in 1999 or 2000. My favourite console editor used to be AEE; then I discovered pine, and hence pico. Now I can't live without nano. There's even a vi command built into BusyBox.

      --
      Je fume. Tu fumes. Nous fûmes!
    3. Re:Vim schwim - give me Notepad2 or give me death. by Anonymous Coward · · Score: 0

      If you like notepad2 you should try Notepad++.

      It's my current fave text editor for 'doze.

    4. Re:Vim schwim - give me Notepad2 or give me death. by corychristison · · Score: 1
      Now I can't live without nano.
      I cannot agree more. When I first came to linux [2-3 years ago] I started off with SuSE 9.1 Personal. I've always been a fan of command line and command line text editing. I tried after many failed attempts at learning Vim and/or Emacs with no avail.
      I have recently switched to Gentoo, and during the installation process the Manual introduced me to nano and I have to say it's the easiest command line editor to learn. I can now ssh into my server and actually do something! I have no issues with Vim or Emacs, but for what I need, nano does the job perfectly. :-)
  25. Prime Difference between Linux and Windows Users by MickDownUnder · · Score: 4, Funny

    Windows Users DON'T get excited about text editors !

  26. Re:Prime Difference between Linux and Windows User by MickDownUnder · · Score: 1

    But I hear Vista has a new updated version of notepad..... woa... can't wait to get my hands on that baby !!

  27. Re:No, it's *not* Moolenaar by Scarblac · · Score: 1

    Well yes, there are words that use umlauts, but they're imported words, and there are tremas which aren't actually umlauts, which is why I said they're not used "like that". We use a thing that looks like two dots on top of a letter, but they're not the same as umlauts.

    Thanks for illustrating my point, not that this whole thread really needs all these posts. Sheesh :-)

    --
    I believe posters are recognized by their sig. So I made one.
  28. Re:Prime Difference between Linux and Windows User by include($dysmas) · · Score: 1

    thats because windows users cant read. (joking)

  29. Re:Prime Difference between Linux and Windows User by Anonymous Coward · · Score: 0

    Actually windows users are far more advanced using things like ultraedit. Vi lol.

  30. Increasingly unfortunate name by swordgeek · · Score: 4, Interesting

    While I have no doubt that vim is a powerful and useful editor, it's increasingly large laundry-list of features is dragging it increasingly farther away from both the functionality and the philosophy behind vi. Keep in mind that vi is a visual superset of ex. As such, it was designed as a visual text editor that works on any cursor-addressable terminal. All functions are accessible from the home-row of keys, with the exception of the esc key. Editing features use regular expressions. In short, it's the ideal editor for the touch-typing administrator who can count on it working under fairly rough circumstances.

    As a sysadmin, I have to ask how features like pop-up spellcheck and "omini" completion will help me edit config files on a vt102 terminal, (OK, my hard terminal is actually a vt520). vim is basically becoming a graphically-dependent editor that happens to use a similar editing structure to vi. Yes, I know about vi compatability mode, but that just throws out most of the last 'n' years of development.

    My point? Not that development should be stopped, or that these goll-durned newfangled features ain't right, but that I wish it wasn't always trumpeted as "vi--but better." Most of the 'better' part of is are things that point away from vi.

    --

    "People who do stupid things with hazardous materials often die." -- Jim Davidson on alt.folklore.urban
    1. Re:Increasingly unfortunate name by bobintetley · · Score: 1

      As a sysadmin, I have to ask how features like pop-up spellcheck and "omini" completion will help me edit config files on a vt102 terminal, (OK, my hard terminal is actually a vt520). vim is basically becoming a graphically-dependent editor that happens to use a similar editing structure to vi. Yes, I know about vi compatability mode, but that just throws out most of the last 'n' years of development.

      Those features are aimed at people using vim as a programming editor (although I use it for emails via mutt as well along with just about everything). Also, the article showed gvim, rather than plain vim (which is entirely curses based with the exact same featureset).

      It sounds to me like vim is overkill for what you're doing anyway (way too bloated and packed with unnecessary features for config file editing) - why not stick to a pure vi, like nvi?

      My point? Not that development should be stopped, or that these goll-durned newfangled features ain't right, but that I wish it wasn't always trumpeted as "vi--but better." Most of the 'better' part of is are things that point away from vi.

      From a my standpoint as a developer, it is vi -- but better. From a sysadmin standpoint, it's vi -- but more bloaty with useless stuff. I stick to nvi for servers since vim is just an unnecessary overhead. For day to day work though, I couldn't live without vim.

    2. Re:Increasingly unfortunate name by Nimey · · Score: 1

      If you want vi, you know where to find it.

      --
      Hail Eris, full of mischief...

      E pluribus sanguinem
    3. Re:Increasingly unfortunate name by settrans · · Score: 1
      From :help develop.txt

      VIM IS... IMPROVED *design-improved*

      The IMproved bits of Vim should make it a better Vi, without becoming a completely different editor. Extensions are done with a "Vi spirit".
      • Use the keyboard as much as feasible. The mouse requires a third hand, which we don't have. Many terminals don't have a mouse.
      • When the mouse is used anyway, avoid the need to switch back to the keyboard. Avoid mixing mouse and keyboard handling.
      • Add commands and options in a consistent way. Otherwise people will have a hard time finding and remembering them. Keep in mind that more commands and options will be added later.
      • A feature that people do not know about is a useless feature. Don't add obscure features, or at least add hints in documentation that they exists.
      • Minimize using CTRL and other modifiers, they are more difficult to type.
      • There are many first-time and inexperienced Vim users. Make it easy for them to start using Vim and learn more over time.
      • There is no limit to the features that can be added. Selecting new features is one based on (1) what users ask for, (2) how much effort it takes to implement and (3) someone actually implementing it.

      VIM IS... HIGH SPEED AND SMALL IN SIZE *design-speed-size*

      Using Vim must not be a big attack on system resources. Keep it small and fast.
      • Computers are becoming faster and bigger each year. Vim can grow too, but no faster than computers are growing. Keep Vim usable on older systems.
      • Many users start Vim from a shell very often. Startup time must be short.
      • Commands must work efficiently. The time they consume must be as small as possible. Useful commands may take longer.
      • Don't forget that some people use Vim over a slow connection. Minimize the communication overhead.
      • Items that add considerably to the size and are not used by many people should be a feature that can be disabled.
      • Vim is a component among other components. Don't turn it into a massive application, but have it work well together with other programs.
      --
      "When I wake up in the morning I piss cryptographic excellence." - Bruce Schneier
    4. Re:Increasingly unfortunate name by namekuseijin · · Score: 1

      "omni" completion has been available for years in vim. The only difference now is that it can show all completions in a text box. This text box is available in a simple text terminal as well, but you can turn it off. It's there to please IDE-fans. The biggest change for vim7 is the spell-checking.

      just as vi was a valuable superset of ex, vim is a valuable superset of vi.

      --
      I don't feel like it...
    5. Re:Increasingly unfortunate name by gsn · · Score: 1
      I share your complaint the name is unfortunate - I like to think of vim as "vi muddled". A lot of the new stuff reeks of feature bloat but that said you can actually turn it all off in the .vimrc, or just ignore something entirely. Unfortunately, you have to drag your vimrc along with you then.


      vim is basically becoming a graphically-dependent editor that happens to use a similar editing structure to vi.

      While its true that there is some creeping feature bloat I don't think its becoming more graphically dependent. I actually like to diffrentiate between vim and gvim, which is what this article focuses on. Its important to remember that you do not actually need to use gvim at all - even the spell checking can be done in the terminal (:setlocal spell spelllang=en_us and use CTRL X s to get your happy popup list -works in the crappy windows terminal that is default with cygwin). Most of my coding is done on a remote terminal so I don't use gvim.

      If you want to avoid the feature bloat - Vector Linux came with Elvis as the vi editor so I've been using that off late and its a nice compromise. nano is a heck of a lot more new user friendly and is fine for most simple editing tasks, or writing short codes. Neither of them are very graphically dependent at all.
      --
      Reality must take precedence over public relations, for nature cannot be fooled.
    6. Re:Increasingly unfortunate name by drew · · Score: 1

      You know, if you really want vi, it's still out there, along with a number of clones which have stayed more true to the original (nvi comes to mind). Obviously there are enough people that do want these features that somebody found it to be worth their time to add them. I've seen a number of comments along the lines of "this feature makes ViM not vi- take it out!" on the ViM website, and it just seems ridiculous(*). How do features like syntax highlighting, autoindent, and multi level undo "point away from vi"?

      (*) I have seen people complain that Linux distros shouldn't be using ViM as /usr/bin/vi unless is it strictly compatible, and while I can concede that they may have a point there, they should be taking that up with the distro maintainers, not the Vim maintainers.

      --
      If I don't put anything here, will anyone recognize me anymore?
    7. Re:Increasingly unfortunate name by kisielk · · Score: 1

      You can just not compile in the features you don't want. Or run with :set compatible for that classic vi feel. Nobody forces you to use the new features.

    8. Re:Increasingly unfortunate name by Anonymous Coward · · Score: 0

      > (OK, my hard terminal is actually a vt520).

      When nothing else works... "break glass and remove vt520 terminal in case of emergency"

    9. Re:Increasingly unfortunate name by crucini · · Score: 1

      I guess I'm one of those complainers. I think typing 'vi' on a unix box should give you something that acts like vi. It's very unpleasant to find that vi acts strangely while trying to get a new box working. It's like having a tool break. Specifically, auto-indent means that if I paste lines into a file, they end up staircased.

      The points is not whether it's a good feature. The point is that vi has a specific meaning, just like ls or cat. And it's a critical tool in configuring or rescuing a system. So messing with it was a very poor decision by distro maintainers.

      I'm equally disgruntled with Gentoo's decision to only provide nano, and no vi by default.

      I think it's great that vim continues to grow as an editor, and I'll happily explore those features in my spare time, but don't force them on me.

  31. vi vs emacs by Anonymous Coward · · Score: 0
  32. Ed, man! by Anonymous Coward · · Score: 5, Funny

    Vim is nothing compared to Ed, the greatest WYGIWYG editor of all.

    http://www.gnu.org/fun/jokes/ed.msg.html

  33. Better XML support? by wfberg · · Score: 1

    One thing that could sell some of my co-workers on vim would be if it had better XML features. Nothing too fancy but at least prettyprinting and a wellformedness check. Add a few GUI things to make life easier for people using search+replace and it could well become the preferred editor (people are now making do with editpad, notepad2, xmlspy home edition, etc.)

    Fancy stuff I would like; smartly(!) adding closing tags (i.e. only if needed to make the document wellformed, skip adding a closing tag if there's one allready there), checking against DTD/schema, font size zooming using ctrl+/- and ctrl+scrollmousebutton, and of course, using XPATHs instead of/alongside regular expressions for search and replace..

    The XPATH search is why I keep hold of an old version of xmlspy professional that the company doesn't get new licenses for (suck it, new guy!).

    Now, I'm sure much, if not all of this, can be added through plugins (anyone got a list? my current xml plugin doesn't do too well at adding closing tags only when needed, and doesn't pretty print) but for my coworkers it has to be an out-of-the-box setup.exe experience..

    The earlier/later thing would be a boon to a journalist friend of mine - then again, proper autosave in microsoft word would be, too. (He has a knack for shutting down and answering 'yes' to any 'are you really sure you want to throw away a day's work?' dialogues..)

    --
    SCO employee? Check out the bounty
    1. Re:Better XML support? by cortana · · Score: 2, Interesting

      One thing that could sell some of my co-workers on vim would be if it had better XML features. Nothing too fancy but at least prettyprinting and a wellformedness check.

      :%!xmllint --format
      :%!xmlwf

      Add a few GUI things to make life easier for people using search+replace and it could well become the preferred editor (people are now making do with editpad, notepad2, xmlspy home edition, etc.)

      Point those people at gvim (or, if they don't want a modal editor, evim).

      The rest of your suggestions are more advanced and I think they fall outside of the scope of a general text editor. I'd try Emacs; it has a lot of features for understanding the semantics of an edited document and can probably do all that you describe.

    2. Re:Better XML support? by Anonymous Coward · · Score: 0

      What vim needs is a module that automatically detects XML formatting. It would pop up a little animated mascot that says: It looks like you're trying to use XML to solve a problem. May I suggest you try a different approach?

    3. Re:Better XML support? by SpinyNorman · · Score: 1

      If you want a decent and *ahem* modern programmer's editor for windows, then try GWD edit :

      http://www.gwdsoft.com/

      Free 30 day trial then $29.99 shareware. Well worth the money.

    4. Re:Better XML support? by Skrynesaver · · Score: 1
      a few GUI things to make life easier for people using search+replace

      You must be joking. Regex search and replace is not powerful enough?
      %s/^\([^:]\)\(:[^$]*\)/\1 is in this file, and this is their record \1\2/
      Show me any GUI that could make the above (admiditly pointless) substitution more efficiently using a GUI and I'll eat my lunch!

      --
      "Linux is for noobs"-The new MS fud strategy
    5. Re:Better XML support? by wfberg · · Score: 1

      The fact that you have to press [ESC]:%s is what turns off people, even if they usually are pretty intelligent, they don't see the value of learning a few keystrokes to use a superior editor.

      The really odd thing is that instead, they use Editpad, which does have regexps (which they don't use) but also fucks up keystrokes for find/replace (F3 does something completely different, Ctrl+F doesn't work, etc.. I think you need to press F5 or F8)

      --
      SCO employee? Check out the bounty
    6. Re:Better XML support? by Anonymous Coward · · Score: 0

      http://www.vim.org/scripts/script.php?script_id=39 This is a script that does % matching over HTML/XML tags. In other words when your cursor is over a tag and you hit % it will move to the matching tag. VERY helpful for XML editing. Also, if you select all text (ggVG) then hit = Vim will fix indenting, another one I use quite a bit when editing XML.

  34. Anybody who has used any OS? by zaydana · · Score: 1

    Anybody who has used Linux or any other OS would be aware of the very powerful and feature rich text editor Vi

    Sorry to be a smartass, but i'm pretty sure most windows users would not have the foggiest clue what the "powerful and feature rich text editor Vi" is :-) For all they care, somebody probably mispelled some useful word like "vice" or "vine". The only people that weren't included in the summary as being aware of Vi are people that havn't used computers, or people that have used a computer without using the OS.

    /me goes off to ask his high school aged sister about the great features of Vi

    1. Re:Anybody who has used any OS? by The+Blow+Leprechaun · · Score: 1

      Clearly then, Windows is not an OS. It must be true if the post says it.

      --
      - the Blow Leprechaun
  35. Re:Its been decided. by mjj12 · · Score: 3, Funny

    No, he means Eight Megabytes And Constantly Swapping.

    (And I even remember the days when that was a lot).

  36. Vim is great, but.. by rucs_hack · · Score: 1

    Man do I get sick of trying to close documents in other applications with :wq

    I even tried to close firefox with that a few weeks back.

    For me though, programming without vim would be horrific. I've used Vim for so many years that I probably couldn't use another editor.

    I tried Kedit, because some of my students were using it and I thought I should have a go, but I found it too krufty.

    Since 90% of my programming is console based (the other 10% being shitty text only websites created in Vim, and slightly more funky opengl, written with guess what..), I use the console mode vim a lot. Although I am partial to gvim when a gui presents itself.

    I get embaressingly lost in guis though, usually when someone is asking me to help them with something. I'm pretty much used to bash only.

    One day I may try Emacs, but once you get used to the minimalist aproach, the bloat of emacs doesn't appeal.

    1. Re:Vim is great, but.. by teslar · · Score: 1
      I tried Kedit, because some of my students were using it and I thought I should have a go, but I found it too krufty.
      Try Kate instead, if you want to. Although there'd be little point to change editors in your case anyway - never change a winning team...
    2. Re:Vim is great, but.. by Anonymous Coward · · Score: 0

      Shift-ZZ is way faster than :wq, IMHO.

  37. Re:No, it's *not* Moolenaar by moranar · · Score: 1

    Spineal Tap (The umlaut goes over the n).

    --
    "I think it would be a good idea!"
    Gandhi, about Internet Security
  38. Re:Prime Difference between Linux and Windows User by rucs_hack · · Score: 4, Funny

    'it looks like you're writing a c++ file!'

    Noooooooooooooo......

  39. Re:No, it's *not* Moolenaar by Anonymous Coward · · Score: 0

    "rueckgeld" means "change" (monetary).

  40. Forget VIM by Anonymous Coward · · Score: 0

    nvi forever.

    VIM has strayed too far from what is vi. You might as well use Emacs or Visual Studio. For those of us who prefer vi, nvi is the one.

    1. Re:Forget VIM by truedfx · · Score: 1

      nvi seems to no longer be developed, unfortunately. If it does what you want, though, great.

  41. Vim is good by jandersen · · Score: 3, Interesting

    But it is also becoming what vi was never really intended to be IMO. What makes vi such a great editor is a number of factors, such as:

    - it is small
    - it does a lot of things that are useful for editing source files
    - it is very economical with bandwidth etc
    - all commands map to keys that are found on all terminal keyboards

    If I should say anything against vim it would be that it can do too many things that are only eye candy or 'cool features'. Fortunately you can turn them off, which I always do. If you develop on several different UNIXes (and other OSes with UNIX like environments) getting used to all the extra features in vim can be a real pain, when you have to work with the classic form of vi.

    1. Re:Vim is good by anandsr · · Score: 1

      That is a good reason not to use vim, and to use emacs, or some other editor. When you work on the other systems you know that it is not that other editor, and you will make less mistakes.

    2. Re:Vim is good by settrans · · Score: 1
      If you develop on several different UNIXes (and other OSes with UNIX like environments) getting used to all the extra features in vim can be a real pain, when you have to work with the classic form of vi.
      You're right. Vim should not aim to improve on vi at all. It should only aim to be completely compatible, and not allow the user to enable extra functionality that makes them more productive, in particular because vim is locked down to only one form of UNIX.
      --
      "When I wake up in the morning I piss cryptographic excellence." - Bruce Schneier
    3. Re:Vim is good by Zathrus · · Score: 1
      it is small


      Depends on your definition of "small" I suppose, but vim w/ minimal features is reasonably small. Vim with all features enabled is small in comparison to modern HD sizes and to equivalently functioned competitors. It's also more memory efficient than those competitors.

      it does a lot of things that are useful for editing source files


      And vim does as well. In fact, it does vastly more of them, for a rather dizzying list of source (and related) files. Even if you don't use filetypes the built-in settings are helpful.

      it is very economical with bandwidth etc


      And how has this changed with vim?

      all commands map to keys that are found on all terminal keyboards


      And they still do in vim. There's not a single default bind to a "special" key. Not even an F-key (hrm, I think F1 may be Help by default, but :help works just fine. I've never used F1).

      getting used to all the extra features in vim can be a real pain, when you have to work with the classic form of vi.


      I agree, but plain jane vi is a dying breed. I've had to deal with some boxes that the admin didn't install vim on, and after a bit I went ahead and compiled it in my local directory. Not being able to have multiple changed buffers is enough to piss me off, not to mention little things like syntax highlighting.

      And yes, our code compiles on 7 different platforms currently. So I'm quite aware of what you're talking about.

      But, frankly, denying yourself of a basic tool like a good text editor is stupid, particularly when you're a programmer. It's crippling and time wasting.

      You claimed that vim is "becoming what vi was never intended to be" but you certainly haven't backed up your statements.
  42. Burn him! by kahei · · Score: 5, Funny


    Recently, Richard Stallman gave a speech in which he illustrated an academic point about programming history by quoting a guy who described vi as 'an editor spread at sword-point and which is really hard to use'.

    I think I speak for all moderate vi(m) users when I say -- DEATH and DAMNATION (in that order) to this Cardinal of the CTRL key! Needless to say my own local vim user group has dispatched assassins to kill Mr. Stallman, but this is hardly the end of the story. The fact is that a man has referred to another man who in turn expressed some often-voiced reservations about OUR EDITOR! On behalf of all editors of text everywhere, I implore EMACS users to return to the true path, lest you be burned at the stake and then go to hell, the Buffer From Which There Is No Unloading. We'll see how productive you are then, with your ctrl-meta-alt and your ELISP and your 'ring buffer', whatever THAT is.

    Peace and love to all.
    ^C
    ^X
    quit
    q
    QUIT
    exit :exit
    zz
    ZZ

    --
    Whence? Hence. Whither? Thither.
  43. Re:Prime Difference between Linux and Windows User by tehshen · · Score: 1
    You say that, but one of the great features for some editor (I can't remember its name, it was for Windows though) was that when you began a file with
    #include
    It would automatically throw you into C syntax highlighting. Or
    /usr/bin/perl
    would chuck you into perl syntax highlighting mode. It was surprisingly helpful.
    --
    Guy asked me for a quarter for a cup of coffee. So I bit him.
  44. Try :x by Anonymous Coward · · Score: 0

    :x
    is equivalent to :wq
    and becomes an automatic response.

  45. Don't... by MosesJones · · Score: 1


    I was asked this the other day. Use an IDE, it is easier than using vim, why cause yourself pain?

    Learn vi if you want to do large scale file manipulation, searching etc. But really don't bother if all you want to do is Java and Latex.

    Now if you used troff... then you should do it in vi, troff demands that you have nothing to help you and create completely incomprehensible documents to all concerned. Also if you are doing Unix admin then learn vi.

    Vi and Emacs are superb, in the same way as the Mustang from bullet is superb, that doesn't meane everyone should use them.

    --
    An Eye for an Eye will make the whole world blind - Gandhi
  46. Re:Prime Difference between Linux and Windows User by Anonymous Coward · · Score: 0
    Was that supposed to be a joke?

    The screenshots page shows a GUI around xmllint...


    xmllint --version
    xmllint: using libxml version 20626
          compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug


    Nothing wrong with ultraedit using libxml2 and friends, it's more sensible than writing their own libs. The thing is, perhaps unix people can already do everything that Ultraedit makes availiable to Windows users from the command line? Just a thought.
  47. Using vi is ultimate masochism by Anonymous Coward · · Score: 0

    You could consider vi(m) powerful only if you think Edlin is a breeze from the future. People who have work to do, instead of tinkering, have moved on to Eclipse and Visual Studio.

  48. Mine starts in insert mode by leonbrooks · · Score: 1

    urpmq -i vim-enhanced

    Name | vim-enhanced

    Version | 6.3

    Release | 21mdk

    Group | Editors

    Size | 1239458

    Packager | Olivier Thauvin [nanardon at mandriva.org]

    Summary | A version of the VIM editor which includes recent enhancements

    Description | VIM (VIsual editor iMproved) is an updated and improved version of the vi editor. Vi was the first real screen-based editor for UNIX, and is still very popular. VIM improves on vi by adding new features: multiple windows, multi-level undo, block highlighting and more. The vim-enhanced package contains a version of VIM with extra, recently introduced features like Python and Perl interpreters.

    Install the vim-enhanced package if you'd like to use a version of the VIM editor which includes recently added enhancements like interpreters for the Python and Perl scripting languages. You'll also need to install the vim-common package.

    So sayeth URPMI of the vim-enhanced version which ships with Mandriva 2006.0; and yes, it does start in editing mode, not command mode

    --
    Got time? Spend some of it coding or testing
  49. Ctrl-this Shift Meta Ctrl-that by jopet · · Score: 1

    Isn't that way of interacting with a computer just a tiny bit anachronistic? I have been working with editors for editing code since 1980 and had been using lots of editors ... from ISPF and vi over (x)emacs to IDEs like VisualC++, Netbeans or Eclipse.
    I wish that some of the more modern IDE plugins would suck less when it comes to syntax highlighting and automatic code formatting, but I do not see much place for dinosaurs like vi(m) in my daily routine any more.
    I wonder why those who still use vi not also use Wordstar as their favorite word processor? Ctr-somethings wherever you look! Or do they? :)

    1. Re:Ctrl-this Shift Meta Ctrl-that by torako · · Score: 1

      I use JOE as my general purpose text editor, because I don't have to think about key strokes there, my hands perform them without thinking. CTRL+K, CTRL+Q.

    2. Re:Ctrl-this Shift Meta Ctrl-that by gnufied · · Score: 1

      You are a short sighted fool...who should start living with dinosaurs. You say, you used Vi,Emacs both...so i will wager you don't know either of them. I code in Ruby on Linux and that too through putty...and Emacs rocks there. Tell me which IDE shall i start using for this? To certain extent I agree, if you code in Java or C#, then you may be well off using Eclipse or Monodevelop. But there are whole load of languages there and hence we have Vi or Emacs.

    3. Re:Ctrl-this Shift Meta Ctrl-that by Anonymous Coward · · Score: 0

      I use VIM, but I don't have much use for a word processor. Typically to write a letter I use VIM, aspell, enscript and ps2pdf. I've done mailshots like this using sed to insert the customer address from a text file and it probably took me less time to script than reading the macro docs for a word processor. For more complex work there's latex, docbook or css styled html printed to ps via a browser running in X and for compound graphics documents I can use scribus.

      A word processor is only ever the right tool for the job if you don't know how to use any other tools. The saying about having a hammer and everything looking like a nail, applies broadly to the majority of word processed documents and spreadsheets. Talking of dinosaurs and since you mention Netbeans and Eclipse; the writing is pretty much on the wall for Java isn't it?

    4. Re:Ctrl-this Shift Meta Ctrl-that by FreshnFurter · · Score: 1

      No they use TeX or LaTeX (for the scared) as a wordprocessor which was there before wordstar. I for one still prefer it over MS-Word. I still use it everyday. It is adapted to my idiosyncracies something which is hard in any other editor.

    5. Re:Ctrl-this Shift Meta Ctrl-that by dfghjk · · Score: 1

      Wordstar existed before TeX. It first version was available around the time Knuth began his work. TeX, furthermore, is not in any way a word processor or text editor. TeX itself is a batch program, that is unless you like to use it in interactive mode (which would make it the most hostile word processor of all time).

    6. Re:Ctrl-this Shift Meta Ctrl-that by dom1234 · · Score: 1
      Isn't that way of interacting with a computer just a tiny bit anachronistic?

      No, because it's faster.

    7. Re:Ctrl-this Shift Meta Ctrl-that by milimetric · · Score: 1

      Why would someone want to use VIM instead of Visual Studio? I don't know, VS has got a lot of productivity features that are hard to compete with. Like the way they handle XML datasets, event wiring, design code generation, etc. However, for a code editor it sucks. Like flying back and forth between lines, defining and applying macros, moving around and cutting, pasting code, nothing compares to VIM *and* EMACS. I'm just a beginner to VIM and I can already appreciate the effortlessness with which you can edit the same piece of code which you would painstakingly be clicking, dragging, right clicking, tabbing, etc. in visual studio. I think we need Visual Studio with a VIM editor, and the world would be good again. I'd like to close with a beautiful haiku:

      A bright, busy day.
      The windows watch a thousand
      wild cursors dancing.

    8. Re:Ctrl-this Shift Meta Ctrl-that by crucini · · Score: 1

      I guess it's a case of "different strokes for different folks". I've used VS (a fair bit) and Eclipse (briefly). While they have some nice productivity-boosters, I found them immensely slow and distracting. Wrestling with the GUI causes me to lose my train of thought.

      Now I use Vim, and find it easier and faster.

      As for word processors, I avoid them when possible. My company is pretty englightened (by my standards, not yours), and any documents I write are in HTML or Wiki markup. Using, you guessed it, Vim.

      (This comment composed in Vim).

  50. The elegance of vi by PhotoGuy · · Score: 4, Interesting
    Not to start an editor war, but one thing a lot of people don't "get" about vi, is how much more natural it is for touch typists. The typewriter keyboard was designed with two shift keys within easy reach. Ctrl and Alt were grafted on later for computers, and are less natural to reach (and in the early days, there were only ones for the left fingers, making things like Ctrl-T fairly hard on the hands).

    vi lets you access all of its powerful functionality using only these natural keys for typing (well, plus ESC, which is another computer addition, but its only used to flip out of insert mode, when you're done a bunch of typing, typically). Being able to move to the top of the screen by typing capital-H is a lot faster than control-whatever/control-whatever, or taking your hand off the keyboard, reaching for your mouse, aiming, and clicking. (It still amazes me that this latter approach is the one that leads the way in modern word processors, due to its obvious, but inefficient, nature.)

    This is why vi fans often joke as emacs standing for escape-meta-alt-control-shift; to a seasoned vi user, all the escapes in emacs are far more confusing than the biggest complaint about vi, it's two modes. (Reminds one of the joke about the newbie asking the TA for help; the TA says, "you do know vi has two modes, right?" The newbie replies, "yes, the one where it beeps, and the one where it doesn't.") But at the end of the day, the concept of two modes isn't rocket science to learn, and as far as all the key commands one has to learn, it's no different than emacs, where I found the key sequences far more confusing.

    --
    Love many, trust a few, do harm to none.
    1. Re:The elegance of vi by MichaelSmith · · Score: 1
      all the escapes in emacs are far more confusing than the biggest complaint about vi, it's two modes.

      Well, the command mode itself has two modes thanks to caps lock.

      My problem with vi and emacs is that they have failed to evolve in an environment where ui design really has advanced.

      vi is ok for doing quick edits in an xterm. But I still think of it as a tacked on editing mode for more.

    2. Re:The elegance of vi by Eric+Pierce · · Score: 1

      "vi lets you access all of its powerful functionality using only these natural keys for typing (well, plus ESC, which is another computer addition, but its only used to flip out of insert mode, )"

      Ahem... nice side note. Flipping out of insert mode is an integral part of the way VIM works! And using ESC to do it is a pain in the arse. Fortunately, there is the alternative of using ctrl-[ (welcome back, CTRL!) or ctrl-c (which works similar to ESC).

    3. Re:The elegance of vi by Matumio · · Score: 1
      Please note that you can have vi-style keybindings in emacs, type M-x viper-mode. I use this for years now and this is the reason why I never learned vim in depth.

      Also, I think it is crucial to have an easy-to-reach ESC key. I use CapsLock, which is pretty useless otherwise. Hell, I even have remapped the return key recently, two positions right to the "l", so I don't have to stretch my little finger further (replacing the german "ä" key).

      To those learning vim (or viper) right now for coding: do not underestimate the power of "." (repeat last action). After renaming a variable with "cw" (change word) you can move your cursor and apply the same change again elsewhere. You can still do so after starting a search. This gives a very leightweight search&replace.

  51. :later 4months !! by proudlyindian · · Score: 1

    This is a sad recycled article which featured at linux.com today around 4 months back !!!! http://www.linux.com/article.pl?sid=06/05/01/22352 42/

  52. Re:Its been decided. by archeopterix · · Score: 2, Insightful
    EMACS ? you mean Escape Meta Alt Control Shift ??
    Good point. Vi has much simpler keyboard bindings than Emacs. ZZ
  53. Re:Its been decided. by Anonymous Coward · · Score: 2, Funny

    Hey, wait! Don't just go to sleep without telling us what those bindings are!

  54. Re:Its been decided. by Anonymous Coward · · Score: 1, Funny

    I resemble that remark.

  55. Best Editor evar by Anonymous Coward · · Score: 0

    Best editor evar is mp (minimum profit)

    It's just an editor. It's tiny. Has colors and tells you what commands you have as an option. For those who still live in the 80s: Menus are cool these days, they are not an invention of the evul M$ empire. When you're in X mp also has an x interface. Everything else tastez like bloatware. Exept maybe nano which should start with the -w option by default.

  56. Re:Woohoo: Eight Megabytes And Continuously Swappi by Marcion · · Score: 1

    I have to disagree, I am a long-time Emacs user, but I cannot stand the graphical interface, it is ugly, the ugliest thing on my system.

    I use Emacs without X inside Gnome-Terminal, almost the same X functionality is provided by the Gnome-Terminal menu and without the hideous looking window.

    Gedit is beautiful, light and responsive, Emacs should look more like that.

  57. The quote at the bottom of the discussion page... by AlastairMurray · · Score: 1

    The quote at the bottom of the discussion page when I loaded was:

    "When in doubt, parenthesize. At the very least it will let some poor schmuck bounce on the % key in vi. -- Larry Wall in the perl man page"

    Seemed oddly relevant.

  58. Re:Woohoo: Eight Megabytes And Continuously Swappi by cortana · · Score: 1

    OH MY GOD, gvim takes up 13 precious megabytes, how will I cope. Of which only 3.8 MB is private dirty BTW. Such is the enormous price one has to pay for a decent UI and decent font rendering

    By contrast vim alone takes up 8.5 MB. If you don't want it, don't install gvim... what's the point in moaning on Slashdot about it?

    PS, I'd be interested to see how much memory GNU Emacs with GTK uses up Bear in mind that it still doesn't use Freetype to render the fonts, and so the memory apparantly eaten by GTK will be lower.

  59. Real men don't sit at their computers all day by StressGuy · · Score: 1

    ...pardon me while I look for my asbestos suit....

    --
    A goal is a dream with a deadline
  60. Actually, it's the only way by njdj · · Score: 4, Funny

    I know the best way to learn to use Vim is to use it every day.

    That's the only way. Getting to like vi (or vim) requires that you damage your brain, and a tool to do that is already to hand - vi. After using it every day for a while, it will seem quite natural to you that the letter "l" is the command to move the cursor to the right.

    1. Re:Actually, it's the only way by oohshiny · · Score: 2, Informative

      Well, it was natural on the terminals where it was originally developed, because those keys were marked with arrows.

      As people were using it on other terminals, they discovered that it didn't matter what the key actually said and that it was just a good key binding.

    2. Re:Actually, it's the only way by Anonymous Coward · · Score: 0

      Also, that original keyboard had the ESC key where the tab key is now. It wasn't much of a reach of the fingers to switch modes.

    3. Re:Actually, it's the only way by kybred · · Score: 1
      You'll know when you've reached a sufficient damage level when you start seeing jjjjjjkkk in Word docs that you're editing.

      What's your favorite Vim command? Mine is the . command. And ":set hls" rocks!

      One of the best things about vi/Vim is that it's available for almost any OS. It drives me crazy when a cow-orker opens up a 20M text file in Wordpad.

      kybred

  61. I was wondering who would point this out first by StressGuy · · Score: 1

    In the earlier releases of emacs, there was no GUI, it was all command line and simple commands were done by pairs of cntrl-? Meta-? and so on. At first, it was confusing to just figure out how to shut the program down.

    Don't get me wrong, it was immensely powerful, even back then....it just wasn't even remotely user-friendly until you gained some serious experience with it.

    On the other hand, vi was also a bit cryptic but did not have as many features. However, the learning curve was a lot shorter in my opinion. I used vi all through college (bachelor's portion anyways) and nroff (which lives on Linux as groff) to write my reports and resumes.

    --
    A goal is a dream with a deadline
    1. Re:I was wondering who would point this out first by jimstapleton · · Score: 1

      having learned both recently, I found VI more cryptic than emacs myself, with many of the characters for given commands to be counter-intuitive. Emacs usually requires more keystrokes for a command (though for simple editing you don't need them much), but it is (I found quicker to learn).

      Recently a friend and I had a Vi vs. Emacs argument (actually we've had it for a while), and a friend of ours decided to use a Unix like OS that we helped him with... We both tried to show him our editors.

      He likes Emacs, even though he learned VI a bit more first.

      In the end - neither is better than the other, it's all about the way your mind works, and what is natural to you.

      --
      34486853790
      Connection too slow for X forwarding? Try "ssh -CX user@host"
    2. Re:I was wondering who would point this out first by Eivind+Eklund · · Score: 1

      I also found vi to be harder to learn than emacs; I just find that it has more "UI depth". Not programming hack depth (elisp is rich), but user interface depth. The more I learn vi, the more things transparently just happen - quickly. I never got that "totally out of the way" feeling from emacs...

      --
      Doubting the existence of evolution is like doubting the existence of China: It just shows that you're uninformed.
  62. Re:Prime Difference between Linux and Windows User by Anonymous Coward · · Score: 0

    You're talking about Microsoft Word, right? It's called a word processor, dumbass, not "text editor".

    Signed,
    Windows Power User

  63. VI?!?! by Stooshie · · Score: 1

    Now that you get GUI editors that not only auto-complete code, but know about the classes within the application you are developing and can correct method calls and parameter types who the hell would use VI to write code?

    Rapid Application Development VI is not.

    I suspect that there is a little bit of protectionism going on, in that, to the lay person, watching an IT boffin do stuff in VI looks "impressive" and makes the develper look like they are doing something difficult.

    In my applcations, I always think, if a lay person is able to work out what my code does, then I've done my job as far as well-written code goes. Code should be easy to read, easy to correct and damn near obvious what it does. Using vi for programming obfuscates code and is used by those unwilling to move on.

    The only time vi should be used is if you are editing config or other admin files on a server when using telnet which should be damn close to never, on a live box at least.

    --
    America, Home of the Brave. ... .and the Squaw.
    1. Re:VI?!?! by stuntpope · · Score: 1

      Please explain how using vi obfuscates code. It injects a lot of meaningless boilerplate? (no). It forces you to write spaghetti? (no). If I "moved on", my new editor/IDE will write my beautiful, easy to read and comprehend code for me?

      By the way, vim has the ability to do code completion and the other "intellisense" you mention. Other IDEs can be more sophisticated in those areas, but I really don't get your obfuscation comment.

    2. Re:VI?!?! by Stooshie · · Score: 1

      Things like the command line interface, wrapping code and adding control characters make code more difficult to read.

      It injects a lot of meaningless boilerplate?

      Surely you mean saves you having to write code that is required, but pretty bog standard, like the basic structure of a class definition etc...

      --
      America, Home of the Brave. ... .and the Squaw.
    3. Re:VI?!?! by Christianfreak · · Score: 1

      Really? In the 10 minutes it takes for your "real" IDE to start up on a normal computer *cough*Eclipse*cough*, I've already finished half the code in vim.

      Also Vim can use ctags to know about the classes and methods in multiple files as well as the new auto-completion in vim 7. (actually you could use plugins to autocomplete before). It can do folding. It can do mulitple screens.

      One tool. One job. Web development = 2 firefox tabs, a console window with the mysql shell up and two consoles with vim, and sometimes GiMP on another desktop to edit a graphic or two. Everything completely accessable from shortcut keys and it all runs faster than a single file loaded in Eclipse.

    4. Re:VI?!?! by stuntpope · · Score: 1

      The command line interface makes code no more hard to read than toolbars, icons, and side panels do. Wrapping code is optional and as I recall not set as default (if it is, :set nowrap fixes that). Adding control characters? Maybe if you open a windows-format file in unix mode and you see a bunch of ^M line endings. Where else? :set list is not typically set as default behavior.

      When opening a file in vi presents you with nothing but the text (similar to a printout), how can you say that vi makes the program unclear or difficult to read? Pick an editor or IDE you like and can be proficient and productive with, but don't tell me that opening, say, a Perl file, with vi will obfuscate it any more than it already is ;-P

    5. Re:VI?!?! by Anonymous Coward · · Score: 0
      Surely you mean saves you having to write code that is required, but pretty bog standard, like the basic structure of a class definition etc...

      There are CLI-based editors that can do that. For example, I do that all the time in Emacs using the JDEE plugin.
    6. Re:VI?!?! by Anonymous Coward · · Score: 0

      I use Vi in conjunction with Visual Studio. It's pretty common for me to have a Vi window open that I paste VS code into for repetitive changing or regex work and then paste it back into VS. VS sucks for repetitive work.

      But that might just be because I've only been using VS for 6 months and Vi for 10 years. There could be ways of making VS do what I want quickly, but I haven't figured them out yet.

      Anyway, I like having two modes and I like moving around with hjkl.

    7. Re:VI?!?! by dom1234 · · Score: 1
      Now that you get GUI editors that not only auto-complete code, but know about the classes within the application you are developing and can correct method calls and parameter types who the hell would use VI to write code?
      Vim 7 also does it.
      Rapid Application Development VI is not.
      No, indeed, it's a text editor. But it can make part of that "rapid application developement" you are talking about.
      [...]watching an IT boffin do stuff in VI looks "impressive" and makes the develper look like they are doing something difficult
      I do save hours using Vim. Those hours are the result of half-seconds saved, multiplied by thousands of repetitions of short commands.
      Using vi for programming obfuscates code
      The only way I can imagine an editor having an impact on clarity of code is that one editor's lack of power could discourage someone from taking the time to formatting code in a clear way. Vim only eases that.
      The only time vi should be used is if you are editing config or other admin files on a server when using telnet which should be damn close to never, on a live box at least.
      I don't know about Vi, but the article is about Vim. Maybe you did not try Vim ?
    8. Re:VI?!?! by Anonymous Coward · · Score: 0

      I can edit in vi faster than you can in any other editor. Period.

      It's got a steep learning curve with a tremendous payoff.

    9. Re:VI?!?! by milimetric · · Score: 2, Insightful

      I agree that knowledge of classes in your application is a good thing. However the following "features" of Visual Studio .net 2003 are "bad" things:

      - automatic removal of wired up events from your code when it encounters certain problems (designer loaded without a proper compile, and sometimes just plain random)
      - reformatting of HTML code (muffled scream) even when you turn off all reformatting code

      I could go on and on with problems of Visual Studio which you wouldn't see unless you're working on a BIG application. VI shouldn't be used as a substitute for Visual Studio, I agree. But it Should be used as an editor inside Visual Studio. As far as laying out code, there's nothing better than VI. It doesn't obfuscate code, a silly archaic programmer obfuscates code. VI is perfect for hardcore editing and when coupled with Visual Studio's intellisense and code generation tools, it kicks ass.

  64. Vim vs Emacs: Which is better? by Anonymous Coward · · Score: 1, Insightful

    I use both Vim and Emacs, and both have advantages.

    Emacs: You can run a shell-like process inside the editor, which leads to really, really cool things like editing code in one buffer, and then sending that code into a running interpretor in another buffer. This allows something like "visual" debugging, only in a proper editor.

    Vim: If you know how to touch-type, vim just has the most comfortable (in terms of avoiding things like repetitive strain injury) keyboard layout. It really beats stupid CTRL- or META- something combinations, which can give you pains in your wrists if you use them a lot.

    Anyway, enough objectivity. Flame on!

  65. Menus? by Titusdot+Groan · · Score: 1
    Cool! Vim 7.0 -- I'm still using 6.4 ...</thoughtbubble>

    By navigating to Tools -> Spelling -> "Spell check on", you can make Vim display all the mis-spelled words in your document.
    Aiiieeeeeeee -- in what level of hell does vim have menus! Linuxers, we hates them we does!
    1. Re:Menus? by TheRaven64 · · Score: 1
      If you aren't using gvim (which I never really got on with), then you just do :set spell. I have the following lines in my .vimrc:
      set spell hi SpellBad ctermfg=Red ctermbg=White cterm=undercurl
      This turns on spelling and makes spelling errors a more readable colour on a black-on-white terminal.
      --
      I am TheRaven on Soylent News
  66. Anybody who has used Linux or any other OS by GreenPenInc · · Score: 1

    Anybody who has used Linux or any other OS would be aware of the very powerful and feature rich text editor Vi.

    The remaining computer users, however, are left in the dark I'm afraid.

  67. love/hate of vi by mapkinase · · Score: 1

    I love vi. There is not a single UNIX machine in the world that does not have it. I can go to Timbuktu, login to their sole Indy box and start editing right away.

    I hate vi. To be precise, I hate that it changes. I hate new features. I am not Luddite, I am just a weak person, who succumbs to new features of vi very easily. And when it happens, vi looses its fundamentalist virginity. I start enjoy navigating between lines using arrow keys in the edit mode on my Linux box, but when I switch to my Solaris server, this feature does not work anymore, I get ugly "A" and "B" lines inserted between the beautiful lines of code. This sucks.

    The advantage of vi is its "standard universality". That means availability everywhere of the same set of features.

    I am adding to it "absence of non-universal features". Every time you innovate vi, you are subjecting new users of vi to the very thing that vi is against - universality. I ask you: do not spoil the users, do not lie to them with your new features.

    The development of vi should be very slow and the most emphasis should be given to the universality of the changes, and to the fast propagation of those changes if you really really have to make those changes.

    The best solution would be to freeze any new features of vi and make sure that all the old features are available on every single UNIX machine in the world. :w!
    ZZ

    --
    I do not believe in karma. "Funny"=-6. Do good and forbid evil. Yours, Oft-Offtopic Flamebaiting Troll.
    1. Re:love/hate of vi by Anonymous Coward · · Score: 0

      Use nvi.

    2. Re:love/hate of vi by Anonymous Coward · · Score: 0

      That's the beauty of TeX - you know it's never going to change.

    3. Re:love/hate of vi by Anne+Thwacks · · Score: 0
      There is not a single UNIX machine in the world that does not have it. I can go to Timbuktu, login to their sole Indy box and start editing right away

      If you can find a local diesel vendor for the generator!

      However, every single Unix machine, and each user login, is sure to have the key mapping for vi programmed differently, so you still need to use edt to be productive.

      --
      Sent from my ASR33 using ASCII
    4. Re:love/hate of vi by mapkinase · · Score: 1

      TeX is not an editor.

      --
      I do not believe in karma. "Funny"=-6. Do good and forbid evil. Yours, Oft-Offtopic Flamebaiting Troll.
  68. Real men of genius by cabazorro · · Score: 4, Funny

    Real men of genius
    Today we salute you Mr. vi editor coder guy.
    Mr. vi editor coder guy!
    You type at lightning speed while while the rest of us squint our eyes in wonder.
    What the hell you just did to my file!?
    You scour through code like a red-hot knife on butter
    now my file looks funny in Notepad!!
    Thanks to you Mr. vi editor coder guy, you remind us, it's all about the code!
    Mr vi editor coder guy!

    --
    - these are not the droids you are looking for -
  69. TextMate! by Per+Wigren · · Score: 1

    As much as a Vim-fan I am (I really am!), I really want to see something like TextMate for Linux! It's hard to describe what makes TextMate so great, take a look at the Screecasts on the homepage and on the Ruby on Rails homepage to get an idea...

    I use Ubuntu almost full-time but I still have my G4 iBook which I use when I'm coding, just because of TextMate. Before TextMate I used to be a die-hard Vim-fan and I know my way around it pretty well.

    --
    My other account has a 3-digit UID.
    1. Re:TextMate! by Anonymous Coward · · Score: 0
      As much as a Vim-fan I am (I really am!), I really want to see something like TextMate for Linux! It's hard to describe what makes TextMate so great, take a look at the Screecasts on the homepage and on the Ruby on Rails homepage to get an idea...

      I use Ubuntu almost full-time but I still have my G4 iBook which I use when I'm coding, just because of TextMate. Before TextMate I used to be a die-hard Vim-fan and I know my way around it pretty well.


      And what are the 95% of us who aren't using OS X supposed to do? And please, don't say switch to OS X. We are talking about text editors.

      By the way, do you make TextMate or is it all commission?
  70. VIM for the Windows guy by edmicman · · Score: 1

    Every so often I'll see an article like this (vim, emacs, whatnot) and I'll go check it out. I keep trying gvim (I think after downloading and playing with it again this morning it's been probably 4-5 times now over the past few years), and I keep getting frustrated. For a developer using Windows, and programming primarily in .NET, what does gvim offer me over something like Notepad++ (my current editor of choice)? The extent of my raw text file editing is mostly classic ASP pages (small mods, nothing from scratch) or the occasional txt data file or something. Everything else I do in Visual Studio.

    I keep trying gvim out, but it just seems like too much work to get to my basic functionality that I've come to expect out of other windows editors. Some of my shortcut keystrokes don't work, and I don't really want to track down how to remap them. I shouldn't have to. It took me 10 minutes to figure out how to change the default font, and make it stick. The same to get the bottom scrollbar to stick. I shouldn't have to look up settings in one file, and edit a different text file in order to make simple configuration changes. gvim offers "tabs", but not as I've come to expect tabs to work. It's not so much a "tabbed interface" as it is an interface that "supports tabs". How do I make it open each file by default in a tab?

    I dunno...maybe I'm just too lazy. It seems very powerful, for the occasional edit and decent find and replace in files, it seems like too much work to get set up the right way, and on top of that you have to learn the basic commands, too.

    Maybe if I worked in both Windows and Linux on a more regular basis, then it would be more of an advantage? I'll play with it some more and maybe I'll force myself to learn it. Just my $.02.

    1. Re:VIM for the Windows guy by RichiH · · Score: 1

      So, what you are saying is that you would like to try something new of which you heard that it was cool, but you have to learn new things to use it? Well, tough luck, but hey, that will happen everywhere. Also, the time initial time investment will pay off manifold when you are used to the feature set and can efficiently Do Stuff. If, of course, you expect an editor to behave exactly like Notepad++, i would suggest using.. Notepad++

    2. Re:VIM for the Windows guy by Provocateur · · Score: 1

      Yes you do need to take a half hour to get started, but not with gvim. It seems that in your case, the *GUI* version is getting in your way (fonts and scrollbars?). Look at it this way: go to cmd.exe in Windows, and THEN edit from there. Not gvim, but in console mode (there must be a version for Windows for this). That way, when you do use Linux more or switch more often than you care for, you'd be focused on the edit part rather than the windowing or resizing part.

      --
      WARNING: Smartphones have side effects--most of them undocumented.
    3. Re:VIM for the Windows guy by namekuseijin · · Score: 1

      sadly, vi is not for notepad-minded folk. vi won't ever change its way of doing things to acomodate the notepad paradigm, because otherwise it'll lack the one thing that makes it special: making so much with so little typing.

      So, you either continue with notepad-alikes or learn to use vi to your best advantage...

      --
      I don't feel like it...
    4. Re:VIM for the Windows guy by ratboy666 · · Score: 1

      Stop thinking about vi(m) from a Windows(tm) perspective.

      Its an editing engine, nothing to do with a GUI, really.

      Example:

      I have a line:

      void drawBackground(float scale, float angle)

      The cursor is on the first character of the line; I want to remove the first parameter. What do I do? In a GUI editor, I pick up the mouse, hit just before the "f", click and drag to the second "f", and hit "Delete". Takes me 5 seconds (I timed myself).

      In vi(m), I enter 3w3dw. Takes me 1 second, maybe less. I THINK in vi when editing. For what its worth, "3w" is 3 words forward, "3dw" is delete three words. In "vi(m)-think", a word is a "word or delimiter". And if I don't like the change? "u" to undo.

      Learning to think vi is not easy. The only way to do it is to use it. Initially concentrate on motions, and simple commands. DO learn the merging (especially practice with "d", "y", "p"). Learn that the cursor ends up AFTER the edit point (this must become second nature for proper vi understanding).

      YMMV
      Ratboy

      --
      Just another "Cubible(sic) Joe" 2 17 3061
    5. Re:VIM for the Windows guy by edmicman · · Score: 1

      Good info...I do think I'll play with it some more. Given your example, even in a windows interface, I'd personally do (from the beginning of the line) ctrl-right arrow, ctrl-right arrow, ctrl-right arrow, ctrl-shift-right arrow, ctrl-shift-right arrow, ctrl-shift-right arrow, delete. Just because there's a GUI, doesn't mean you *always* depend on the mouse!

    6. Re:VIM for the Windows guy by milimetric · · Score: 1

      I'm pretty much in the same boat as you man. Primarily Windows (I play with some Linux at home), primarily .net (I play with some SML, Java, Haskell, and some other stuff at home). I like visual studio but I hate it too. It's deleted more event wireups than I can remember and if it doesn't stop reformatting my freakin HTML I'm going to chuck it out the window. I'm workin on a 500,000 line project right now and VS is bursting at the seams. The one thing that I love vim for and use it all the time is its macros. Simple example: say you've got to paste something out of a column of excel but you want to do a sql query like this:

      SELECT * FROM something WHERE somethingid IN (34,116,1,34,634,63,463,2)

      just highlight the column, copy it to gvim, it'll look like this:
      34
      116
      1
      34
      634
      63
      463
      2

      and then record a macro to comma separate it (start your cursor at the top:
      q - begin record
      [any letter here] - assigns that macro to this letter
      A - appends at the end of the current line (now you're in edit mode)
      , - just types in a comma
      DELETE - deletes the endline and brings up the next line
      ESC - gets back to normal mode
      q - stops recording

      Now to play back the recording, type @[the letter you chose]
      To play back the last recorded macro, type @@
      To play back the macro 30 times, type 30 @[the letter you chose]

      I'm sure advanced vim users will be able to give you better ways to regex replace the eol with a , but this trick applies when you need a list like '23asdf24','1212124','12asdf','asdfa' and in other cases too, macros are cool for half-wit people like me. The beauty of it, is vim will remember the macro after you close it, so you'll always have it.

      you may have already seen this, but it's helped me learn a lot of stuff. It's a great tutorial:

      http://www.viemu.com/a_vi_vim_graphical_cheat_shee t_tutorial.html

    7. Re:VIM for the Windows guy by arn@lesto · · Score: 1

      :%s/\n/,/

      vi's CLI did the work before you defined the graphical macro.

      --
      - AndrewN
    8. Re:VIM for the Windows guy by milimetric · · Score: 1

      sweet, lol, i feel dumb because i couldn't figure out how to do "replace all", so I guess it's %. Thank you kind stranger :)

  71. Re:No, it's *not* Moolenaar by Anonymous Coward · · Score: 0

    Speaking of transliteration of umlauts, "über" should really be spelt "ueber" when you for whatever reason can't use the letter ü.

  72. VIM - "Vot Is Menu?" by Picass0 · · Score: 1


    Get That Fucking Mouse Out Of Here didn't form a word, but VIM had a nice eastern European sound.

  73. Re:Prime Difference between Linux and Windows User by TheRaven64 · · Score: 1

    It was called 'vim.' If vim can't determine the file type from the extension, it guesses based on the contents. Try editing a .m file, for example; that can be Objective-C or Mathematica (I think; maybe I mean Mathlab), but it generally guesses the correct one.

    --
    I am TheRaven on Soylent News
  74. The funny thing is... by Anonymous Coward · · Score: 0

    that you can write any software using notepad, so why bother with the bloatware?

    1. Re:The funny thing is... by MickDownUnder · · Score: 1

      True... and bloatware also often creates garbage, however bloatware gets the garbage to market a hell of a lot faster than what you can do in notepad. In this day and age thats a commercial advantage.

    2. Re:The funny thing is... by fabs64 · · Score: 1

      Because notepad fills my files with the number 13 for some unknown reason and I consider that unlucky :-P

      Also because syntax-highlighting, automatic indentation, auto-formatting and now *drool* drop-down auto-completion makes life a lot easier and FASTER.

  75. Re:No, it's *not* Moolenaar by Anonymous Coward · · Score: 0

    The "ö" to "oe" transliteration only applies to German language text. In other languages (such as Swedish) it is quite wrong as "ö" (in Swedish, it is a different letter and not a decorated "o").

  76. Midnight Commander by FudRucker · · Score: 1

    mc has been my favorite file and text editor for a long time now, works in both a GUI terminal window and in a CLI shell...

    --
    Politics is Treachery, Religion is Brainwashing
    1. Re:Midnight Commander by popsicle67 · · Score: 1

      Amen to that. I wish that newfangled Ubuntu had it in the distro, it can be a bitch going to look for it every time I gear up another box

  77. Why I use vim by rlp · · Score: 1

    I started out using vi early in my career (on a PDP/11). These days I mostly use either Eclipse, Visual Studio, or NotePad++. However, when I either need to edit a very large file, or manipulate a large text file using regular expressions - vim and gvim are hard to beat. My thanks to the folks that have kept this useful tool alive and running on modern machines.

    --
    [Insert pithy quote here]
  78. Re:No, it's *not* Moolenaar by goarilla · · Score: 1

    muggenzifters!

  79. A walkthrough of GVim and Vim. by Arkaic · · Score: 0

    That would be a better title. Its a bit difficult to get menu options like File and Tools, to appear in your console. ;)

  80. Re:Woohoo: Eight Megabytes And Continuously Swappi by Gr8Apes · · Score: 2, Informative

    I still like IBM's EPM editor (on OS/2). It emulated Emacs, sed, ed, edlin or any other editor if you cared to customize it, and was GUI if you wanted it to be. The memories ... are surely better than the reality ;)

    As for GVim, I like the combo interface on Windows. On the Mac, there's a few GUI inconsistencies, but you have to love the fact that the console program is identical. And who worries about 13MB anymore for a PC when a 1GB stick costs around $65?

    --
    The cesspool just got a check and balance.
  81. Re:Woohoo: Eight Megabytes And Continuously Swappi by Just+Some+Guy · · Score: 0
    I use Emacs without X inside Gnome-Terminal, almost the same X functionality is provided by the Gnome-Terminal menu and without the hideous looking window.

    I'm looking at Emacs 21.3.1 in X mode, and I can't figure out what ugly window you're talking about. It looks pretty much exactly the same as a session inside a terminal window except that the scrollbar is graphical instead of ANSI.

    --
    Dewey, what part of this looks like authorities should be involved?
  82. Where's the article? by pmatos · · Score: 1

    Surely it's just me... but where's the article with the visual walkthrough?

    1. Re:Where's the article? by vmisev · · Score: 1

      7 or not, we still have to hide from police ;)

  83. Play nethack by digitalhermit · · Score: 1

    If you want to learn vi, play nethack. Then the hjkl will seem natural.

    Of course, it may pose a problem when you're trying to type an email and cc: just scares you away.

    1. Re:Play nethack by CronoCloud · · Score: 1

      And that's another flame war right there.

      Do you snap your suspenders when you pine for the days of punch cards and paper teletypes?

      I refuse to play roguelikes that don't have numpad support. But I do think they should keep vi-key support in there for curmudgeons like yourself. :-)

    2. Re:Play nethack by digitalhermit · · Score: 1

      Look here, whippersnapper, you haven't lived until you've played Nethack on punch cards. I still have paper cuts from my battle with the shopkeeper on level 5.

    3. Re:Play nethack by aardvarkjoe · · Score: 1
      If you want to learn vi, play nethack. Then the hjkl will seem natural.
      Strangely enough, though I use hjkl for editing text all the time, I can't get used to using it for nethack.
      Of course, it may pose a problem when you're trying to type an email and cc: just scares you away.
      No big deal; just kill the lizard and grab its corpse first before tackling the cockatrices.
      --

      How can we continue to believe in a just universe and freedom to eat crackers if we have no ale?
  84. Returning to VI(M) by qazwart · · Score: 4, Informative

    I've been programming since the 1970s when we really didn't have screen editors. We used line editors, and had to keep retyping the "list" command to see how our program was shaping.

    VI was actually not the first screen editor I used. The first I used was the old Textedit on the Mac. I thought it was wonderful. I could actually move the cursor around and see what I wrote. My introduction to VI was when I first started working with C on Unix. I hated it.

    VI was primative. Where my Mac editor was single mode, I had to switch back and forth between command mode and insert mode with VI. Where my Mac editor would wrap text, VI wouldn't. Where I could easily find a command with the menus, with VI, I had to remember archaic key strokes. Who in the hell wrote this junk!

    However, once I started getting use to it, VI grew on me. The commands I quickly learned could be combined. For example, "d" deletes. "e" moves to the end of a word. "de" deletes to the end of a word and "3de" deletes the next three words. "xp" transposes two characters. There was an order to them: "d" for delete", "f" for find, "r" for replace. It started making sense. Then I started learning the ins and outs of RegEx, and I never looked back.

    Not only that, but I quickly learned that for program editing, VI simply worked better than Textedit or Notepad. Unlike word oriented text editors, VI was line oriented just like a computer program. I've been using VI ever since. Over the years, I've tried GUI editors (Jedit, Nedit, KDEdit, TextPad, etc.) but I keep returning back to VI.

    Most of these young whipper JDs (Java Developers) with their "Object Orientation" and "Virtual Machines" think of my preference for this non-graphical editor as quaint. Sort of like the way you'd look at Grandpa playing around with his model trains. That is until they realize that I can write code a lot faster than they can.

    Last year, one developer told me it was going to take a few hours to clean up a particular program. I loaded the files in VI and transformed them in a matter of minutes. He was shocked. How can this "obsolete" little text editor do the job much more efficiently and faster than his feature ladened GUI? Why doesn't his editor support regular expressions? Why can VI load the files in less than a second while it takes VisualStudio three or four minutes? How can I write a program and never have to touch the mouse?

    My sons have just started taken up programming. My 15 year old kid likes working with PHP, and first refused to even look at VI -- to old fashion and out of date -- just like his dad. He had a *better* IDE that was made specifically for HTML/PHP web development.

    I recently caught him using VI. He had to admit that once you get over the basics, VI is faster and easier to use for his needs. My oldest is in college and I saw using VI for writing his term papers and essays. He said he found working with VI better because it kept him concentrating on content than formatting. Plus, it makes writing a lot faster. Takes a lot of time switch to the mouse each time really slows you down. He showed me how he programmed a macro spell checker using an ASCII dictionary and ispell. He also showed me the "linebreak" feature in VIM (something I didn't know about).

    After all these years, I still haven't found anything that is as efficient as VI for editing. From what I see in Linux world, a lot of younger programmers who grew up with nothing but graphical interfaces agree with me.

    1. Re:Returning to VI(M) by Pastis · · Score: 1

      I use vi daily, but to get my job done I use IntelliJ IDEA for Java development. Intuitive, easy to remember shortcuts. That's the only non-free (as in beer) application on my Linux desktop.

    2. Re:Returning to VI(M) by Albert+Sandberg · · Score: 1

      ... He also showed me the "linebreak" feature in VIM (something I didn't know about).

      After all these years, I still haven't found anything that is as efficient as VI for editing. ...


      Yet it took you about 30 years to find how to enable linebreak :-)

      Just making a joke, but I'm using kdevelop ;-) Have to start use vim some day...

  85. B*rn you, vimperialist! by tgv · · Score: 3, Funny

    May the colon key on your keyboard stop working for you and the seven generations to come after you!

    1. Re:B*rn you, vimperialist! by Just+Some+Guy · · Score: 1

      That'd be a much stronger curse if more Slashdotters were able to reproduce.

      --
      Dewey, what part of this looks like authorities should be involved?
  86. fortunately by oohshiny · · Score: 1

    99% of editors, Ctrl-end. Vim, G. Sorry, that's retarded.

    Control-End is hard for a touch typist to reach, and it's in a different place on different keyboards. Maybe that's convenient for people who don't touch type and who use editors rarely enough to remember key bindings, and maybe starting in insert mode is convenient for people whose needs are served by Notepad.exe, but other people have other needs.

    If you like an editor that uses Control-End and starts in Insert mode, you are well served. Why are you trying to force the remaining 1% of the editors to conform to your notions of how an editor ought to work? Don't you already have enough choices? Are you a member of the Borg and feel the need to assimilate and change everybody to conform to your own (IMO retarded) notions of how computers ought to work?

  87. tabs by oohshiny · · Score: 1

    The tab feature doesn't seem very well integrated. Vim 7 seems to make a distinction between files that are open and files that are open in tabs. Why would I want that?

  88. Meanwhile... by Anonymous Coward · · Score: 1, Insightful

    Meanwhile, a real woman just goes and manually does whatever it is her husband's silly "program" was supposed to do.

    1. Re:Meanwhile... by arth1 · · Score: 3, Funny
      Meanwhile, a real woman just goes and manually does whatever it is her husband's silly "program" was supposed to do.

      Fetch porn?
  89. Re:No, it's *not* Moolenaar by zsau · · Score: 1

    Ach! That explains the extra 'o'. I'd wondered about it--I didn't think Dutch went in for double letters in open syllables. On the other hand, it's rather inconsiderate of the Dutch for not using umlauts on about half of their o's. We English-speakers need some reason to laugh at you|them!

    --
    Look out!
  90. What's so Powerful about Vi(m)? by Anonymous Coward · · Score: 0

    What do you need an editor to do other than edit the text in a file and then save it? Perhaps you would like it to run to the corner store and pick up a 2L bottle of carbonated artificially flavored cafinated sugar water?

    Let's call it pop and be done with it. Let's use the backspace, insert and enter keys and be done with it.

  91. Major PITA - Copying and pasting words by Anonymous Coward · · Score: 0

    How do other people deal with this? Say you have a line containing all sorts of punctuation and you want to copy some words. But you cannot easily tell how many "vi words" make up the "human words" you want. Sometimes I advance word by word and thereby count how many words I need to copy. Sometimes I just make a guess. Anyone?

    1. Re:Major PITA - Copying and pasting words by the_greywolf · · Score: 1
      y/.<ENTER>

      Yank up to (not including) next period.

      /:<ENTER>d$

      Delete to end of line, beginning at next :

      Bear in mind that almost any search or action can be used in place of a count. :D

      --
      grey wolf
      LET FORTRAN DIE!
    2. Re:Major PITA - Copying and pasting words by revscat · · Score: 1
      The following works fine for me.
      This right here, it's a test.
      Moved to the beginning of the line, hit 4yW (4 yank Words), then P, which gave
      This right here, it's
  92. Re:Prime Difference between Linux and Windows User by tonyr1988 · · Score: 1

    It's hard to get excited when you have no soul.

  93. Re:No, it's *not* Moolenaar by spectrokid · · Score: 1

    in Danish ø -> oe æ -> ae å -> aa

    --

    10 ?"Hello World" life was simple then

  94. GVIM sucks. by Anonymous Coward · · Score: 0

    The automatic tabs keep indenting everything improperly, and the lack of an end-of-line stop that autowraps down to the next line when you're using the arrow keys to get to the eol (while doing mass editing of raw data files)is pure frustration. Turning on vi compatibility dumbs it down too much, making it even more unfriendly to use.

  95. What kind of sentence is this? by exp(pi*sqrt(163)) · · Score: 1
    Anybody who has used Linux or any other OS would be aware of the very powerful and feature rich text editor Vi.
    What does Linux have to do with anything? If your proposition is true of "Linux or any other OS" then it's true of "any OS". So why mention Linux at all. And why are you telling us that people who have used any OS would be aware of vi? If what you say is true, then I'm aware of vi, and there's no point you telling me. The only purpose I can imagine this sentence having is to give people who haven't heard of vi a feeling of inferiority. In fact, I'm pretty sure this sentence is false as I doubt that that most Windows users have heard of vi.
    --
    Doesn't it make you feel good to know that our freedoms are protected by politicans, lawyers and journalists.
    1. Re:What kind of sentence is this? by hardburn · · Score: 1

      I also love the rampent eliteism in that sentance, which ends with an incorrect capitalization of 'vi'.

      --
      Not a typewriter
    2. Re:What kind of sentence is this? by crucini · · Score: 1

      I imagine that the submitter started with "anyone who's used Linux", then remembered the BSD's, then thought of other obscure OS's out there...

      And groping for the right adjective (Unixy OS? Open Source OS?) somehow dropped it.

    3. Re:What kind of sentence is this? by exp(pi*sqrt(163)) · · Score: 1

      Unicaceous?

      --
      Doesn't it make you feel good to know that our freedoms are protected by politicans, lawyers and journalists.
  96. Re:Woohoo: Eight Megabytes And Continuously Swappi by Anonymous Coward · · Score: 0

    Emacs 21.4 uses about 11MB of RAM on my system (Fedora Core 4).
    Gvim 6.3.71 uses about 12MB of RAM.

  97. The two modes are the deal (or deal breaker) by anandsr · · Score: 3, Insightful

    There are two types of people.
    1) Those who can think very clearly and can write whatever they need to in one go, without ever having to revise it.
    2) Those who cannot write even a single line without needing to use the delete feature 10 times.

    For the type 2) people vi is not a useable editor. At least not for anything that requires writing more than a couple of lines. I unfortunately am a type 2) person and have to live with emacs. IOW vi is for perfect people, and I am actually a blathering idiot when it comes to typing in my thoughts or code.

    I still use vi quite a lot, for quick editing. But if I have to write more than a couple of lines then I start searching for emacs.

    I am quite used to the two editors. Since when you are within emacs you can do almost anything, there is very little motivation to learn another editor. This is why I hate having to use any other program that tries to make me learn its editor, and does not provide emacs key bindings.

    It is good that some of the emacs key bindings are used in many editors like the firefox input box.

    1. Re:The two modes are the deal (or deal breaker) by Derek+Pomery · · Score: 1

      Vim allows you to delete without entering command mode (so long as vi compatibility is disabled, which is typically the default).
      Try hitting backspace or delete in Vim sometime.

      On the other hand, every time someone mentions Vim in a slashdot post, inevitably Emacs folks who have never really tried using Vim post.
      I kind of suspect that's the category you fall into.

      --
      -- perl -e'print pack"H*","6e656d6f406d38792e6f7267"' /. ate my old sig. Bastards.
    2. Re:The two modes are the deal (or deal breaker) by ecliptik · · Score: 1

      Firefox uses a few Vi keybindings too, for example hit / for a search.

      I also seem to remember hjkl working for navigation in an older release but I think they removed it.

  98. MAGNETIZED paperclip? by FishWithAHammer · · Score: 1

    You had a magnetized paperclip? I had to move bits by feel!

    --
    "You can either have software quality or you can have pointer arithmetic, but you cannot have both at the same time."
    1. Re:MAGNETIZED paperclip? by Anonymous Coward · · Score: 0

      So you are trying to tell you had it rough when you DIDN'T HAVE the paperclip? That makes almost as much sense as torturing people by punching them with soft cushions.

    2. Re:MAGNETIZED paperclip? by FishWithAHammer · · Score: 1

      I had a paperclip.

      Just not a magnetized one.

      --
      "You can either have software quality or you can have pointer arithmetic, but you cannot have both at the same time."
  99. Re:Woohoo: Eight Megabytes And Continuously Swappi by TeknoHog · · Score: 1
    I'm looking at Emacs 21.3.1 in X mode, and I can't figure out what ugly window you're talking about. It looks pretty much exactly the same as a session inside a terminal window except that the scrollbar is graphical instead of ANSI.
    I agree. Perhaps the GP is confusing XEmacs with the X11 interface of GNU Emacs?
    --
    Escher was the first MC and Giger invented the HR department.
  100. Re:No, it's *not* Moolenaar by Anonymous Coward · · Score: 0

    W00t, Godwin's Law in a vi story.

  101. Moo by Chacham · · Score: 1

    Anybody who has used Linux or any other OS would be aware of the very powerful and feature rich text editor Vi.

    Much like seeing Windows helps you appreciate Linux, seeing Vi helps you appreciate Emacs.

  102. Esc unil it beeps, by Harlow_B_Ashur · · Score: 1

    sync until it's still,
    salt until it crunches.

  103. Even Bill Joy doesn't use vi anymore by Anonymous Coward · · Score: 0
  104. Re:No, it's *not* Moolenaar by TeknoHog · · Score: 1

    As a Finn, I actually find it better to simply forget the dots if the charset doesn't have them, in the style über -> uber. The correct form is usually apparent from the context, whereas the ae/oe/ue form looks like a diphthong to us and thus confusing. It's particularly annoying when you have a long monophthong like "ää" transliterated into "aeae"

    However, there are some examples where the umlaut really makes a difference: näin (I saw) vs. nain (I fucked).

    --
    Escher was the first MC and Giger invented the HR department.
  105. vim lacks features I need by Eravnrekaree · · Score: 1

    Very few or no console editors on Linux seem to fit my needs. Ive tried vim but it seemed as useless to me as the others. For instance, I need soft line wrapping, that is, the editor wraps the line on the screen without inserting a line break. This is so if you add something in the middle it doesnt throw everything else out of alignment below. This is also called continuous line wrapping. I also like to have a constant display of the line number on the screen, and modeless editing. Really, the only thing that works somewhat decently for me on the console, is DOS edit, with its drop down menus and such. Is there something similar on linux?

    1. Re:vim lacks features I need by gewalker · · Score: 1

      I just loaded gvim 7.0, issued the command :set wrap and went into insert mode.

      Soft-wrapping worked just as you described. Line and column numbers are continuously displayed. Is hitting one keystroke to go into insert mode (since that is want you want) so terribly painful to learn? Surely, the number of keystrokes required using gvim is less than most editors.

      If you like :set wrap to always be on, set the feature on in your startup script. :set ruler gives you constant display of row/column, again startup script. Drop down menus, off course. Though not all features available via menus.

      All powerful editors have a learning curve. Emacs, Microsoft Word, Photoshop/GIMP. Using standard keystrokes such as "windows keys" for Word only scratch the surface of what you can do. Most features of Word are available (esp. if you ignore the macro/programming features). But the menus are complex to navigate and allow simple automation of repetive tasks. Using Word without understanding the paragraph templates means you are working too hard.

      With power comes responsibilty. You need to invest time to learn how to use gvim, but it pays dividends. It's modal nature makes it unique (thus hard to use without any training). GVIM usage many of the common Windows idioms (on Windows) so it easier to get started than VI. Give it a fair try and you might discover you like it after all.

    2. Re:vim lacks features I need by the_greywolf · · Score: 1

      You're looking for Nano.

      But all of the features you describe are in both Vim and Emacs, both of which allow for everything from massive complex automated jobs all the way down to simple editing.

      And to get the features you want, you can always add these to your .vimrc:

      set ruler
      set number
      set wrap
      set insertmode

      The last option will put Vim forever in insert mode. ^L will break out so you can use commands. IMO, this takes away from the power of Vim and makes it less accessible and harder to use since the Vim : command line and keysequences are so powerful.

      --
      grey wolf
      LET FORTRAN DIE!
    3. Re:vim lacks features I need by Anonymous Coward · · Score: 0

      :set wrap
      :set number

      Sorry, you can't get rid of the modeless aspect.

    4. Re:vim lacks features I need by Abcd1234 · · Score: 1

      Yeah, I agree! That's like when I went to buy a car. I started off looking at the mini. But the thing is, it didn't have the towing capacity I wanted, not to mention the complete lack of a flatbed, and it didn't even have the clearance for proper offroading!

    5. Re:vim lacks features I need by milimetric · · Score: 1

      have you tried notepad++
      it's got the features you talk about and is pretty lightweight and it's got ctrl+scroll feature for zooming which i love

      I love vim by the way, but i agree it's got some quirky ways of handling text, i just set the tab/space stuff how i want it and i set it to never wrap (code looks fucked up when it wraps :)

  106. The traditional vi is available by Anonymous Coward · · Score: 0

    You can get the traditional vi here.
    I agree that vim has strayed far away from the original vi, the two are not really the same.

  107. Um. by Doctor+O · · Score: 1

    So, this article talks about the following "cool" features:

    * on-the-fly spellchecker
    * bracket highlighting
    * keyword auto-completion
    * tabs
    * undo branches

    I'm neither a vi nor emacs zealot, but this list really made me yawn - apart from the undo branches (which are cool but unnecessary if you do any CVS or SVN (which you do in *any* professional environment)) these features are something that about *any* editor I've encountered in the last years has.

    I ACK the power of vi and emacs, but I wouldn't have thought that auto-completion and especially bracket highlighting would be something new and great...

    --
    Who is General Failure and why is he reading my hard disk?
  108. Re:Prime Difference between Linux and Windows User by tehshen · · Score: 1

    I know that, filetype.vim, I was talking about when you open a New File (without a filename) it would work out the filetype from what I wrote in it.

    --
    Guy asked me for a quarter for a cup of coffee. So I bit him.
  109. Don't forget ed! by Chemisor · · Score: 1

    Let us not forget the standard ed editor, the pinnacle of user friendliness! (Or is it sword point? I forget...)

  110. Mod Parent Up by nead · · Score: 1

    ... and check out Bill's comment on patents and copyright.

  111. So What? Only a big deal that its VIM. by stevenm86 · · Score: 1

    I ask you, so what? Every other decent editor already HAS spell checking and bracket hilighting. Vim is just catching up. It has become so ingrained in developers' minds that people have been quite inattentive to other good editors popping up over the years. Kate is one good example.

    1. Re:So What? Only a big deal that its VIM. by the_greywolf · · Score: 1

      Kate has a few major flaws and several other major bugs. I'm waiting for version 4 with anticipation, but only because I'm hoping they'll actually fix the horribly broken code folding, and stabilize kde-libs. (it doesn't segfault on my Gentoo machine, but it segfaulted regularly on every other distro I've tried.)

      Until then, Kate is a piss-poor alternative to Vim. It's just too bad that the gvim part has been unmaintained for so long.

      --
      grey wolf
      LET FORTRAN DIE!
  112. Taste acquired by demonstration by Chemisor · · Score: 1

    I have switched to vi after seeing one of my college professors use it. Watching a vi master edit a source file is a truly breathtaking experience that people who say they do not like vi are certain to have never had. After the experience, the temptation to learn vi is irresistible.

  113. How to put NoMatchParen in .vimrc? by Dan+Ost · · Score: 1

    The first thing I noticed when I emerged the VIM 7 was
    the hilighing of matched parens (not to be confused with
    'showmatch' that bounces the cursor to the matching
    paren when you're typing).

    The article says that this behavior can be turned off
    by typing :NoMatchParen. I've verified that this works
    when in VIM, but I can't get it to work in my .vimrc.

    Has anyone figured out how to turn this behavior off
    from .vimrc?

    --

    *sigh* back to work...
    1. Re:How to put NoMatchParen in .vimrc? by Dan+Ost · · Score: 1

      Sorry about replying to my own post, but I just figured out
      how to do it and thought I'd share the solution.

      In .vimrc, put:
      let loaded_matchparen=1

      This will prevent the paren matching module from being loaded.

      --

      *sigh* back to work...
  114. Or if you're like me... by Ayanami+Rei · · Score: 1

    and you grew up playing Doom before you used linux, you want to use WASD.
    But I'm too lazy to set my .vimrc so I just use nano.

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
  115. Re:Prime Difference between Linux and Windows User by Anonymous Coward · · Score: 0

    I do. Obviously I use Visual Studio for my coding work, and Word for writing documents meant for my co-workers, but any html or text work I do is done in GVim. In fact, I often have 3 or 4 GVim windows open at pretty much any time that I have Visual Studio open. I do most of my repetitive tasks in GVim using regular expressions and then I cut & paste.

    Vim has saved me countless hours of work in other tasks too.

  116. Arrrrrggh! You beat me to it! by A+nonymous+Coward · · Score: 1

    I just posted a link to that and then found yours when scrolling down. You beat me!

    Arrrrrrrr! you scurvy dog!

  117. Ahhh, vi... by petrus4 · · Score: 1

    The UNIX geek's equivalent of the Rolex watch. More than perhaps any other program than I can think of, it's been considered a badge of honour if a person has the terminal degree of autism required to understand it. I think that also is the main thing about the application that I resent...I don't consider it to be genuinely useful, but simply so abstract, intentionally user-hostile, and obtuse that it confers bragging rights to anybody who is actually able to use it. I also strongly suspect that that is the primary reason why it has endured.

    Some of us prefer applications that don't require the accompaniment of controlled substances for us to be able to comprehend them. ;-)

  118. Wordstar? by RichiH · · Score: 1

    No, we use vim with latex..

  119. *real* men [Re:editors are for wimps] by j.leidner · · Score: 1
    Real men don't write software.

    Real men just input the entire program at the command line using cat>myprog.c A real man writes directly to the disk with a magnetised paperclip.

  120. Re:Its been decided. by johnw · · Score: 1
    And I even remember the days when that was a lot

    I can remember the days when 8 meg was a lot for a disk, never mind memory.

    2.4M removable platters anyone?
  121. vim is not vi by argent · · Score: 1

    The latest version from the Berkeley boys, nvi, is quite capable of holding its own with vim and does a better job of making its extensions (like "undo") feel like part of the normal command set. It's simply a more accurate implementation.

    I've been using vi for a quarter of a century now, and have used vim and other clones like stevie and elvis when they were the only option. All but elvis have had me occasionally tripping over my fingers as their command structure didn't quite follow the original.

    1. Re:vim is not vi by Anonymous Coward · · Score: 0

      This is even more like the real thing.

    2. Re:vim is not vi by krischik · · Score: 1

      Indeed - I allways feel as if I have been beamed back in time when I have to use archaic Vi.

      Martin

  122. Coffee mug with vim commands by Provocateur · · Score: 1

    Oh no! Vim has been updated? There's so many commands to remember now! There's even a visual mode?!? Gotta get a bigger mug...that means more caffeine for my already-frazzled nerves...or have a shirt iron-on transfer done with the commands printed upside down so all I'd have to do is look down to see the commands...which reminds me, gotta put on some pants...

    --
    WARNING: Smartphones have side effects--most of them undocumented.
  123. Vim video demos by Anonymous Coward · · Score: 0

    Most of you understand why someone would subject themselves to the steep learning curve and esoteric keybinds of Vim, but for those who don't, here are some short video demo examples of why a programmer should consider learning Vim:

    Vim Video Demos

  124. Re:Its been decided. by Alioth · · Score: 2, Funny

    I thought it meant "Eventually Mallocs All Core Storage"...

  125. I still do "plain" vi by joe_n_bloe · · Score: 1

    Actually, I do work a little differently in vim. I use the multi-level undo, and I enjoy spending my first day on a new installation trying to figure out how to get scp:// urls working and then fixing whatever's broken with the syntax coloring this time.

    Still, at some point in the late 80s, I began to hate emacs, and that's the way it still is. I guess I had to build it one too many times.

  126. Vim is turning into Emacs.... by 1053r · · Score: 1

    From the section on keyword autocompletion:
    "I press the key combination [Ctrl+x] [Ctrl+o] and Vim will smartly guess the correct keyword and insert it"

    Anything that doesn't include ":" is the antivi! The believers must stay strong through these hard times! We must not aldulterate our holy editor with control and meta keys!

    1. Re:Vim is turning into Emacs.... by krischik · · Score: 1

      Even worse: it is an "insert mode" mapping - you don't need to return to normal mode to execute it.

  127. Special command to edit a file by Anonymous Coward · · Score: 0

    I had to use vi once, from a Live CD. To change one letter in Grub's config file. One letter. Seemed fairly simple, even if I did not knew nothing about vi. So I start vi only to find out that this editor does not let you edit a file unless you enter a special command. And try to figure out that command (or looking it up in the help).

    Since then I've asked and learned some basic commands, just so that I do not get into a fit for trying to use an editor (when no other choice exists) that does not let you edit a file spontaneously.

    So much for this text 'editor'. I'd rather call it a text viewer with an optional edit mode.

    By the way, it'd be nice if people making Live CDs would rather use the GNU e3 editor which is only some 12 KB in size and emulates (some) key bindings of emacs, vi and word star (what"s that ?).

  128. Emacs and the The Layered Meta-Keyboard by kruhft · · Score: 1

    I generally don't partake in editor discussions, but I thought I would point out something I find really interesting I figured out about emacs as compared to vi. I've used both, but almost always use emacs except for quick editing tasks.

    The thing I find most fascinating about emacs is it's ability to give me more than one keyboard; each time you press Ctl, Alt, Meta, and Shift, you have access to another virtual, or meta keyboard, that can be used to enter commands. I like to think of it as keyboard layers with instant access simply by pressing a key. This is great for overall speed, and although a bit confusing at first (not like vi's two modes are all that intuitive either), it becomes totally natural after some time and practice, just like a musical instrument.

    The two main layers can be thought of as Ctrl-X and Ctrl-C, which technically act like the menus you would access under windows using Alt-F, Alt-W, Alt-E, etc. There are also the very frequently used commands that are attached directly to Ctl and Meta (Alt) for letter, word, line and buffer movement and modification, and they actually follow a very structured form: Ctrl for letters and lines (single char/line movement), Meta for words and paragraphs (multiple characters and lines), and Ctrl-Alt for buffers. Of course there are exceptions to the rule that have come about over years of use, but in general this is the case, and if you find an exception that doesn't work for you or you can think of something better, you can always do a global-set-key to switch it to your way of thinking.

    The computer as a tool is limited by the amount of information we can get into it so that we can command it to do our bidding. The emacs keyboarding system allows for a greater amount of information to be entered into the system at minumum physical cost at the price of some adaptation and learning time. In the end, if you want to get the maximum speed and efficency with your machine this type of system is essential.

    But what do I know?

  129. Is there a simple autocompletion howto? by cascadingstylesheet · · Score: 1

    I fake my way along with Vim, in fact, use it frequently, but fake my way along with mostly "i" and ESC.

    I've looked at the help for the new thingie, and googled a bit, but would really appreciate a simple step-by-step for getting autocomplete working for, say, Javascript or C#. Or even HTML.

    1. Re:Is there a simple autocompletion howto? by krischik · · Score: 1

      http://en.wikibooks.org/wiki/Learning_the_vi_edito r/Vim#Omni_Completion

      (Damm, now I can't use my moderator points any more...)

    2. Re:Is there a simple autocompletion howto? by cascadingstylesheet · · Score: 1

      Thanks much!!

  130. Re:No, it's *not* Moolenaar by Hal_Porter · · Score: 1
    According to the ever informative,interesting and insightfulwikipedia


    The spoof band Spnal Tap raised the stakes in 1984 by using an umlaut over the letter N, a consonant (it also makes use of a dotless i). This is a construction found only in the Jacaltec language of Guatemala and in some orthographies of Malagasy, although it is uncertain whether the writers of This Is Spinal Tap knew this at the time.


    Note, this post has informed you aboout the Jacaltec language of Guatemala and (if you view the HTML source) the uses of U+308 aka &#776; the combining diaresis
    --
    echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
  131. Wow by dushkin · · Score: 1

    Wow! Vim is becoming almost as good as Emacs!

    --
    o hai
    1. Re:Wow by Anonymous Coward · · Score: 0

      Yep, in a thousand years it might even reach SciTE

  132. Emacs and language integration by tjwhaynes · · Score: 1
    I was particularly impressed when I saw the Java refactoring things in Eclipse. Just select a few lines with a loop or so, right-click 'Extract method', name it and the rest is automatic. Emacs and vi won't get that sort of language integration ever, I think.

    If you have are an Emacs user developing Java code, you really should be using the JDE for Emacs. While I don't remember it having a refactor tool, it does understand and support many specific language-specific additions, including automatic completion of members, etc. It also is able to identify Classes you need for this Class and also remove unneeded Classes from the import list. There are lots of other support libraries for developing Java code in Emacs, including support for the PMD lint-like tools.

    I assume that is some way towards the "language integration" that you refer to.

    Cheers,
    Toby Haynes

    --
    Anything I post is strictly my own thoughts and doesn't necessarily have anything to do with the opinions of IBM.
  133. Re:No, it's *not* Moolenaar by Hal_Porter · · Score: 1

    That's not Godwin's law, at least in not in the sense of comparing your opponent to the Nazis. Here's an example of Godwin's law in this context :

    BurnEmacsHeretics: The world would be a lot simpler if everyone learnt VI. Then I would need to write scripts to auto uninstall Emacs on my boxen, or have my black clad, goosestepping lab monitors break the fingers of anyone who installs it. Plus I wouldn't need to bug users home internet connections to see if they are finding ways to get around the scripts.
    GasAllViUnternmenschen: Oh, I see. Ein Lab, Ein Sysadmin, Ein Editor. Fukk you, Hitler!

    --
    echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
  134. Re:Prime Difference between Linux and Windows User by balbord · · Score: 1

    Me totally relate t' that. `Tis so much easer t' regex away then t' go through large chunks o' HTML/code bits. Me be usin' vim since 1999 an' me nay planin' t' let 't sink t'Davy Jones' locker on me desktop any time soon! Anyone who thinks otherwise be nay fit t' invoke th' programmin' gods!

    --
    "If I have been able to see so far, It is because I went out and bought a damn binoculars" - Ze da Esquina
  135. Where is the L? by ratboy666 · · Score: 1

    You are far too subtle for me...

    YMMV
    Ratboy

    --
    Just another "Cubible(sic) Joe" 2 17 3061
  136. Re:nain by Anomalyst · · Score: 1

    Am I the only one that rushed to my browser to see who had nain.com, or, especially amusing, nain.org?
    Definitely added to my "four letter words that befuddle" list. Been using the nivenesque "futz" for decades.

    --
    There is no right to feel safe thru security vaudeville at the expense of everyone's freedom, privacy and tax money.
  137. Chuck Norris uses a Bowie Knife and glue by billstewart · · Score: 1

    He's from the Wild West, where editors use Dead Trees.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  138. What about Visual Studios integration by Anonymous Coward · · Score: 0

    Any idea if one can use vim as the default editor in VS 2003 or 2005 while maintaining all debugging and other features expected of VS integration? I have never been able to get the plug in for that to work.

  139. Re:No, it's *not* Moolenaar by ted_the_canuck · · Score: 1
    I thought that dieresis were used to indicate where syllable seperation was done. The plural of "zee" (sea) would be "zeeën". Also, there is the ÿ char (as in van Dÿk) but I think would more commonly be typed out as "van Dijk" Molenaar would be broken up as Mo (long vowel, since it's an open syllable) le (long e, since it too is an open syllable) and naar (long a, since the a character is doubled). I think some imported words retain their dieresis though.

    So I am agreeing with the parent post.

    I like the idea of VIM being able to undo to any particular point in the history. This seems like a good additional feature, and I'm sure I'll get the latest version now. I tend to use very few features that are not in the earliest versions of vi since I am old and set in my ways.

    --
    ==
  140. TDE -- Thomson Davis Editor by Anonymous Coward · · Score: 0

    Forget elvis, vim, vi, gvim... WinVi32...and certainly forget emacs (even emacs in viper mode...the spawn of both these evil ones...) forget 'em all.

    You need TDE!

    http://www.geocities.com/jadoxa/tde/index.html

    I am in no way affiliated with TDE.

  141. Re:Woohoo: Eight Megabytes And Continuously Swappi by arghnoname · · Score: 1

    If you want to get rid of the graphical stuff, put this in your .emacs file.

    It looks better in term, but you lose the crap.

    (menu-bar-mode -1)
    (scroll-bar-mode -1)
    (tool-bar-mode -1)

  142. It recognizes Unix, Windows and Mac linefeeds by melted · · Score: 1

    If you work with Windows at all, I highly recommend Notepad2. It's that good.

  143. Navigating? by St.+Vitus · · Score: 1

    > By default, [on-the-fly spellchecking] is turned off. But by navigating
    > to Tools -> Spelling -> "Spell check on" ...

    Uhh, sorry, you lost me there.

  144. stuff I'd like in 8.0 by Anonymous Coward · · Score: 0

    I'm still hoping we'll get support for proportional fonts and elastic tabstops in a later version. Could be a long wait :(

  145. Re:Vim and the The Layered Mode-Keyboard by krischik · · Score: 1

    Strange - I like vim for the very same reason. In Vim it's the different modes which make the different keyboards. And more so then in vanilla Vi because Vim supports more key combinations and more modes. See:

    http://en.wikibooks.org/wiki/Learning_the_vi_edito r/Vim#Modes

    Especialy the visual mode is cool. Select some text and you have a whole new set of commands to operate on selected text.

    And of corse you can customize the key mappings for each mode seperatly - another feature missing from Vi.

    Martin

  146. Re:Vim and the The Layered Mode-Keyboard by kruhft · · Score: 1

    In the end it's just the language we have learned to speak with our editor. They both say the same things, but in different ways. Our brains work differently...and hence, there are two ways of editing. I am a bit torn as to whether the first editor is our choice, or we have a natural inclination, but it's fascinating that we choose one or the other.

    The wars should end, we are only just different.