I accidentally discovered that the key combination will concatenate the current line and the next line. However, I do not recall it being mentioned in the quickref
. After a quick Google, I did not find anything. Do any have a clue about where in the
documents can I find more about this key combination?
BTW, I have confirmed that this is not mapped in the :map
.
Update:
With the help from a comment, (Curiously, I saw it in a message. But after I opened the website, it disappeared.) I found that I am actually using the <shift-j>
, i.e. <J>
key to join lines. Thanks to this post.
Update 2:
J
in visual mode provides extra capabilities. See :help v_J
. (Thanks to @Antony's comment.)
J
joins lines,:help v_J
. Prefix Visual mode commands withv_
to find them in the documentation. This is explained at:help
.gJ
, which doesn't add spaces ♥️