fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

artfulrobot

and

In visual line mode:

gJ

joins selected lines without putting spaces betwixt. Useful for when you've copied an SSH public key from a terminal that's decided not to realise it's one line.

Normal mode:

3gJ

join three lines without spaces.

@artfulrobot oh my, i spent so much time of my life deleting spaces after pressing J, thinking about doing a macro, "but really was it worth it now?" This will come in handy.

@artfulrobot gJ joins the lines and keeps existing whitespace (there may be none), gj joins the lines with a single space, I think there is no trim and join builtin

@artfulrobot I use J all the time, had no idea I could modify the behavior like this!