On 25/05/11 02:08, Dave Land wrote:
[...]
PS: While reading up on this, I discovered something new, at least to me:
Save typing by using \zs and \ze to set the start and end of a pattern.
For example, instead of:
:s/Copyright 2007 All Rights Reserved/Copyright 2008 All Rights Reserved/
Use
On May 24, 2011, at 1:45 PM, Tony Mechelynck wrote:
> On 24/05/11 14:31, Eljay Love-Jensen wrote:
> [...]
>> I'm not sure why I have to search FOR multiple \n and replace WITH the
>> \r. That may be a vi-thing, a Vim-thing, or a quirk / detail of my
>> platform (Windows 7, using the prebuilt gVim
On 24/05/11 14:31, Eljay Love-Jensen wrote:
[...]
I'm not sure why I have to search FOR multiple \n and replace WITH the
\r. That may be a vi-thing, a Vim-thing, or a quirk / detail of my
platform (Windows 7, using the prebuilt gVim, using :set ff=unix line
endings). Hmmm, I never thought about
Hi Jean-Rene!
On Di, 24 Mai 2011, Jean-Rene David wrote:
> * JP Lew [2011.05.24 04:20]:
> > My original problem was that I wanted to delete all the blank lines in my
> > document.
>
> By the way, you would have gotten immediate answers if you had asked
> that to begin with. As a matter of fact i
On May 24, 5:31 am, Eljay Love-Jensen wrote:
> There are a lot of powerful editors available. Vim is more than a powerful
> editor. Vim is zen editing. Vim lets me become one with my keyboard and
> edit my document; all the while the editor is not a distracting interface
> but rather is unobtru
* JP Lew [2011.05.24 04:20]:
> My original problem was that I wanted to delete all the blank lines in my
> document.
By the way, you would have gotten immediate answers if you had asked
that to begin with. As a matter of fact it is a FAQ (12.4 on
http://vimdoc.sourceforge.net/htmldoc/vimfaq.html)
On Tue, 24 May 2011 08:43:49 -0500
Eljay Love-Jensen wrote:
> Hi JP Lew,
>
> Frans Grotepass> I suggest grabbing a good cheat sheet of the net...
>
> I have found this tutorial / cheat sheet website to be fantastic:
>
> http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html
> Not o
Hi JP Lew,
Frans Grotepass> I suggest grabbing a good cheat sheet of the net...
I have found this tutorial / cheat sheet website to be fantastic:
http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html
Not only great for getting up to speed in Vim, I still refer to it for the
Vim comm
On Tue, 24 May 2011 01:17:08 -0700
JP Lew wrote:
> I've only been using Vim for a week now, but with every passing day
> am more and more impressed by its power.
And it is only the first week :D Boy, you have no idea how good this
will still get!! The real fun starts after you've assimilated th
Hi JP Lew,
Your discovery works great:
:g/^$/d
Depending what you consider a "blank line", you may want:
:g/^\s*$/d
If you want to delete runs of blank lines over a threshhold, that can be
done as well. One way to do it is a search-and-replace command like:
:%s/\n\{2,\}/\r\r/
I'm not sure why I
Thank you John, Frans, and Albie!
your answers were timely, educational, and helped me solve my problem—much
appreciated. For the record I am using Unix (Mac OS X).
I've only been using Vim for a week now, but with every passing day am more
and more impressed by its power.
My original problem was
JP Lew wrote on 24/05/2011 08:14 AM:
> Hi there:
> No matter which document I'm editing, whenever I search for a carriage
> return like this:
>
> /\r
>
> I get the following error message:
>
> E486: Pattern not found: \r
>
> It's puzzling because Vim is matching other character classes like \t
> an
On Mon, 23 May 2011 23:14:26 -0700 (PDT)
JP Lew wrote:
> Hi there:
> No matter which document I'm editing, whenever I search for a carriage
> return like this:
>
> /\r
>
> I get the following error message:
>
> E486: Pattern not found: \r
>
> It's puzzling because Vim is matching other charac
JP Lew wrote:
> No matter which document I'm editing, whenever I search for a
> carriage return like this:
>
> /\r
>
> I get the following error message:
>
> E486: Pattern not found: \r
Vim removes line endings when a file is read, so there may not
be any CR in the buffer that is displayed. Search
Hi there:
No matter which document I'm editing, whenever I search for a carriage
return like this:
/\r
I get the following error message:
E486: Pattern not found: \r
It's puzzling because Vim is matching other character classes like \t
and \n without any problems. I know for a fact that my docu
15 matches
Mail list logo