Insert Mode: Edit File
The most common way to edit the contents of a file is in
Insert mode by typing
Insert mode type your content:
Insert mode your keyboard presses are redirected to the contents of the file.
File Navigation in Insert Mode
Insert mode the cursor can be controlled with the directional arrow keys on your keyboard.
Try using the directional arrow keys to move your cursor over text. I will move the cursor after the period of the third paragraph:
After navigating to the new position you enter more text at the location of the cursor:
Navigation is possible in
Insert mode, but is cumbersome. Luckily there are more effective ways to navigate the file while in
Normal mode. This will be covered in a future article.
Deleting Content in Insert Mode
vim Insert mode text can be deleted by using the
delete keys. These keys behave the same way as they do in other text editors: