Vim 7 Released
houseofmore writes "After many years of development, Bram Moolenaar, creator of Vim, today announced version 7 of the widely used editor. New features included spell checking in up to 50 languages, intelligent completion, tab pages, extended undo branches and much more. Downloads available here for Unix, Windows, Mac and more."
I'm waiting for the emacs emulation mode. (kidding, kidding)
I remember the first days of learning VIM.... Glad to see it progressing.
I, for one, welcome our upgraded syntax highlighting overlords. I can't remember the last time I wrote syntactically incorrect code since I switched from vi. Of course, I can still write BAD code, or silly code, but vim catches my typos every time.
I want to delete my account but Slashdot doesn't allow it.
This thread smells the troll, don't you think ? :)
I have discovered a truly marvelous proof of killer sig, which this margin is too narrow to contain.
:%s/vim 6.4/vim 7/
:wq
Intelligent completion for C, HTML, Ruby, Python, PHP, etc.
:set autorespond .
Yup, this one alone is worth it. Need to write some code? Forget your IDE and just use the C "autoprogram" feature of the new Vi. This message was composed with
No Thanks
How does it relate to edlin?
quit
q
stop
exit
[esc]
quit damnit
ahhhhh
(just kidding, I know how to quit from vim)
Now I can die.
Great, but will it fit in a 360kb floppy?
A spellchecker? Now, to be fair, I'll probably find that useful. Still I can't help but feel vim is one step closer to proving jwz's law.
I know I will get flamed for this. Oh well, it's the truth. I'm sure there are a few others that would agree with me.
Meh.
Small executables, small minds.
I was a TA for a basic CS class for over a year. Upon first exposure the VIM (the editor that our system admins installed) many students got really frustrated. Most of them didn't understand how as they scrolled up on down with the mouse that random pieces of text got inserted all over their programs causing a tons of errors.
I too was pretty annoyed with VIM at first as that it is set up in such a way that it expects you to be a power user. I haven't downloaded the latest version but will do so shortly. But I would like to see a version of VIM that the everyday joe shmoe could use. Less clunky font, easier to set preferencess, and a way to turn of all those linux short cuts that we non-linux people are plagued with. I think there is a definate need for a more userfriendly version of VIM
yay.. spiffy new vim, vrs spiffy old vim..
though, the new features do look nice.
I actually know a guy with a ":wq" tattoo (on the back of his neck)
anime+manga together at last.. in real time.
I don't know why, but I've gotten used to Ctrl+[pn] and prefer that over popups that other IDEs seem to throw up.
Quidquid latine dictum sit, altum videtur
Vertigo In Madness :)
I still have not understood why people waste their time developing and using such pieces of software where you have to bang your head against the screen to make the editor work
Like someone said: Keep It Simple Stupid
Maybe the developer(s) of Vim should also know this
Now I'm waiting for a vim-plugin for Firefox and Opera, just like the Konqueror guys did it. So I can finally spellcheck and syntaxcheck my slashdot comments... ;-)
I wonder if it has a nicer way to cut and paste.
I have always been unhappy with yank-number of lines
or marking, etc.
There is no version 7 for Mac available yet.
For years I tried to indoctrinate myself with vi, too.
Then i found SubEthaEdit for mac os x.
I've really found no need for anything else since. I highly recommend anybody on an apple try it out. I feel like it follows the philosophy of vi (lightweight, responsive, simple, functional), but integrates well with the rest of the OS (uses apple's spell check, plays well with os x services and keyboard shortcuts). and, though i know this isn't for everyone, it follows apple's emacs-style ctrl-f, ctrl-b, etc navigation.
The paradigm is different that most other editors. Most other editors use control keys (of some sort) for functions. Vi you enter into edit mode and type away, then leave edit mode and operate on your work. It is a different concept but it has its advantages. (For one: Except for capital letters I've never had to press two buttons at once, ever ... you escape to exit your edit mode and then it is all single key sequences to do what you want. Simple things but, for example, hitting the control button requires shifting your hand in an akward position wheras :w you don't have to move whatsoever ... )
Shhh...We can't be giving the noobs a warning about not saving their file now.
made with vi
The CB App. What's your 20?
http://www.vim.org/htmldoc/uganda.html ... while RMS could finish Hurd from his emacs fundraising
It is very difficult to turn off *ALL* of the highlight features. I don't want the search highlight, syntax highlight, spell highlight, etc. As I find the config option to disable each feature, some other highlight function remains.
It needs an option: "justlikevi=true"
I thought vim had everything one could ask for! What am I to do now, but download it and be amazed.
But seriously, how does this work?
DG
Want to learn about race cars? Read my Book
realultimatepower?
I see versions for Unix, Windows, Mac, etc. What about the most important OS to run a text editor from . . . Emacs?
I find continually having to use the ESC key to be highly annoying. And really, to save a file, I don't really see CTRL-S being harder or slower to type than ESC :w
Meh.
Someone had to remind slashdotters of the superior editor... Ed, man!
I don't know about anyone else that uses Vim on Windows but I'll be waiting for GVIM version 7 so that I can upgrade. This is truly one of the best script editors I have worked with.
The ability to become proficient with vi is a lot like being able to watch, follow, and understand a Stanley Kubrick movie. Some folks can just get it and some don't. If you were able to watch SO:2001 or AI from start to end, the very first time, and not get lost, and understand it all... then you'll probably pick up on becoming proficient at using vi/vim very quickly.
I managed to find out some of this myself.
This is kinda cool: define a function (or a variable, and who knows what else) and CNTL-n drops down a list of functions or variables or whatever that match the pattern to the left of the cursor.
So it you have some_ungodly_function_name, you can type "som(CNTL-n) and autocomplete the name.
Very nifty!
DG
Want to learn about race cars? Read my Book
From: patl@athena.mit.edu (Patrick J. LoPresti)t e.edu!think.com!snorkelwacker.mit.edu!bloom-picayu ne.mit.edu!athena.mit.edu!patl
/bin/ed /usr/ucb/vi /usr/bin/emacs
Message-ID:
Sender: news@athena.mit.edu (News system)
Subject: The True Path (long)
Date: 11 Jul 91 03:17:31 GMT
Path: ai-lab!mintaka!olivea!samsung!zaphod.mps.ohio-sta
Newsgroups: alt.religion.emacs,alt.slack
Organization: Massachusetts Institute of Technology
Lines: 95
Xref: ai-lab alt.religion.emacs:244 alt.slack:1935
When I log into my Xenix system with my 110 baud teletype, both vi *and* Emacs are just too damn slow. They print useless messages like, 'C-h for help' and '"foo" File is read only'. So I use the editor that doesn't waste my VALUABLE time.
Ed, man! !man ed
ED(1) UNIX Programmer's Manual ED(1)
NAME
ed - text editor
SYNOPSIS
ed [ - ] [ -x ] [ name ]
DESCRIPTION
Ed is the standard text editor.
---
Computer Scientists love ed, not just because it comes first alphabetically, but because it's the standard. Everyone else loves ed because it's ED!
"Ed is the standard text editor."
And ed doesn't waste space on my Timex Sinclair. Just look:
-rwxr-xr-x 1 root 24 Oct 29 1929
-rwxr-xr-t 4 root 1310720 Jan 1 1970
-rwxr-xr-x 1 root 5.89824e37 Oct 22 1990
Of course, on the system *I* administrate, vi is symlinked to ed. Emacs has been replaced by a shell script which 1) Generates a syslog message at level LOG_EMERG; 2) reduces the user's disk quota by 100K; and 3) RUNS ED!!!!!!
"Ed is the standard text editor."
Let's look at a typical novice's session with the mighty ed:
golem> ed
?
help
?
quit
?
exit
?
bye
?
hello?
?
eat flaming death
?
Note the consistent user interface and error reportage. Ed is generous enough to flag errors, yet prudent enough not to overwhelm the novice with verbosity.
"Ed is the standard text editor." Ed, the greatest WYGIWYG editor of all.
ED IS THE TRUE PATH TO NIRVANA! ED HAS BEEN THE CHOICE OF EDUCATED AND IGNORANT ALIKE FOR CENTURIES! ED WILL NOT CORRUPT YOUR PRECIOUS BODILY FLUIDS!! ED IS THE STANDARD TEXT EDITOR! ED MAKES THE SUN SHINE AND THE BIRDS SING AND THE GRASS GREEN!!
When I use an editor, I don't want eight extra KILOBYTES of worthless help screens and cursor positioning code! I just want an EDitor!! Not a "viitor". Not a "emacsitor". Those aren't even WORDS!!!! ED! ED! ED IS THE STANDARD!!!
TEXT EDITOR.
When IBM, in its ever-present omnipotence, needed to base their "edlin" on a UNIX standard, did they mimic vi? No. Emacs? Surely you jest. They chose the most karmic editor of all. The standard.
Ed is for those who can *remember* what they are working on. If you are an idiot, you should use Emacs. If you are an Emacs, you should not be vi. If you use ED, you are on THE PATH TO REDEMPTION. THE SO-CALLED "VISUAL" EDITORS HAVE BEEN PLACED HERE BY ED TO TEMPT THE FAITHLESS. DO NOT GIVE IN!!! THE MIGHTY ED HAS SPOKEN!!!
Switching CR/LF to ^M and vice-versa is easy with joe. I have a hunch that anything that can be done with vi/vim can also be done with joe. Joe has regex also you know.
Meh.
but yet even I use syntax highlighting (in joe)!!! I don't understand why you wouldn't want it.
Meh.
The best reason to know vi is that it is unsually installed on every UNIX box. It is a hoot to see someone who doesn't know vi working on a system that doesn't have emacs do cat >file
Notepad is the probably the worst text editor in history.
Meh.
It's part of the vim 7.0 package, i.e., you get vim 7, you get gvim 7! Cool!
-yagu
I guess I can look forward to getting a package sometime in 2007 :-)
Creationist Textbook Stickers Declared Unconstitutional by CowboyNeal
My escape key is no further from the "a" key on my keyboard than the control key, and I don't have to twist my wrist :) And as another poster has already pointed out the escape key can be remapped.
However, if its developers try to make a complete word-processor out of it, then I will would rather not upgrade to that version.
speaking of vim, is there a way to fold all function definitions and leave the declarations and parameters intact in one go? i dont want to go to each starting { and 'zfap'.
GNU Emacs is at version 21.4. Can we really trust such an immature editor?
..your site looks like it was made by someone that only uses vi.
Meh.
So how do you manage with the everpresent colon in commands?
:q? Semi-colon I would understand, but the colon is a bit much.
I know, I know, different paradigm, get used to it and all that, but whose bright idea was to require SHIFT for command-mode expressions like
"Only the small secrets need to be protected. The big ones are kept secret by public incredulity." - Marshall McLuhan
Eclipse Rules!!
In case somebody didn't notice, it's the third millennium; and you people keep chewing on some creepy crap that is of a historical insterest at most...
(OK now that I made this post, I can go back to my dumb terminal now.)
... When did Perl get demoted to 'etc'?
Jes' curious...
I played with gvim a long time ago, and while it seemed nice (plus it seemed quick and lightweight), I just don't want to take the time to learn it. I spent the last 10 minutes trying to figure out how to change the default font, and make it stick next time I open it up. For windows users, the settings just SUCK. Crimson Editor for me, thanks.
The thing that drives me wild with vim is its gratuitous incompatability with vi on repeated undo's.
I'm a long-time-VIM-hater-turned-lover. I've been working with Linux systems for years, but always refused to learn my way around VIM, choosing to stick with nano instead. Why for the love of god not at least make Ctrl-C or Ctrl-Q or 'quit' or SOMETHING work???
After sitting through a presentation of a heuristic analysis of VIM in one of my HCI classes, where VIM was ridiculed for being the most un-intuitive, un-user friendly pieces of software since MS-DOS, I never thought I'd find myself using this tool... and actually LOVING it.
Well... fast forward a few months... I got fed up with nano's lack of a search-and-replace feature, and didn't feel like learning awk or sed. I finally decided to give vim a serious try. The key was finding this cheat sheet.
Now I love it... I'm cw'ing, y'anking, dd'ing away. Mind you I still prefer Eclipse for full-fledged development, but there's nothign like super quick and efficient scripting with vim.
Learn it. It's worth it.
There's always pico, nano, Diakonos, gedit, ... But frankly I love using vi[m] :)
you had me at #!
Parent should be moderated +3 funny.
What you want is notepad.exe!
I think there is a definate need for a more userfriendly version of VIM
"Vim is user friendly, it's just picky about who it's freinds are."
Seriously, if you want a "user friendly" text editor use gnotepad, gedit, kate or any other GUI editor for Linux. Or nano, pico or ee on the command line.
Vim is just fine the way it is, especially considering that there are plenty of alternatives if you don't like it's interface.
Creationist Textbook Stickers Declared Unconstitutional by CowboyNeal
I loved VI until I started using Dvorak.
vim is bloated. Why can't they skip the fancy-shmancy keystrokes and other bloat no one needs, and make it more like edlin? hell, edlin will even run in 640K, which ought to be enough for everyone! ;)
The Christian Right is Neither (Christian nor right). See: Matthew 23, Matthew 25, Ezekiel 16:48-50
I just downloaded Vim 7 on my SUSE system and I want to work on my ocaml programs but it doesn't appear to offer ocaml syntax highlighting and autocomplete by default! Is there some way I can enable this functionality, if it exists?
I just use nano ! Its waaay smaller ... like a milliardth! ( get it ? )
Someone should create Yocto ...
stands for 'Visual Editor, Improved'. No shit.
We suffer more in our imagination than in reality. - Seneca
I actually hit the ctrl key with the "heel" of my left pinky -- that joint where the pinky joins the palm.
Patrick Doyle
I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
I tried to figure out exactly how steep vi's learning curve is, and I got a DivideByZeroException... :(
perl -e 'foreach(values %SIG){$_="IGNORE";}while(){}'
You know I never figured out why Pico and its open source cousin nano weren't more popular. Maybe they are to easy to use.
I grew with 'jed' in emacs mode, since it was much faster on 486, but nowadays more and more often just launch vi/vim. 0 seconds vs 2 seconds is still a big difference for those one line edits.
'Once scientists, even the dim-witted social scientists, get muzzled, the Western Civilization is finished.' - oldhack
What a useful feature this will be, a lot of people have told me my intelligence has been lacking.
-= This is a self-referential sig =-
Wow, just a few minutes ago I was wondering when Vim 7 was going to be released because I wanted to make some improvements to a Haskell plugin that seems a bit dated.
Great work Bram and the crew, and congratulations on getting hired at the big G.
I use jEdit. Only downside with that is that it's a slowpoke compared to Vi or Emacs. No news here. Question: Besides requireing to turn your brain off when learning to operate it, does Vim do all the stuff jEdit can do? Line Numbering, Folding, Bracket Scope Highlighting ... What's with search and replace across directories, etc.
Or is it that one is expected to use other CLI tools for that?
We suffer more in our imagination than in reality. - Seneca
Even the first time I tried using vi I didn't have to resort to the power button. Ctrl-Z, ps, kill.
This thread isn't complete without mention of Bill Joy, the creator of vi. He's the one that should be thanked for most of the things that everyone has mentioned that they love about vim.
_ greatest_gift/
http://www.theregister.co.uk/2003/09/11/bill_joys
There's viemu for VS2005/VS2003 and viPlugin for Eclipse.
Also, if you're learning Vim and start liking it I would recommend keytweak on windows and xmodemap on Unix for swapping Caps Lock and Esc.
Come on guys....keep the OS X version up to date.
I'd probably use Notepad if it would tell me what line the cursor is on.
Hands in my pocket
mod me as a troll. just expressing my opinion. who cares about vim? get your head outta the 70s you old men.
a I get into a regular editor and starttypxxxx start typing esc x a all over the place:x
Autonomous Retard -- Is your camp safe? UnsafeCamp.com
My first vi encounter was back in the days of the dinosaur. It was the later cretaceous, to be exact. At the time people used a wide variety of terminals to connect to the computer. The terminals themselves tended to be system specific, so that some had function keys, other didn't; some had arrow keys, others didn't; and some had meta keys, while others didn't. Using such a variety of terminals for Unix was a major problem, ranking up there with the problem of using a huge variety of printers. But then came vi and it didn't need function keys, arrow keys or meta keys. I could finally have a full screen text editor on ANY terminal I chose. With a tiny handful of commands I could be productive. In comparison to the other editors, it was easy to use. At the time vi was a huge step forward.
Modern interfaces with mice and menus and toolbars may have made vi somewhat obsolete, but I would still rather write software using vi than with <hack> MSWord...
p.s. The problem with emacs was that it requried two meta keys, which weren't always available, and even if they were, may be in different keyboard locations under different names. It also required chording which slows down typing (especially if you weren't sure where the meta keys were on this keyboard). And as other people have pointed at, at the time you were guaranteed that vi would be available on any Unix system, while access to emacs was hit or miss.
A Government Is a Body of People, Usually Notably Ungoverned
Yes!! If you've ever wanted an assistant for your favourite editor, check this out!
To all of you stubborn elitists: GUI editors like UltraEdit provide the same functionality without the ridiculously steep learning curve. GUIs + Keyboard Shortcuts are your friend, and I find that most hardcore VI users are to damn proud to admit that.
But you can use either vim or emacs on a linux server you're getting to via SSH and you can do fix ups. The only alternative is 'ed'.
I was recently astonished to discover that vim is ahead of emacs in editing right-to-left text. That is, Arabic and Hebrew (and probably Farsi). I had switched from the old vi to emacs in the 1980's and hadn't been following vim development. The idea that vim was ahead of emacs in anything was a shock. But it is.
I18N == Intergalacticization
I'm a newcomer to mode editing. I first got interested in it when I bought my laptop: on most laptop keyboards, the nonalphanumeric keys are absolutely clumsy and wrist-stressful to reach. This is what really got me into using Vim. A posteriori I realize that the benefit in terms of relax on the hands and in speed is enormous. The only problem are the spurious hjklxxxxiaddgg coming up when using other programs :)
"I'm never quite so stupid as when I'm being smart" (Linus van Pelt)
spell checker? email?
Bah, vim 8 will be rewritten in a functional scripting language that only cs majors have ever heard of, will have a built in usenet client, and the ability to display inline images. It will also feature inline evaluation of its scripting language, be completely confirguarable, but only by writing scripts in that language, and pretty much any kind of extension whatsoever through modules written in that language. It will feature every feature in every application ever. It will be a combination, IDE, movie player, web browswer, word processor.
Vim 8 will be the bastard child of emacs, MPW, and cyberdog. All the advantages of an entire operating system, with all of the advantages of running everything in the same process and address space.
IIRC, the presence of vi and ex are part of required compliance for POSIX and the Single UNIX Specification. So, it is not just there by convention or convenience, but is a requirement for guaranteed inter-operaability, along with ed, sed, and awk. Or does POSIX simply define the behavior of those tools and not require their presence?
Ever since I found notepad++ http://notepad-plus.sourceforge.net/, I have never looked at another editor.
My favorite shell in the late 80's was JADU (Just Another Disk/Directory Utility) which had similar keyboard driven command interface. Not quite as varied as vi, but I loved it. "d" for delete, "m" for move, "c" for copy. You could use the mouse, but things are so much faster with your fingers on the keyboard.
Nowadays I love vi, and often am reminded of JADU from way back.
J
It's all in the subject, dammit. Stupid filter...
Who needs anything besides TECO.
Catch the cached copy from mirrordot at http://mirrordot.org/stories/2c9980c06779ce9edee1a 875498fc2f7/index.html ... here's the highlighted changelog:
Do yourself a favour, get over the learning curve. You'll be glad you did.
Sticking feathers up your butt does not make you a chicken - Tyler Durden
And on laptops. My laptop sticks these buttons in strange locations that I can't hit by touch. It also shrinks the buttons. With Vim the only non-alphanumeric button I need to hit is escape. I never thought a computer as technologically advanced as a laptop would benefit from an editor with roots as old as Vim, but it does.
Penny - plain text accounting
Everyone who says about VIM that "it's hard to learn" don't really get VIM.
It's not supposed to be easy to learn. That's just not a consideration when it comes to VIM. In fact, the only consideration of VIM is to provide good tools for editing a file of source code.
That's pretty much it.
And it does that one job very well and efficiently.
(Of course, I don't really see how spellcheck has anythnig to do with editing source code, but I guess it was easy enough to bring in a spellchecker. Does it have its own dictionaries or does it use e.g. ispell's dictionary?)
Right slash to search
Period to repeat a command
I to insert at the beginning of the line, i to insert at the cursor
yy to copy a line, 5yy to copy 5 lines
dd to delete a line
cw to change a word
ma and y'a or ma and d'a to delete or copy a block
p to paste
u for undo
x to delete a character
% to find a closing bracket or parenthesis
That's really all I've ever learned or needed. It's a pretty small subset (and getting smaller with each release), but I get by on it!
It's not wasting time, I'm educating myself.
In addition to the above (all excellent, and probably recommended, resources), here's an absolute beginner's crash course to getting around in vim. (RTFM for much, much more.)
:w - save file :q - quit :wq - save file and quit :q! - quit without saving :help - self-explanitory
Once you launch vim, you're in command mode. You do stuff in command mode.
When you need to type something, you need to switch to insert mode. Type i in command mode for that.
Type all of these in command mode to use them. To move from insert mode to command mode, press ESC.
j - move down
k - move up
h - move left
l - move right
i - insert mode
If this was all vim was, nobody would use it. The power comes in the ability to do complicated text manipulations with just a few keypresses. For example, you can do many commands more than once by prefixing them with a number. Typing 25l is equivalent to pressing the right arrow key 25 times in a typical text editor. You just saved 22 button presses.
I would personally recommend vimtutor, as another poster suggested. Just type that at a shell and vim will start with a text file that explains how it works. That's how I learned the basics. It took about 10 hours over the span of five days to go from absolutely no knowledge to being comfortable using vim regularly.
Good luck.
I saw this Quick Reference linked elsewhere on slashdot. It is less comprehensive but prettier and easier to tape to the wall because it is printer-friendly. Normally I'm not printer friendly, but who wants to start a browser just to look up Vim features?
Simon's Rock College
Well, I guess you'll be using notepad from now on.
(View | Status Bar)... on XP, anyway.
vim version
:/vim6/s/6/7
:$s/Old Stuff/New and Improved Stuff/
:1s/\(Review:\).*/\1 I LOVE IT/
:wq
BOO
You ought to raise that issue more widely - maybe post it on USENET. A lot of vi users might not have considered that before. Your explanation of why emacs is great and vi sucks is really clear, and should certainly settle the matter.
Please explain how you manage to type ":" without pressing two buttons at once.
.vimrc line ever.
map ; :
The best
The link to the Yahoo mailinglist archive is dead. An alternative archive is here.
http://www.hdosport.com/
http://www.letsbuyshoes.com/
http://www.pelime.com/
http://www.hdotrainer.com/
With this, doing
Please do tell me how you get the ":" without hitting two keys at the same time.
.vimrc.
map ; :
The best line I have in my
I want auto variable complete in c mode, perl mode, c++ mode, ruby mode, python mode, and any other programming language mode (similar to word complete in openoffice). Visual Studio 2005 has this for c, c++, and it's .net languages. Oh and a intellisense type thingy wouldn't hurt either.
Nah, GNU emacs will be feature complete when it has a mode for editing levels of Duke Nukem Forever.
Because you can't use the mouse and type the keyboard at the same time, when you have handcuffs.
Use my userscript to add story images to Slashdot. There's no going back.
I think that this might be the Cream you are searching for...
If not this is useless as ODF is taking over! ;)
I hope this version has better macro handling.
.vininfo:
/etc/vim/vimrc:
,v <HOME>i<CR># Site variation<CR><ESC>yyp<UP>i# <DOWN><DOWN><HOME><CR><UP><UP><ESC>
If anyone knows of a way to record AND EDIT macros I'd dearly love to know about it.
The regular 'qv' '@v' method of recording and playing back results in something like this in
"v CHAR 0
~@>i^M# Site variation^M^[yypi~@ku# ~@kd~@>^[
The ^M and ~@ characters above are control-characters that can't be just copied and pasted btw.
You can do (more or less) the same thing by putting the following in
map
but then of course you lose the benefits of the record feature in the first place.
So how does one translate one to the other without a whole heap of sed?
"Nine times out of ten, starting a fire is not the best way to solve the problem." - my wife
That's very nice and all, but does it include an operating system yet?
http://mozex.mozdev.org/
~ roscivs
Now that it is version 7 shouldn't it be vii?
This issue is a bit more complicated than you think.
I've never used vim or emacs, but would like to learn. However, I'm concerned that I'd be losing out on a lot of Eclipse's functionality when it comes to writing Java, e.g. refactoring, object-sensitive method name autocompletion, etc. Would vim or emacs really be better?
Yeah, I haven't used VIM much; however, a while back I needed an easy way to edit config files on some WinXP Pro computers that I manage remotely. VIM was the first text editor that I could find that would work over the Microsoft Telnet Service (via VPN). I still don't know the interface that well, but there are a million or so cheatsheets on the web to get the basics going.
If you like Vi try Cream:
Cream
http://www.dina.kvl.dk/~abraham/religion/editors-1 01.html
Masochists use "dd of=/dev/hda skip=3845895 bs=1" for fine-grained and powerful editing.
Sados use "echo >>myfile".
Purists use "cat myfile".
Bulgarian vx'ers who could never afford msdos6.22 upgrade use "debug.com".
Bulgarian who could upgrade to windows use "notepad.exe".
Bill Gates uses "edit.com", to patch infinite lives in nibbles.bas.
Scientifics use "ed".
Nostalgic use "joe".
Shy people use "vim".
Autists use "vi".
Retired people use "emacs".
Russian use "le".
Lazy people use "less".
Trollers use "firefox".
--
After using vim for 2 years and such, usually only for editing configuration files but not much coding, I still never really like it the way it is.
There are just way too many shortcuts you need to remember to make it of any use, if you don't, then vim just looks like a just plain painful editor. And ever since I have been editing various source codes on Windows with mouse and keyboard with about only 10 shortcuts to remember to get the full out of a text editor, I can never really appreciate whatever is good about vim. Sure you may not have to move your hand from the same position, but going back and forth the insert mode and command mode with mind keep boggling to think what I had to press to just delete a few part of a line, it's just never ever been any productive to me in the years...
And in the end, I feel like vim are for people who don't really use mouse as an external input for editing source codes. And I never feel using mouse on a text editor is slowing me down or clumsy.
Is it the generation of people who has been the keyboard guy in the past and recent new comers are all starting to appreciate the use of mouse over 50 keyboard shortcut you have to remember to move the cursor?
Now I understand the name for Nintendo's new console going for geek appeal - they're saying it's twice as good as Vi!
exactly how do you figure vim has better regular expressions that P-E-R-L ???
I call bullshit, but feel free to post some evidence of this.
vim is the program that I use most. I used to code mostly shell stuff as a sysadmin and RAD niche programs: bash, perl, python, ruby... I always use vim for that. I also use vim for html, css, javascript, latex, and plain-ol' writing any kind of text.
These days I've been using eclipse a lot in emacs mode because my current job requires lots of java coding of a program with a huge code base, and my wrists are starting to hurt. Seriously, emacs is also good (IMHO not as fast as vim if you know both really well -- I use emacs mode in bash and know it pretty durn well too), but the weird stretches that you do in emacs will give you serious hand and wrist problems from awkward repetitive hand movements.
The other reason I prefer vim is that I REALLY LIKE having an editing mode separate from an insert mode. I like using vim to navigate through my code without worrying that I'll accidentally delete a character or make a typo. I actually do that all the time when I use emacs mode in eclipse, and then I have to undo my changes (but sometimes it takes a second to figure out which was the last intentional change).
With vim I can navigate through my file with little worry that I'll mess anything up.
And vim is FAR superior to old vi!!! Syntax-highlighting, word completion (C-n, C-p, dictionary completion, file completion...)
Emacs may be somewhat more powerful/extensible, and I believe it's quite good for coding in C/C++ and integrating with build tools -- a wonderful editor and environment. But for shear editing speed I think NOTHING can beat vim.
well, that would be Mutt. MUA of the gods.
I just realized that I can bind attaching to a screen session running Mutt to a key in Vim. This has great (recursive) potential for rending the fabric of the universe (or at least blowing up the stack in my shell). Why didn't I think of that earlier?
Remember that what's inside of you doesn't matter because nobody can see it.
Where are the screenshots??
free speach
Did you mean: free speech
Finally we can determine what the best text editor is and all the other people can wait till the next year and new releases to do battle!!.
If you press ctrl-g or use the corresponding menu option to jump to a line the popup will display the current line at which the cursor is located. Make sure word wrap is turned *off* otherwise the keyboard shortcut will do nothing and the menu option will be disabled. I prefer vi's persistent per-line display but after years of finding myself on Win2K servers with only notepad available, pressing ctrl-g and then esc to get a quick peek at the line number has become a near-reflex.
No Unicode, no GUI. Lame.
You've installed the development tools, right? If not they're in your Applications folder tucked away in something like Installers (I moved mine off to an external drive but they're in there somewhere).
So, grab the sources but make sure you get the extras as well. Put both in a temp directory, unzip the sources, then the extras, and then do something like
I'm stuck in the dark (frugal?) ages with one of those old style G4 PowerBooks so ppc makes sense for me.
people who use the keyboard a lot would naturally prefer the former.
having said that, i would love it if vi introduces a nice "menu" interface with key-shortcuts mentioned to achieve the desired task.
----------------- ;)
ps: my websites are vi powered
Can someone tell me how easy is it to extend vi/vim? I know it's in the manual and all that, but this is a question about the workflow. Can I define a function to be called anytime I want in vi/vim? In Emacs, it's quite trivial:
C-x b ...
That's control-x b, to change buffer
*scratch*
... to change to scratch (as in scratchpad)
(defun blah (arglist) (interactive) (...)) ... is the required action - it's just code.
just type away the function,
C-x C-e
evaluate last-sexp. No need to compile. No need to make or whatnot.
To run it now,
M-x blah
That's it. That takes no effort at all. This can be bound to a key by M-x local-set-key (tab completion is your friend here). For frequently used functions, save it in ~/.emacs
Or alternatively,
C-x (
to start defining a keyboard macro.
type your commands here, put some thought into this, could be tricky
C-x )
end keyboard macro
C-x e
Execute keyboard macro, subsequent e to repeat keystroke sequence.
To name the macro,
M-x name-last-kbd-macro (or somesuch, check manual for your specific version), it now looks just like a function. Can be saved, edited, etc by:
M-x edit-kbd-macro
or M-x insert-kbd-macro
Too easy...
I've heard of users coming up with a Java bytecode disassembler in under 20 minutes using these methods...see here
Newer versions of Emacs has macro rings for storing multiple macros or whatnot. I know vim has numbered keyboard macros, seems slightly better, but I cannot judge until I've tried it.
How about vi/vim?
is microsoft still shipping edlin?
I had the pleasure to meet Bram several years back at Linux Expo NY 1999. The man is truly a unique individual. While the majority of Linux geeks (especially the Slashdot crew, who tended to through things at their audience and just act goofy) clowned around a great deal, everyone bragging about thier accomplishments, and of course everyone bragging about all their stocks and options, Bram was very down to earth. This is a man that has legitimately made a tremendous impact on the UNIX world.
:make
There is a fairly funny story about Bram, we were sitting at the hotel, waiting for a Taxi or something, having a nice discussion about the evolution of Unix (I think, could have been that I was asking him about the Netherlands, who knows, doesn't matter in this context) and this gentleman, a man that I would have otherwise considered a fish out of water in my home town of NYC, performed an amazingly interesting feat.
There was a man sitting at the bar behind the bench we were sitting on. He had left his overcoat resting on the railing surrounding the bar. Another man came in off the street. He didn't look particularly unusual, maybe a little dirty for someone that belonged in a $300 a night hotel, but construction workers have conventions to, so why not, right? The man from the street stood next to the bench minding his own business as my conversation with Bram progressed, and then out of nowhere, Bram's arm flyed past my head and I found this other man nearly falling on me.
What had happened was the man from the street began to walk off as if he was heading to a Taxi himself and in the process had tried to take possession of the overcoat of the man at the bar when he wasn't looking. Bram had stopped the thief in the act and after the whole occurance was over, the hotel guard was resolving the issue and the man at the bar was brushing his jacket off and leaving his mouth gaping, Bram sat down and we continued our conversation as if nothing had ever happened.
Well, it's an interesting story to me at least. Sadly, it really takes a foreigner in NYC to be honest enough to go out on a limb to stop a thief. But the man with the overcoat should be thankful I hope.
Anyway, Bram, I don't typically talk about where I come from in this board, I like the minimal anonyminity that you're allowed as a logged in poster. But it's good to hear you're back in action. I'd also like to express the considerable pain and suffering I survived having ported a 1.2million line application to QNX using your VIM, I can at least say thanks for
Good luck with future versions, send me a private message if you'd like. It would be good to hear from you again.
The fate of an application is to eventually reach operating system status. In the year 2047, we are not going to use Windows or Linux, but two other competing operating systems: VimOS and EmacsOS. :-)
"http://www.hdotrainer.com/"
...was created in vim??? Thanks - I needed cheering up!
Are you telling me that a site that states...
Unsupported Browser
This application requires version 6 or greater of Microsoft Internet Explorer. Click here to download the latest version.
To see which version of Internet Explorer you're using, from your browser's Help menu, choose About Internet Explorer.
Time is an illusion. Lunchtime doubly so. - Douglas Adams
If you prefer Modeless Editors, have a look at Cream for Vim.
Personally I dislike it intensely, but it does have a place when people have issues with "Modes" in Editors.
Part Time Philosopher, Oft Times Romantic, Full Time Unix Geek
The Wikipedia article for Common User Access is found at
http://en.wikipedia.org/wiki/Common_User_Access
(Note the underlines).
By the way, note that while there are 600+ posts on this overdone topic, none of the Vi or Emacs fans have bothered to reply to your objection. I too have tried Vi/Vim am sabotaged by muscle memory. But I don't bother anymore when there are superb open-source (configurable, cross-platform, quick-loading, CUA-aware) editors like SciTE (http://www.scintilla.org/SciTE.html) around.
Not that I think that Vi/Vim are all that well designed, from the point of view of remembering and using keystrokes. H,J,K,L may have seemed logical to somebody once, but my fingers never could "get it", wanting the up-arrow to be over the down arrow. (And is J up and K down or vice versa?) I had to revert to using the arrow keys to get anything done, which I suppose the Vi people will tell you defeats the speed advantage of the editor. I don't think this kind of "learning curve" is worth the trouble.
Vim is one of the fastest editors I've used. I haven't used them all, but I have used Vim, Emacs, ed, notepad and its ilk, and Sam.
/n/ times", while in vi, you use extra keystrokes to jump in and out of the correct "mode". Either way, 7 keystrokes.)
Ooh, notepad! I'm impressed.
Its first big strength is that instead of hitting your down arrow twenty times then doing the same with the right arrow, for example, you can navigate to the same spot with five keypresses or so. "20j5w" would take you down 20 lines and forward five words.
So, pretty much like Emacs. (In Emacs, you use an extra keystroke to tell it "do the next command
Compare that to the hold a key and wait that's commonplace in other editors, or the alternative, which is to fumble for the mouse and attempt to line up your cursor with a tiny row of text then attempt to click between the correct pair of letters.
I admit, you've really got notepad beat.
You are completely right, my site looks like something from the late 90's! Which is basically the extent of my design abilities. I suck at design. I don't have any design smarts. I program the back-ends to sites, that is all. I will eventually go have a look at oswd.org and apply a good looking modern css template to my site.
Meh.
I've completely changed the look of the site and took out a lot of the garbage. Better now?
Meh.