Just Enough Vim Skill

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.

No alt text provided for this image

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.

No alt text provided for this image

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

No alt text provided for this image

To quit without saving the changes made, type :q!

Next Steps

Learn more about Vim at https://www.vimgenius.com

Rashmi Rani

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

要查看或添加评论,请登录

Rajesh Muthusamy的更多文章

  • Terraform in 6 Weeks - Week 2: Build a Scalable Static Website

    Terraform in 6 Weeks - Week 2: Build a Scalable Static Website

    Dear friend, The week 2 objective is to create a scalable and highly available static website hosted on S3, served…

    2 条评论
  • Terraform in 6 Weeks - Week 1: Architectural view

    Terraform in 6 Weeks - Week 1: Architectural view

    Dear Friend, In Week 0, we covered the basics of Terraform to get you started. Now, let’s dive deeper into Terraform’s…

    2 条评论
  • Terraform in 6 Weeks - Week 0: Laying the Foundation

    Terraform in 6 Weeks - Week 0: Laying the Foundation

    Dear Friend, Terraform is the gold standard in Infrastructure as Code (IaC), and mastering it is a skill that will stay…

    8 条评论
  • Understanding the OSI Model

    Understanding the OSI Model

    Dear Friend, The Open Systems Interconnection (OSI) model is a fundamental conceptual framework that illustrates how…

    2 条评论
  • Understanding Linux File Permissions

    Understanding Linux File Permissions

    Dear Friend, Linux file permissions are a fundamental aspect of the operating system's security model, determining who…

  • Kubernetes Networking

    Kubernetes Networking

    Dear Friend, In the world of kubernetes, we have different levels of networking requirements. Container-to-container…

    1 条评论
  • How To Design A Container-Based Application?

    How To Design A Container-Based Application?

    Dear Friend, Container is an important moving part of microservices architecture. You will need to place your…

  • The Journey Of A Code To Pod

    The Journey Of A Code To Pod

    Dear Friend, The journey of code towards Pod has multiple stages, and would feel overwhelming to dig the path. But…

    2 条评论
  • How Pods Connect Over Network?

    How Pods Connect Over Network?

    Dear Friend, Kubernetes allows unrestricted communication between pods by default. All pods can communicate with each…

    5 条评论
  • What The Helm?

    What The Helm?

    Dear Friend, In the Kubernetes world, there's no shortage of buzzwords. One among them is Helm.

    1 条评论

社区洞察

其他会员也浏览了