user3587180
user3587180

Reputation: 1397

How to move delete current line and move text to the top in Vim?

I have the following code.

var post = new Post("abc",
   "def");

How do I move the whole second line to the above line which would result in this?

var post = new Post("abc", "def");

Upvotes: 0

Views: 39

Answers (1)

gildux
gildux

Reputation: 564

It's like you want to join the two lines. The command to use, in normal mode, is J (capital/shifted letter/key.)

Upvotes: 2

Related Questions