How can I delete a new line in Vim?

Go To StackoverFlow.com

0

Possible Duplicate:
How do I join two lines in vi?

I have the following text:

the bunny
  is very cute

How can I quickly delete the \n\t between bunny and is?

2012-04-04 04:13
by NoName
Link provided by @AndrewMarshall should be applicable here - Ariel 2012-04-04 04:21
Voted off topic. Using a text editor interactively is not programming. There is :help, and lots of web resources for Vim. RTFM - Kaz 2012-04-04 04:21
@Kaz With all due respect, there are other questions about Vim here and there is even a decently popular vim tag - NoName 2012-04-04 04:22
@Kaz: It has been decided that Vim questions belong on Stack Overflow (this is an exception to the usual "programming related" requirement) - Greg Hewgill 2012-04-04 04:26
@Kaz Definitely not off topic. The FAQ states questions about "software tools commonly used by programmers" are valid, and the meta question Greg referenced validates it with Vim specifically - Andrew Marshall 2012-04-04 04:29


1

Type J (capital J) to join lines.

2012-04-04 04:20
by Kaz
Thanks for the answer - NoName 2012-04-04 04:25
@JonathanLingle: To join without space, use Jx - bitmask 2012-04-04 05:51
Ads