# new line in vi

**URL:** <https://community.unix.com/t/new-line-in-vi/172226>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [June 21, 2007, 8:20am UTC](https://community.unix.com/t/new-line-in-vi/172226 "2007-06-21T08:20:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![macgre\_r](https://community.unix.com/letter_avatar/macgre_r/32/5_5575768a8748004e209b776fc1b2916d.png) [@macgre\_r](https://community.unix.com/u/macgre_r)\
**Post date:** [June 21, 2007, 8:20am UTC](https://community.unix.com/t/new-line-in-vi/172226/1 "2007-06-21T08:20:29Z")

</div>

hi all,

I need to insert a new line between the following characters in the string: ][

Please help.  
Thanks

---

<div class="post-metadata">

**Author:** ![Shell\_Life](https://community.unix.com/user_avatar/community.unix.com/shell_life/32/521_2.png) [@Shell\_Life](https://community.unix.com/u/Shell_Life)\
**Post date:** [June 21, 2007, 8:56am UTC](https://community.unix.com/t/new-line-in-vi/172226/2 "2007-06-21T08:56:25Z")

</div>

```nohighlight
:%s/\]\[/]^M[/

```

To enter "^M", type "ctl-V" then "\<enter\>".

---

<div class="post-metadata">

**Author:** ![macgre\_r](https://community.unix.com/letter_avatar/macgre_r/32/5_5575768a8748004e209b776fc1b2916d.png) [@macgre\_r](https://community.unix.com/u/macgre_r)\
**Post date:** [June 21, 2007, 9:05am UTC](https://community.unix.com/t/new-line-in-vi/172226/3 "2007-06-21T09:05:43Z")

</div>

Thanks Shell\_Life, works like a bomb.
