How to replace a character for a newline in Vim?
来源:互联网 发布:智能家庭解决方案知乎 编辑:程序博客网 时间:2024/06/16 15:13
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.
\r
instead of \n
. 0 0
- How to replace a character for a newline in Vim?
- How to Replace a Device in a ZFS Storage Pool
- How to remove space or newline characters from a string?
- How to put a space character before option text in a HTML select element?
- How to check the first character in a string in unix
- How to active a Bufferpool in DB2 for z
- For loops in R: how to do a “continue”
- How to replace a Django model field with a property
- How to replace tab as spaces in vim?
- JS:Trim() in javascript, how to define a function of checkinput for a WebControl(ascx)
- How to add a new "CustomAction" in ECB for a specific list
- How to redirect to a Custom Page for Event Receiver in SharePoint 2010
- How to format date for display or to use in a shell script
- How to Succeed in A Professional Career
- How To: Implement A Server Plug-in
- How to create a user in PostgreSQL
- How to Rename a View in ClearCase
- How to execute a query in varchar2 ?
- Launch Screen在iOS7/8中的实现
- Eclipse中git插件冲突解决
- lua与C++互相通信
- Unity3D学习之光照贴图快速详解
- IOS下获取当前用户设备中的键盘的高度
- How to replace a character for a newline in Vim?
- [前端] 文字垂直滚动+鼠标悬停效果
- [2015.2.11] 操作文件和目录
- UITextView的用法
- 利用GoogleEarth影像制作Skyline MPT案例
- LeetCode38——Count and Say
- IOS之Storyboard导航大揭秘
- CentOS安装scp命令
- ibatis-TypeHandlerCallback使用