How to replace a character for a newline in Vim?
2015-02-11 18:41
471 查看
down votefav | I'm trying to replace each ,in the current file by a new line: :%s/,/\n/g But it inserts what looks like a ^@instead of an actual newline. The file is not in DOS mode or anything. What should I do? EDIT: If you are curious, like me, check the question Why is \r a newline for Vim? as well. |
\rinstead
of
\n.
相关文章推荐
- How can I force Python's file.write() to use the same newline format in Windows as in Linux (“\r\n”
- How to replace tab as spaces in vim?
- how to deal with "no such file error or diretory" error for a new programmer in QT creator
- How To Show Line Numbers In vi / vim Text Editor
- How-to suppress error popup for inline messages __jspx页面弹出消息提示框
- Linux - How to remove the new line at the end of file when using vim
- How to add a new "CustomAction" in ECB for a specific list
- How to install VIM in the MSYS?
- How to setup a new Organization and Set of Books for a Payables Responsibility
- How to enable the Xdebug debugger in Zend Studio for Eclips
- 如何在QT for S60 中使用pthread库(Carbide.c++) (How to use pthread in QT4.6 for S60)
- How to configure SmartPhone for debugging in VS 2008
- how to login for new client
- How to install the Nokia S60 SDK in NetBeans for J2ME development
- How to generate a log file in VC++ or Embedded VC++ (For Pocket PC or WinCE devices)
- How to Find Bapi for Particular Transaction in SAP
- How to install WebObjects in Ubuntu for free(I)
- How to Find Bapi for Particular Transaction in SAP
- How to set value for webpart’s properties when I create a new sharepoint template
- How to set network proxy for terminal in Ubuntu