Closed GoogleCodeExporter closed 9 years ago
This is not a bug. See
:h s/\n
:h s<CR>
Basically, you have to use the command
%s/\n/^M^M/
where you should hit Ctrl-v Enter where it says ^M
For future reference: please post these kinds of questions to vim_use instead
of here (you can be certain its
not MacVim specific simply by popping up Terminal Vim and see that it behaves
the same). Thanks!
Original comment by bjorn.winckler@gmail.com
on 20 Jul 2009 at 11:59
Thank you for the help. This is one of those issues that is terribly hard to
search on Google since most non-
alpha characters get stripped from searches... sorry for the trouble.
Original comment by bumper...@gmail.com
on 20 Jul 2009 at 7:47
No worries. I've gotten to the point where I most of the time know where in
the Vim help to search which is why
I found the above references. But I know it can be hard! Still, my tip is to
leaf through the help files every now
and then -- they contain _lots_ of information. Anyway, have fun with Vim. :)
Original comment by bjorn.winckler@gmail.com
on 20 Jul 2009 at 11:11
[deleted comment]
But you cannot map newline substitutions:
map ,nl :%s! !^M!g<CR>
If you execute
:map
you will get
map ,nl :%s! !<CR>!g<CR>
so ^M is converted into <CR>, which, of course,
does not work.
It neither works with terminal- nor macvim.
Original comment by mis...@gmail.com
on 11 Oct 2009 at 2:02
Original issue reported on code.google.com by
bumper...@gmail.com
on 20 Jul 2009 at 8:49