[PLUG] Emacs Replace At End of Line
Paul Heinlein
heinlein at madboa.com
Wed Mar 12 16:44:30 UTC 2008
On Wed, 12 Mar 2008, Rich Shepard wrote:
> I'm trying to replace a '\n' with '),\n', but haven't figured out
> the proper syntax. The search is specified with \$, but if I specify
> the replacement as ),\$ the editor wants to keep adding '),' to the
> end of the same line.
>
> My ORA emacs book has no explicit examples (pages 57-65), and
> replacing at the begging and ending of lines is a frequent
> occurrence with me that always leads to spending a lot of time and
> failing to get it right.
>
> Cluesticks greatly appreciated.
Use vim. :-)
:%s!$!),!
<ducks/>
--
Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/
More information about the PLUG
mailing list