Just Enough Vim Skill
Dear Friend,
DevOps Engineer's spend lots of time in shell terminals. Vim would be a great companion to work with shell terminals.
With this tool, you can open and edit all type of files on terminal.
But, Vim is also terrifying when you handle it like another tool. When I started using the tool I didn't know how to exit from the vim mode, so each time I had to close the terminal :)
Alright, let's discuss Vim short cut's that helps you get started immediately
To start using Vim, type vim in the command line, followed by the name of the file you want to edit.
For example, to edit a file called file.txt, you would type vim file.txt.
Once the file is open in Vim, you can switch between insert and navigation modes using the 'i' and Esc key.
In insert mode you can write or edit a file.
In navigation mode, you can use the h, j, k, and l keys to move the cursor left, down, up, and right, respectively.
To save file, press Esc key and type :wq
To quit without saving the changes made, type :q!
Next Steps
Learn more about Vim at https://www.vimgenius.com
AWS DevOps | EBS | CI/CD Pipe Line | Code Build| Code Deploy| Code Commit | EC2 | AWS Amplify| RDS| ACM| ASM| AWS Arora| SES | IAM | S3 | AWS Billing and Cost Management | AWS Cognito| LAMBDA| API Gateway| VPC| Postgres
2 年You have given right explanation of whole procedure ,initially it could be challenging but once we will used to with commands and process,going into vim editing mode and coming back to Linux Console its most interesting one