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
Tweet