Today I Learned

hashrocket A Hashrocket project

Join lines in Vim

In Vim if you want to join two neighboring lines, place your cursor anywhere on the top line in NORMAL mode and press J / (SHIFT + j)

const object = {
  name:         <- With your cursor anywhere on this line 
  "bob"
}

=>

const object = {
  name: "bob"
}

h/t Matt Polito

See More #vim TILs
Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the Vim Chicago Meetup hosted at our Chicago office.