J VIM Command

How to use J Command in Linux VIM editor?


J stands for join
This command is used to join the content of next line at the end of current line. You can join 2 consecutive lines using this command.




  • Open the file test.txt using the command
    $ vim test.txt
  • We can notice the text in the file.
    Hiox India
    Vim Tutorial

  • Let us see how to join both the lines. To join two lines together
    Press J
  • The file after joining the lines
    Join (J) Vim Command

Ask Questions

Ask Question