J VIM Command
How to use J Command in Linux VIM editor?
Explanation
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.
Usage:
J
Example:
- 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