Hi George,
On 16 Feb 2013, at 07:03, George Gutman wrote:
> I'm using Vim under Windows (XP and 7). I would like to universally
> replace text which includes a CRLF with some other text. In MSWord I can
> represent CRLF as ^p, but MSWord unfortunately does not behave well with
> the large files I'm working with. So how can I do this in Vim?
When you're in vi or vim, put yourself in insert mode and then type CTRL V
Once you've typed CTRL V you can now type and control character, such as CTRL M or CTRL L
CTRL M is carriage return
CTRL L is line feed
Having said that, a simple Google search would have given you the answers but also read these:
http://dailyvim.blogspot.be/2009/10/ctrl-v-for-literal-characters.html
http://www.bo.infn.it/alice/alice-doc/mll-doc/linux/vi-ex/node15.html
http://vim.wikia.com/wiki/Entering_special_characters
Jerry
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Saturday, February 16, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment