On 24/05/07, Robert M Robinson <[EMAIL PROTECTED]> wrote:
On Wed, 23 May 2007, fREW wrote: |Someone recently was emailing the list about looking at a small |section of DNA with vim as text and it was a number of gigs. I think |he ended up using other unix tools (sed and grep I think), but |nontheless, text files can be big too ;-) | |-fREW | A maxim that comes up here is "A lack of imagination doesn't prove anything." The fact that Condoleeza Rice couldn't imagine the degree of chaos that would ensue if we invaded Iraq does not prove that Iraq is not currently in chaos! I use vim for _structured_ text files, largely because regular expression search is much more useful than word search when the text is structured. Whether those files are large or not usually depends on whether I'm editing programs (small) or viewing/editing their output (often quite large). Emacs also provides regular expression search, but I find vim's commands simpler and easier to type--and therefore faster to use.
I do not understand your statements: what's your problem of using regular expressions in grep and sed? Other related questions are: Does Vim really load the entire text file in memory? Has anybody experience editing files that are much bigger than available memory, say, an 8 GB file in a 2 GB PC? Best regards, Yongwei -- Wu Yongwei URL: http://wyw.dcweb.cn/