
VI improved text editor or VIM text editor is an opensource solution available for both CLI and GUI interfaces. In this cheat sheet, you will find most of the Vim Commands which are needed when you will work with text files in the CLI interface.
So let’s start with open a file in Vim text editor. Use the below command to open a file in Vim CLI interface.
vim myfilename
Vim text editor is having two different mods Insert mode and Command mode.
Insert mode:
When you need to write normal text in a file, you can just press i for insert mode and start writing. After writing Press Esc. to go back into the command mode.
Command mode:
The default mode you will get when you open a file in Vim editor. From here you will give commands to the editor for all operations.