Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4387
    Hideki
    Member

    Hi. I’ve been wondering how I should join 2 lines into 1.

    I’ve seen that there is a keyboard shortcut that looks like it does the job, but no matter how many times I use it, it just won’t work.

    Basically I’d like the join line function on vim (when you press shift j) that brings the next line right next to the end of the current line with a space attached at after where the current line ends.

    Am I doing something wrong, or hmm..?

    #4388
    rayd
    Participant

    As long as there isn’t a blank line between them, selecting two or more lines and pressing CTL+J joins them.

    I use this extensively for formatting text which has Returns at the end of each line.

    Cheers,

    Ray D

    #4409
    Hideki
    Member

    ah alright, tx. now it works.

    I was just wondering since i’ve just been trying it the vim way, where you activate the join line function, the next line simply attaches to the current line.

    could there be some way so it works without selecting lines?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.