Navigating in VI
In command mode, you can navigate through the document using various keyboard shortcuts:
- Use arrow keys to move the cursor.
- Use h, j, k, and l to move left, down, up, and right, respectively.
- Use Ctrl + F to move forward one screen.
- Use Ctrl + B to move backward one screen.
- Use gg to move to the beginning of the document.
- Use G to move to the end of the document.
Creating New Text Documents with the VI Editor
VI, short for “Visual Editor,” is a modal text editor that operates in different modes: command mode, insert mode, and visual mode. Command mode is used for navigation and executing commands, insert mode is for inserting and editing text, and visual mode is for selecting and manipulating text.