Vim 7.2 Released 106
sanguisdex writes "After fifteen months of work: a brand new Vim release! This is a stable version. There are many bug fixes and updated runtime files. The only new feature worth mentioning is support for floating point. Upgrading from a previous version is highly recommended: a few crashing bugs and several security issues were fixed. For the details see the announcement or go directly to the download page."
in addition to the new release... (Score:5, Informative)
O'Reilly released the latest new version of their vi book, (now "Learning the vi and Vim Editors") [amazon.com] last summer with seven new chapters devoted to vim!
Re: (Score:2)
That reminds me when I was looking at the Programming Python book at Adlibris, another Swedish online bookstore, a couple of years ago.
Under "People who bought this book also bought..." was both a "how to lose weight" book and a depression self cure book.
As a Ruby programmer I though that was hilarious. :)
First post! (Score:1, Funny)
:x
Re:In Soviet Russia.. (Score:4, Funny)
:q!
Vi has two modes ... (Score:4, Funny)
beep constantly, and break everything
Re: (Score:2)
Ah, but it is very good at those things.:wq
Re: (Score:2)
:wq is too verbose. :x ftw
Re: (Score:2)
:wq is too verbose. :x ftw
try ZZ
Pssh. Vi. (Score:2)
The problem with vim is that half the time you have to give it a quick bang before it'll do what you want.
Note from a VIM user... (Score:4, Informative)
I was very tempted to use my mod points to mod this TROLL, but I try staying far away from anything that even smells like "modding down stuff you disagree with", so I'll Feed the Troll, instead...
How do I search-replace SMARTLY (i.e. with regexp) in Notepad?
Does notepad support syntax highlighting?
Does notepad support "jumping" to the last position when reopening a file?
Does notepad support auto-indentation? Language-dependent auto-indentation?
Does notepad support multiple buffers? (cut-n-paste)
Does notepad support variable tabstops? Using spaces as tabs?
Does notepad support collapsing/folding sections into a single line?
These features are just a tiny fraction of what I use in VIM *every single day*. Notepad does none of these. I used to use emacs, because the insert, command and visual modes confused me. It really didn't take long to get used to, however, and I generally prefer VIM now (although I'm perfectly happy using emacs instead).
I feel I should now come up with a car analogy, comparing VIM and Notepad, but the only word that comes to mind is Yugo. And that would be Notepad, in case you were wondering.
Re: (Score:1)
Re: (Score:2)
Using spaces as tabs is the Right Thing to do. Say you've got your editor set to tab stops every 4 characters, and I've got mine set to every 8 characters. If your files have tabs following other text (such as to put single-line comments in C sources), things that look perfectly lined up on your screen are all over the place on mine.
So set your editors to insert X number of spaces when you hit Tab.
Re: (Score:2)
But then my comments would get ragged and unaligned when I made small changes the the preceding code. This gets even worse in files with columns of data. And tabs were, after all, designed specifically for the purpose of aligning text. No, I think I'll stick to tabs thanks.
If you happen to be using tabwidth 8, then :set tabstop 4 will make all my files align correctly on your PC. Alternatively, you can add/remove some tabs, but I assure you it is far less effort than going through and fixing the much greate
Re: (Score:1)
I like vim, however, I've been using great editor for windows.
Notepad++
http://notepad-plus.sourceforge.net/uk/site.htm [sourceforge.net]
It supports everything you mentioned.
Clearly your problem ... (Score:1)
... is in front of the screen ;-)
Vim has THREE modes (Score:2)
command mode (beep constantly?)
insert mode (not sure how you are breaking things here)
and
visual mode.
Re: (Score:2)
http://www.terminally-incoherent.com/blog/wp-content/uploads/2006/08/curves.jpg [terminally...herent.com]
Am I crazy? (Score:5, Informative)
The date on the announcement is from August 8, 2009.
Also:
~$ vim --version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Nov 11 2008 17:20:43)
Re: (Score:1, Informative)
Just click the link, the post dates from 9 Aug 2008
Re: (Score:2)
The date on the announcement is from August 8, 2009.
Oops, I meant to say "August 9, 2008". Sorry for the self reply.
Re:Am I crazy? (Score:5, Funny)
The date on the announcement is from August 8, 2009.
Eek! The Large Hadron Collider's effects have started leaking to other slashdot dimensions!
Re: (Score:1)
Yeah, this is way old. Except that Slashdot's search function doesn't seem to return an article on the release, so I guess you can't call it a dupe. OTOH you kind of wonder why a site like Slashdot would not publish that news to begin with. Since it's impossible to know if someone submitted it last year, we'll never know.
Re:Am I crazy? (Score:5, Funny)
Smells like an EMACS conspiracy.
Re: (Score:2)
Am I crazy - or has vim 7.2 been out for a while?
* app-editors/vim
Latest version available: 7.2.021
Latest version installed: 7.2
Size of files: 9,077 kB
Homepage: http://www.vim.org/ [vim.org]
Description: Vim, an improved vi-style text editor
License: vim
My Time Machine Works! (Score:5, Funny)
posted by kdawson (Score:1, Interesting)
Do they have a real vi compatible mode? (Score:2)
News for the vim people, these days "vi compatible" means "nvi compatible". KTHX.
Re:Do they have a real vi compatible mode? (Score:5, Funny)
I'm sorry. That was me. I asked for color. My bad.
Re: (Score:2, Funny)
Re: (Score:2)
How did you type new text in vi?
With a paper tape punch, scissors, and masking tape, as god intended.
From the announcement... (Score:3, Funny)
I will not make an Amiga or OS/2 binary for Vim 7.2.
Why not? Then you would have an editor as antiquated as the OS it runs on.
Ooooh! BURRRRN!
Please... (Score:5, Informative)
I work daily with humongous text files. I have found no other editor that performs as well when you work with text files that are in several gigabytes range. All the other major shell text editors cough instantly (tried for instance Emacs, it loaded one of those files for 30 minutes before I got bored of waiting) and most of the shiny new GUI editors are even worse. For instance gedit practically dies instantly on the stuff I work with.
There is a place for vi*. You use them when the tool has to work. They are pain in the ass to use, but they manage things others do not.
Re: (Score:3, Funny)
Re:Please... (Score:5, Interesting)
If the files you are editing are *that* big, then a text editor is not the correct tool.
Ok. Let's assume that you've been given a plain text file of that size, and you need to modify something in it. What tool do you suggest?
I can think of the stock answers:
"Load it into a database" - lots of hassle and probably overkill
"Filter it with a custom script" - maybe, if you're a programmer
"sed" - could work, but why bother if vim works? Personally, I can never remember the sed syntax.
"Don't use text files that big" - Assumes facts not in evidence
Any other suggestions?
Re:Please... (Score:4, Informative)
"sed" - could work, but why bother if vim works? Personally, I can never remember the sed syntax.
*sputters* You can't remember the sed syntax? It's the same as vi.
Mostly likely, if you're editting a several gig text file, you're doing bulk edits, not single edits. ala:
Well, here's the sed script to do that:
sed 's/hamburger/cheeseburger/g' < infile > outfile
They're so similiar, I suspect that they're related... yup. The Sed History [umich.edu] says that "Sed was first written in 1977 as a stream adaptation of the ed editor".
And since vi is just a fancy tui on top of ed, you already know sed.
Why bother? Just because vi can edit large files, it's still painfully slow. Large and/or many edits are very slow to apply and undo. The same commands executed in sed can be done order of magnitude faster. I believe (but have never taken the time to prove it) that it's related to the undo buffer. And yes, my anecdotal evidence took place on machine with enough RAM that no swapping was required for vi or sed.
Now if you want to get really productive, we can talk about taking your vi commands, wrapping them in a sed script, then running it through sed2perl. Oh the Thinks you will have Thunk.
Re: (Score:1)
"sed" - could work, but why bother if vim works? Personally, I can never remember the sed syntax.
*sputters* You can't remember the sed syntax? It's the same as vi.
Mostly likely, if you're editting a several gig text file, you're doing bulk edits, not single edits. ala:
A perfectly good point, unfortunately marred by the remarks that follow.
Mostly likely, if you're editting a several gig text file, you're doing bulk edits, not single edits.
You're assuming conditions not previously specified. What if the poster only changes hamburger to cheeseburger depending on the values of relish and pickle on nearby lines? Are you one of those manly men who use sed to repair mismatched braces in your source files?
My point being that if the previous posters in the subthread find vim satisfactory for the problems they're thinking of, it might be because they understand their typical prob
Re: (Score:2)
As long as the fileformat is somewhat sane, this isn't at all difficult. To replace hamburger with cheeseburger between "two lines down from pickles=yes" and "three lines above the next occurrence of relish=no":
You can get quite funky as those two range markers are fully regexp-aware, of course!
Re: (Score:2)
vi are pretty much irrelevant to a thread on vim
Sorry, I'm on one of those platforms that replaced vi with vim years ago. I incorrectly use them interchangably. Please substitute all references of vi in my previous post with vim.
I have not benchmarked vi in this area for at least 6 years, so I won't talk about vi.
because they understand their typical problems better than you do
Very likely. I can only offer my own experience. When I open a large file in vim, I'll usually wait a few seconds and then start writing a sed, awk, or perl script to accomplish the same goal. I'll drop awk and perl for the rest of the discu
Blatant Hijack of thread (Score:2)
Is it possible to fold not lines, but groups of words in vi(m)? E.g. to change
This is some text (and it contains this paranthesized phrase which I wish to fold away) which has a paranthesized phrase hidden away in the first line. I'd like the text to be a little shorter.
into this
This is some text FOLD+-- which has a paranthesized phrase hidden away in the first line.
Re: (Score:2)
There are some modules aimed at code folding, but they all appear to be line based.
I'm not very expienced with folding, so I might be missing something. Maybe if you explore the depths of Folding by Syntax [vim.org] or Folding by Expression [vim.org].
Sorry I couldn't be more help.
Re: (Score:2)
More crazy editor choices... (Score:2)
Depending on what you need to replace, how large the file is, and how many files you need to change, dd might be your "editor" of choice. Although IANA('nix pro), so I'm not sure it's possible to get dd to just overwrite a few bytes in the middle of a file without setting up a loopback device.
Hmm..
A quick skim through the shred man page suggests it might be useful if the bits you want to overwrite are at the begining of the file...
It always bothered me that Perl's "in place" option actually is nothing of t
Re: (Score:2)
Re: (Score:2)
I work daily with humongous text files. I have found no other editor that performs as well when you work with text files that are in several gigabytes range.
Not in Debian (or maybe all of Linux?) it doesn't.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=139510 [debian.org]
This bug is 7 years old, and a variant of it still exists.
Re: (Score:1)
I work daily with humongous text files. I have found no other editor that performs as well when you work with text files that are in several gigabytes range.
Not in Debian (or maybe all of Linux?) it doesn't.
Sorry, I view that link you gave as less of a bug report than a Twit Alert. Seriously, when was the last time you ran across a 2.7 GB file of nulls and thought of it as a text file to be edited?
The relevant section of the Vim docs [vim.org] explains that the maximum length of a line and the maximum number of lines per file depends on the local size of long integers, typically 32 bits. So if your box is limited to 2G lines per file and 2GB per line, is it any wonder there's an error message upon encountering 2.7 GB of
Re:Please... (Score:4, Interesting)
Not really, I use Vim in preference to every other editor. Once you're used to Vim you can edit at least 10x faster than with an "easy" GUI editor.
Re: (Score:2)
AOL. Vim is *really* powerfull if you know how to handle it. For example lets asume you download some show and want to have sane filenames. So i go to the directory of the show every few months and make a 'ls -1 > out; vim out'. In my vimrc i have this: let @m="0v$hyimv \"^[A\" \"\"^[hp0j"
With this i press @m and transform a line from
The.Daily.Show.2009.02.04.PDTV.XviD-aAF.[VTV].avi to
mv "The.Daily.Show.2009.02.04.PDTV.XviD-aAF.[VTV].avi" "The.Daily.Show.2009.02.04.PDTV.XviD-aAF.[VTV].avi"
(usually someth
Re: (Score:2)
Bullshit.
It may be true for extremely large files, but is false for almost everything else.
For example, VisualStudio has almost all advanced features of vim. Like clipboard ring, vertical blocks, bookmarks, automatic positioning, etc.
have you guys heard about this? (Score:5, Funny)
Hey! Check out this post I came across while browsing usenet. Have any of you heard anything about this? Sounds like it might be kinda cool.
From: torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds)
Newsgroups: comp.os.minix
Subject: Free minix-like kernel sources for 386-AT
Keywords: 386, preliminary version
Message-ID:
Date: 5 Oct 91 05:41:06 GMT
Organization: University of Helsinki
Lines: 55
Do you pine for the nice days of minix-1.1, when men were men and wrote :-)
their own device drivers? Are you without a nice project and just dying
to cut your teeth on a OS you can try to modify for your needs? Are you
finding it frustrating when everything works on minix? No more all-
nighters to get a nifty program working? Then this post might be just
for you
As I mentioned a month(?) ago, I'm working on a free version of a
minix-lookalike for AT-386 computers. It has finally reached the stage
where it's even usable (though may not be depending on what you want),
and I am willing to put out the sources for wider distribution. It is
just version 0.02 (+1 (very small) patch already), but I've successfully
run bash/gcc/gnu-make/gnu-sed/compress etc under it.
Sources for this pet project of mine can be found at nic.funet.fi /pub/OS/Linux. The directory also :-). Full kernel /pub/gnu.
(128.214.6.100) in the directory
contains some README-file and a couple of binaries to work under linux
(bash, update and gcc, what more can you ask for
source is provided, as no minix code has been used. Library sources are
only partially free, so that cannot be distributed currently. The
system is able to compile "as-is" and has been known to work. Heh.
Sources to the binaries (bash and gcc) can be found at the same place in
ALERT! WARNING! NOTE! These sources still need minix-386 to be compiled
(and gcc-1.40, possibly 1.37.1, haven't tested), and you need minix to
set it up if you want to run it, so it is not yet a standalone system
for those of you without minix. I'm working on it. You also need to be
something of a hacker to set it up (?), so for those hoping for an
alternative to minix-386, please ignore me. It is currently meant for
hackers interested in operating systems and 386's with access to minix.
The system needs an AT-compatible harddisk (IDE is fine) and EGA/VGA. If
you are still interested, please ftp the README/RELNOTES, and/or mail me
for additional info.
I can (well, almost) hear you asking yourselves "why?". Hurd will be
out in a year (or two, or next month, who knows), and I've already got
minix. This is a program for hackers by a hacker. I've enjouyed doing
it, and somebody might enjoy looking at it and even modifying it for
their own needs. It is still small enough to understand, use and
modify, and I'm looking forward to any comments you might have.
I'm also interested in hearing from anybody who has written any of the
utilities/library functions for minix. If your efforts are freely
distributable (under copyright or even public domain), I'd like to hear
from you, so I can add them to the system. I'm using Earl Chews estdio
right now (thanks for a nice and working system Earl), and similar works
will be very wellcome. Your (C)'s will of course be left intact. Drop me
a line if you are willing to let me use your code.
Linus
PS. to PHIL NELSON! I'm unable to get through to you, and keep getting
"forward error - strawberry unknown domain" or something.
Re: (Score:3, Funny)
Re:have you guys heard about this? (Score:5, Funny)
Re: (Score:2, Funny)
Re: (Score:2)
I predict that within the year all desktops will run be running this amazing, new technology!
Indeed; who knows, it may even kill OS/2!
Re: (Score:1)
Re:have you guys heard about this? (Score:5, Funny)
I can (well, almost) hear you asking yourselves "why?". Hurd will be out in a year (or two, or next month, who knows), and I've already got minix.
Everytime I see this, I don't know whenever I want to laugh or cry...
Re:have you guys heard about this? (Score:5, Funny)
Re: (Score:2)
Forget it. It'll never catch on. Get back to your 8-Track.
Re: (Score:2)
Well to be fair, it's precisely that announcement which killed Hurd. That and gross mismanagement. But I still like to imagine that it's Linus himself who spared us from Hurd by accidentally killing it with a one-man 0.1 release.
Re: (Score:2)
PS. to PHIL NELSON! I'm unable to get through to you, and keep getting
"forward error - strawberry unknown domain" or something.
I think this is the greatest line to ever be tagged on to an historical announcement.
we learned one thing from this story posting... (Score:5, Funny)
We now know for sure kdawson is not a Vim user.
Vim's gvim frontend (Score:2)
Midnight Commander's built in editor (mcedit) is good enough for me...
Re: (Score:2)
There was a kvim at one time; don't know what happened to it.
Re: (Score:2)
Great News! (Score:5, Funny)
I've been waitti^H^H damn! ^H^H ^Q ^[ .... :w :q :wq :wq! ^d :quitbye CtrlAltDel ~~q :~q logout save/quit :!QUIT
exit X Q ^C ^?
^[zz ^[ZZZZZZ ^H man vi ^@ ^L ^[c ^# ^E ^X ^I ^T ? help helpquit ^D
man quit ^C ^c ?Quit ?q CtrlShftDel "Hey, what does this button d..."