

To repeat and undo (VI Keyboard Shortcuts) CommandsĬommand to cut, copy and paste in blocks Commands

Will direct you to your last position in the fileĭelete the current line from the current character to the end of the lineĭelete from the current line to the end of the file Will direct you at the last line of the file To move around a file VI text editor Commands Save (and write to the non-writable file) To save and quit (VI Keyboard Shortcuts) Commands Start typing on a new line before the current line Start typing on a new line after the current line Start typing at the end of the current line Start typing at the start of the current line Start typing before the current character To switch from command to insert mode Command view filename: Opens an existing file in read-only mode. Opens an existing file in read-only mode. CommandĬreates a new file if it does not exist, otherwise opens the existing file. The commands used in the vi editor are case-sensitive. Vi Editor and the vi shortcut and vi commands are different from other editors and they used different functions to execute. This mode allows you to do things like save files and run commands. The cursor will go to the final line of the terminal while vi waits for a command.

But now Vim is the enhanced version of the vi editor. It is simple to use and runs on a variety of operating systems and platforms. In other words, it is accessible in all Linux distributions.
