Vim basic Commands / file operations

Edit a file with vim open the file with vim filename Go to Insert mode press “i” Update the file content. Press ESC then write :wq to save and quit the editor Copy or Cut and Paste a Line in Vim Bring your cursor to the line you want to copy Press yy and line…

Editing / Saving a file with Vim editor on Linux

Vim is one of the best text editor on Linux Vim works with different modes such as visual, Insert, select, command line and Ex-mode. Following are the details on how you can perform different file operations with Vim. Editing a file with Vim Editor # vim /etc/hosts As soon as you open an image with…