4

I often use J to join the current line with the one below:

J                       Join [count] lines, with a minimum of two lines.
                        Remove the indent and insert up to two spaces (see
                        below).  Fails when on the last line of the buffer.
                        If [count] is too big it is reduce to the number of
                        lines available.

Is there a shortcut key for joining the current line with the line above?

Needless to say, kJ does the trick; I just wonder if there's a built-in shortcut for that.

1 Answer 1

7

I'm almost sure there is no such mapping. As you wrote, one can use kJ. But if you aren't using K, you can remap it to kJ:

nnoremap K kJ

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.