
Vim Turns 20 271
quanticle writes "20 years ago today, Bram Moolenaar released vim to the public. From the article:'The Vim text editor was first released to the public on November 2, 1991—exactly 20 years ago today. Although it was originally designed as a vi clone for the Amiga, it was soon ported to other platforms and eventually grew to become the most popular vi-compatible text editor. It is still actively developed and widely used across several operating systems.' Share your vim stories and your tales of battles with emacs users."
And this is why emacs beats vim: (Score:2, Funny)
emacs this emacs that (Score:5, Funny)
emacs would make a great operating system, if only it had a text editor worth a shit
Re: (Score:2)
Re:And this is why emacs beats vim: (Score:4, Informative)
Re: (Score:3)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
--Personally, I prefer ' jstar ' which is part of the Joe package - great little text editor with WordStar keybindings. But ' mcedit ' is also decent for quick work.
Why? (Score:2, Funny)
Why would they mention the argument with emacs? That was settled years ago.
Re: (Score:3)
:1,$s/19/20/g (Score:3)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Why so long and complex?
%s/\<19\>/20/g
That transforms all isolated 19s into 20s. You could also start with a specified range instead of % (whole doc).
I like gvim, except... (Score:5, Interesting)
I like and use gvim all the time.
My main beef with it (solved by recompiling) is with fonts. I like the old fashioned font called "fixed". It derives from the ancient, non-scalable standard bitmapped font which came with X. It also happens to be very readable and to my eyes looks much sharper than the anti-aliased fonts. There are also excellent UTF-8 versions available too.
For some reason, this is almost impossible to get if one has gvim compiled as most distros do it (using gtk or gnome). Not only that but the fonts seem to change on the slightest whim of an update from the package manager.
The solution seems to be to recompile it with Athena or Motif support.
I must say, however that if Athena is the solution, then you really have problems :(
Re: (Score:2)
Awesome Vim story. Mods mod up please this one should be the lead.
And I agree with you on Athena. As an aside it looks like the latest macports no longer has the athena option though it still has motif.
Re: (Score:2)
Awesome Vim story.
ummm that was a gvim story
Re: (Score:2)
gvim is the xwindows version of vim.
Re: (Score:2)
So, by that logic, this whole submission is a 'vi' story, not a vim story.
Re: (Score:2)
And which 'vi' do you think the default should be? elvis? nvi? The original Bill Joy version wasn't ported until very recently due to licensing problems, and it's practically abandoned. None of the free distros ship it by default.
If they're going to symlink 'vi' to something else, why not vim? Personally I don't care if I get "full-on syntax highlighting and colouring" even when I don't need it. It's not like vim is heavy or slow on any system with enough RAM to do a default install of any current dis
Re: (Score:2)
alias vi="vim -v -c 'syntax off'"
I tried to be an ex-emacs user... (Score:2)
Emacs controls all its ex's.
Happily married (Score:4, Funny)
I use vim, my wife uses emacs. We sleep in the same bed, unless she is swapping.
Re: (Score:2)
If you're using the same sized RAM she could easily be swapping and you, who wouldn't be, would be oblivious to it.
Re: (Score:3)
I use vim, my wife uses emacs.
This does not gel well with my previously held dogma that whenever a vim user and an emacs user are in the same room, the emacs user will have the significantly larger beard D:
One day (Score:2)
Daily user thanks Bram (Score:3)
Although I'd be able to kick the gong around using a simple Vi, I find several Vim features making me much more productive. History and colours do it for me.
Re: (Score:3)
History and colours do it for me
And:
visual (including block) highlight, working arrow keys, delete going off the end of the line and back onto the one before.
Re: (Score:2)
Yup. Column editing is the killer app that vi never had.
Cscope integration is a close second through fifth.
Re:Daily user thanks Bram (Score:4, Interesting)
Yup. Column editing is the killer app that vi never had.
Don't forget undo trees. It's a feature I use maybe once every few months, but those times I'm REALLY glad I had it.
If you don't already know, it fixes the problem where you undo some changes, make a new change, then can't redo the changes you undid. In vim, you can go back in time to retrieve the previous state. It's like having micro version control for every edit.
Re: (Score:2)
I use it on almost every Unix-Like system I work on.
Almost? What kind of a vim user are you!?
Re: (Score:2)
I use it on every system I work on... It's my standard editor on Windows XP (gvim anyway), Cygwin under WXP, Solaris, and Mac OSX. I don't use linux often any more, but it was my default editor then as well.
I've had co-workers laugh at me when I'm at the keyboard using an IDE and start typing jjjjjjjjjjjj.
Re: (Score:2)
I admit I only know a couple of basic vi commands, and a couple more vim commands on top of it (and I use vim as my alpine editor, and often my source code editor -- unless I'm doing a MAJOR multi-file find/replace type thing, then I do it in a GUI editor)..
vim additions I use:
gq to reformat text (e.g. fix quoted text in email replies)
visual selection (someone else mentioned this -- v then you can yank [copy] or x [delete] the visually selected tex
To avoid a flame war (Score:2)
Re: (Score:2)
Is that why the stories all seem to be equally badly edited?
Most Popular (Score:2)
...the most popular vi-compatible text editor.
Justin Timberlake is the most popular member of 'N Sync. Ha, I'm just C-y your chain.
Re: (Score:2)
...the most popular vi-compatible text editor.
Isn't vi the most popular vi-compatible editor??
I'm a regular daily vi user. This vim thing must be something new.
Re: (Score:2)
vi 'til I die! (Score:3, Funny)
Emacs vs VIM: Who cares? (Score:2)
Honestly, both are excellent text editors. I, like most programmers, use the one that was favored at my university. Not because it was necessarily better, but because lots of other people used it and helped me get over the learning curve. I still use VIM today on every operating system I use or am forced to use.
At the end of the day, the text editor I use has to be something I use so well that I am not thinking about the text editor - I am thinking about the text I want to edit.
Can't we all just get along?
Re: (Score:2)
Honestly, both are excellent text editors. I, like most programmers, use the one that was favored at my university. Not because it was necessarily better, but because lots of other people used it and helped me get over the learning curve. I still use VIM today on every operating system I use or am forced to use.
Interesting. At my school, emacs was the editor of choice, and I still ended up using vim.
Re: (Score:2)
What would you replace it with?
As far as I can tell no one has yet invented a suitable replacement.
Re: (Score:2)
So? (Score:2)
I like Vim.
But why isn't it the default editor in this edit box?
Re: (Score:3)
Well, It's All Text! [mozilla.org].
Re: (Score:2)
Someone mod parent up. I discovered this earlier today and it's made me very happy.
You just have to make sure that wherever you want to use it is a textarea (eg: disable rich formatting in a mail client)
Install Pentadactyl (Score:3)
Pentadactyl is much more than this. It allows you to fully navigate and control your browser using keyboard only in very natural vim-esque way. It has extensive help. Just type
It's one of the reason why I love and use Firefox.
Re: (Score:2)
Because ed is the standard text editor.
Irony? (Score:2)
I like how the article is titled "Two decades of productivity" and the picture is of vim opened from a shell launched within vim. No shots of nicely formatted and highlighted code. Just a shot of the kind of crap you try to do when you're bored.
[Unintentional] Hilarity
Comment removed (Score:3)
Re: (Score:2)
I have it on second-hand authority that, while the kids at Kibaale Children Centre don't regularly use vim, they at least don't use emacs either... :)
I am pleased to say... (Score:4, Interesting)
In 1996, I developed Exuberant Ctags as a better ctags. Bram started including it in his Vim distributions and our programs were paired together in much the same was that Elvis was packaged with its own ctags clone, and Emacs was packaged with its own ctags. Eventually, Exuberant Ctags became large enough that it caused the Vim distribution to become too large to fit on a 5.25-inch floppy and Bram said it was time to let them grow separately. Exuberant Ctags, as well, got picked up by the Linux distributors as the resident ctags program.
I have always enjoyed working with Bram over the years and wish I could have met him. He is a very pleasant and easy person to work with, very accommodating, and very bright. I think very highly of him and I am glad to see his editor become one of the bulwarks of Linux distributions, as well as used on many other platforms.
Darren Hiebert
Re: (Score:2)
I worked on a patch for VIM ~2001 for combining searches with code folding. You could search for a term, tap zf or whatever the shortcut was, and it would fold away all lines that didn't match that code, with an adjustable number of context lines around it.
I found it very very useful for code refactoring, but Bran didn't want to include it in the main release. So I just had it up for years as an optional patch for people to compile in.
Re: (Score:2)
emailed Bram on these issues and he was very responsive to my reports
When vim 6 was in testing I ran into a small problem with one of the release candidates. Something minor that probably only affected me and a small set of other users. I emailed bugs@vim.org, and in less than 24 hours I got a personal response from Bram who told me he had replicated it and thanked me for my example. It was fixed in the next candidate.
I would be pleased with that kind of responsiveness from a commercial software vender.
Re: (Score:2)
Re: (Score:2)
+1
Re: (Score:2)
?I am pleased to say that I was the one who first added Vim to the Sunsite Linux archive back in 1993.
Since nobody else seems to have done so, can I send you very warm thanks? My skin still crawls when I'm on a system and I get:
vim: command not found ...and have to resort to 'vi'. Can I also send you karma for mentioning Sunsite, which nobody much on ./ seems to have has any recollection of nowardays, which was particularly galling the in the Sun (ghod rest their bones) bashing days of the 200?s.
Vim and its Clone (Score:2)
Which came first... (Score:2)
I occasionally have to use vim to edit the Makefile for emacs.
I've used vim everyday for the last 15 years (Score:3)
Next to gcc, vim is the greatest open-source project ever created. I've used vim every day of my life since discovering it back in 1996 as a replacement for basic 'vi' on a Sun Sparcstation. I'm currently using vim to write software on my MacBook Pro in a terminal window.
I started off learning vi on a DEC workstation back in the early 1990s while trying to keep my head above water as a freshman CS major. Since then, I've used vim inside of Visual Studio (with a plugin), inside of Eclipse (with a plugin), as the editor for the mutt mail client, and in a hundred other contexts.
Vim is excellent software.
I use both Emacs and Vim. (Score:3)
Re: (Score:2)
Love/Hate (g)Vim (Score:2)
I love gVim (use it everyday at work) but god, some of it _still_ sucks.
- Can't map Ctrl-1, ... Ctrl-0 to custom mappings
- Can't distinguish between Ctrl-Char, Ctrl-Shift-Char, and Ctrl-Alt-Shift-Char
- Can't distinguish between TAB and CTRL-I
- Can't (re)map CAPS (I use CAPS in my games, remapping it to ESC is NOT an option)
- no way to "unbind" ALL keys
WHY is it so hard to find an editor that lets me use ALL the keys??
Vim would be perfect if it fixed the custom keybindings.
Go cat, go... (Score:2)
Elvis [vi-editor.org] knock vim into a cocked hat!
No garish colour schemes or any of that nonsense.
Which would you rather use: an editor named after a Rock Star or one named after a brand of toilet scourer? I rest my case.
Re: (Score:2)
No garish colour schemes or any of that nonsense.
huh? Wasn't elvis the first vi clone to do syntax colouring?
Re: (Score:2)
huh? Wasn't elvis the first vi clone to do syntax colouring?
Out of the box, on Slackware, the C keywords, pre-processor directives and macros are bold black and everything else is black. The background is white. This is the correct behaviour for a syntax-highlighting editor.
Re: (Score:2)
This is the correct behaviour for a syntax-highlighting editor.
Why? It seems that to the non-colour blind among us, on colour terminals colouring offers a greater range of visual hints than fonts (and unerlining) does.
Re: (Score:2)
I am (partially) colorblind. And I prefer colored output.
When you open a quote and vim colors everything after it bright pink or whatever, it is really really easy to notice you haven’t closed it.
Re: (Score:2)
Since many text files, not least XML ones, are pretty much toilet-worthy, I would prefer a toilet scourer than a rock star that died on a toilet.
It's a magnificent editor, but... (Score:2)
Vimscript. Ewww. I know it takes backward compatibility seriously, but what I'd give for PCRE and syntax highlighting that didn't suck my netbook's CPU dry...
Re: (Score:2)
:qa!
Re: (Score:2)
Re: (Score:2)
In bash, C-x C-e is shorthand for "invoke $EDITOR on the current command line and run the result when $EDITOR exits". If you export EDITOR=vim you can get vim instead of emacs, and all is happy.
Re: (Score:2)
If use vim as your editor then you might as well use bash's vi mode.
set -o vi
Re: (Score:2)
bash: emacs: command not found
Not a problem for me.
Re: (Score:2)
No, we are not idiots like you.
Pico and Nano are for children and idiots.
Re:still using it for remote admin (Score:4, Interesting)
I use vim for programming, tweaking, both locally and remotely. Don't quite like its GUI, I prefer to use it on konsole, xterm or whatever terminal emulator is at hand, even though I use KDE. Nothing beats vim for programming, with its syntax highlighting, fast navigation within a file and among files, reindenting, searching and replacing, window splitting and many, many other features, all available in a couple or two of keystrokes. I consider myself a long time vim user, but I know I've barely skimmed over the surface of its ocean of features. I'm very grateful to Bram Moolenaar and the hordes of brave but anonymous vim contributors.
Hope vim lives on at least another twenty years.
Re: (Score:2)
I use vim for programming, tweaking, both locally and remotely. I use KDE.
Get Yakuake. Now I can use one of those extraneous function keys on my Apple keyboard to get a terminal to dropdown or go fullscreen at any time.
Re:still using it for remote admin (Score:4, Informative)
I use it all the time, for editing, for development, for general work, for writing my todo list today. Hell, I sometimes catch myself trying to use VI commands in my web browser, or other GUI programs.
It's actually come to replace all my other stuff, from IDE's to graphical text editors. I'm really happy with it!
Re:still using it for remote admin (Score:4, Informative)
Ditto.
For a web browser look into vimperator.
Re: (Score:2)
Re: (Score:3)
Re: (Score:2)
Who installs X on a server?
Actually, every server I've ever logged into has had X11 on it. (And I've logged into hundreds of different servers over the years.)
Or they've had the X11 clients in any case. If you don't know why this would be a common thing to do, I guess you're not that familiar with X11.
|>ouglas
Re: (Score:2)
Why would you have it on a webserver?
What possible use would you have for it?
Re: (Score:2)
Re: (Score:2)
You can't test it from another machine?
Installing a web browser on a http server would be pretty fucking irresponsible.
Re: (Score:2)
Why would you have it on a webserver?
So when you log into the web server using ssh you can use xterm and emacs and xmore and xman a myriad of other X11 clients that you might wish to run. Though 99% of the time it would just be xterm and emacs.
|>ouglas
Re: (Score:2)
Re:NANO ftw! (Score:5, Informative)
Re: (Score:2)
Amen. My SOP when installing a new system is "apt get purge nano".
Re: (Score:2)
Haha. By cooncidence, mine is "dpkg --purge vim vi elvis." Because I hate it when it gets selected as sensible-editor and pops up in reportbug before I've had time to configure things.
Different strokes.
Re: (Score:2)
And more importantly... (Score:2)
C-x C-c
Re: (Score:2)
I think his name's Moolenar, but I second your thanks to Bram - especially his commitment to the Kibaale Children's Centre. I work at the school in Vancouver, Canada that played an instrumental part in starting KCC, and many of my colleagues have worked there over the years. KCC is still doing fantastic work for the poorest of the poor in Uganda.
Re: (Score:2)
:noremap q <nop>
Re: (Score:3)
There's no editor more powerful than Vim or Emacs. People usually prefer other editors despite being less powerful, since that power comes with a big learning curve.
As for speech, I'm afraid you haven't thought of the implications of a room of programmers all talking to their machines.
Re: (Score:2)
Both vim and emacs are editors for people who do a lot of editing and writing code. Lots and lots and lots of it. Metric fucktons of it, in fact.
They are sophisticated tools that require a fairly great deal of practice to use properly, but once you master them, you can do wonders with them.
Graphical environments are easier on the memory; things are shown to you so you don’t have to memorize them. If you don’t need such things often, it is more efficient to search for them when you need them; if
Re: (Score:2)
Sorry grandpa, we'll get off your lawn.
Why don't you tell us about your new lawn mower, or weed whacker? I bet you have some stories to tell about it.