From http://vim.wikia.com/wiki/Search_and_replace :
When Searching
…
\n
is newline,\r
isCR
(carriage return =Ctrl-M
=^M
)When Replacing
…
\r
is newline,\n
is a null byte (0x00
).
More Related Contents:
- vim remove non existing mapping [closed]
- How to replace a character by a newline in Vim
- What is your most productive shortcut with Vim?
- Vim clear last search highlighting
- Redefine tab as 4 spaces
- Where is my .vimrc file?
- Search for selection in Vim
- How to paste over without overwriting register
- Why does vim not obey my expandtab in python files?
- Mapping in vimrc causes bizarre arrow behaviour
- Is there a “vim runtime log”?
- Alt key shortcuts not working on gnome terminal with Vim
- How to prevent the cursor from moving back one character on leaving Insert mode in Vim?
- Using vim’s f command over multiple lines
- Convert ^M (Windows) line breaks to normal line breaks
- Vim: insert the same characters across multiple lines
- How to insert text at beginning of a multi-line selection in vi/Vim
- Traversing text in Insert mode
- reformat in vim for a nice column layout
- Smart Wrap in Vim
- Automatic closing brackets for Vim [closed]
- Remove all arbitary spaces before a line in Vim
- How to redirect ex command output into current buffer or file?
- Is it possible to display indentation guides in Vim?
- Replace tabs with spaces in vim
- Case preserving substitute in Vim
- Setting Vim whitespace preferences by filetype
- Vim run autocmd on all filetypes EXCEPT
- Cut to the system clipboard from Vim on Ubuntu
- Paste in insert mode?