insert VIM Command

How to use insert Command in Linux VIM editor?


i stands for insert
This command allows the user to insert the text into the file. After entering the command insert(i) the editor will go to insert mode. Users can then move the cursor to the required position using the arrow keys and then enter the required text in file. You can close or stop the insert mode by using Esc button.




Steps to insert text into the file using the vim editor.
  • Open the file test.txt using the command
    $ vim test.txt
  • To make the editor into insert mode
    Press i
  • Enter 'Hiox India'
  • To come out of insert mode
    Press Esc
  • Save the file using the write command
    insert Vim Command

Ask Questions

Ask Question