Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the skills of using Vim

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of "what are the skills of using Vim". The editor shows you the operation process through actual cases, the operation method is simple and fast, and it is practical. I hope this article "what are the skills of using Vim" can help you solve the problem.

Vimtutor

Usually the best way to start learning is to use the application itself. I found a small application called Vimtutor, which can help you with some basic knowledge when you are learning to edit a text. It shows me a lot of basic commands that I have ignored over the years. Vimtutor can usually be found wherever there is a Vim, and if you don't have Vimtutor,Vimtutor on your system, you can easily install it from your package manager.

GVim

I know not everyone agrees with this, but it was it that moved me from using Vim in the terminal to using GVim to meet my basic editing needs. Opponents say GVim encourages the use of the mouse, while Vim is mainly designed for the keyboard party. But I can quickly find the command I'm looking for through GVim's drop-down menu, and GVim can remind me of the correct instruction and execute it by tapping the keyboard. It's not easy to learn a new editor and get caught up in an insurmountable dilemma. Reading man text every few minutes or using a search engine to remind you of the right button sequence is not the best way to learn new things.

Keyboard table

When I switched to GVim, I found that there was a keyboard "quick check list" to remind me that the most basic keys were convenient. There are many of these forms available online, which you can download, print, and post somewhere around you. But for my laptop keyboard, I chose to buy a stack of post-it notes. These post-it notes cost less than $10 in the United States, and you can always remind me when I use the keyboard to edit text and try new commands.

Vimium

Use Vimium to enhance the experience of using Vim. Vimium is an open source plug-in on Chrome browsers that can quickly manipulate Chrome with Vim instructions. I found that I only used shortcuts to change context a few times, as if I were more familiar with these shortcuts than before. The same extension is also available on Firefox, such as Vimerator.

There is no doubt that the best way to learn is to turn to someone you have explored before and ask him to give you advice, feedback and solutions.

If you live in a big city, there may be a Vim meetup group nearby, or there may be # vim channel on Freenode IRC. # vim is one of the most active channels on Freenode, and it can help you with your personal problems. I find it interesting to listen to the above people complain or to see others try to solve problems they haven't encountered before.

So, what happens now? So far so good. Whether the time spent on it is worth it depends on how much time it saves you later. But when I find a new sequence of keystrokes to skip words, or similar tricks, I often reap unexpected surprises and pleasures. Every day I can at least see that a little bit of return is gradually worthy of the original pay.

This is the end of the content about "what are the skills for using Vim". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report