当前位置:网站首页>VIM from dislike to dependence (23) -- the last gossip
VIM from dislike to dependence (23) -- the last gossip
2022-07-04 21:55:00 【aluluka】
As of the last article , About vim The basic operation of has been discussed , This article is mainly gossip , Talking nonsense . Just like the graduation thesis has a thank you , Let's take this as the thanks of the whole series
Study vim What can it bring us
Study vim What can it bring us ? Rarely useful at work vim To be the main editor , Now there are various modern programming tools , image JB Family bucket 、visual studio series . They are difficult to start and integrated , They all did quite well , Leave vim Can also program . and vim Nor can it bring any highlights to your resume , When there is no company to recruit people, it will require proficiency vim、 No one writes on their resume that they are proficient in using vim. No interviewer will ask you during the interview vim Related content , Instead, you use learning vim Time to learn a new programming language , image go
、rust
Something like that can bring you a new job , It can bring a raise . From this view , Study vim
It seems to have become so chicken ribs, and even a sense of delay .
I started to learn vim The original intention is , I need to linux Build some environment under , for example Apache、nginx、 Or other services . stay linux In the terminal of ,vim It's standard , Almost every linux The server will install vim. At that time, I would only press i
Enter insertion mode 、 Press the arrow keys to move the cursor . For me, it is a linux A text editor that is more troublesome than Notepad .
Then I saw 《 The way of programmer training 》、《 The cry of programmers 》 These two books , Mentioned in the book : Our programmers usually spend a lot of time and code 、 Dealing with text editors , If you spend some time every day optimizing the editor, it will be of great benefit . and 《 The cry of programmers 》 This book is highly respected emacs. I followed the meaning of the book for a period of time emacs
, Find out emacs
The most efficient editing method in is called evil
Plug in for , It's a vim
Simulator . And later I learned that many editors have related vim plug-in unit . At this time, I began to realize vim It's not as simple as I thought .
With emacs
The learning and use of , I realize that if I want to use it well emacs
First of all, you have to learn how to use vim
. At this time, I immediately entered vim
The pit of . And through learning vim
, I feel more and more vim
It brings me more benefits than learning any kind of editor .
First ,vim The most respected is its set of text operations , For example, in order to reduce the number of keystrokes of shortcut keys and better abstract the scene of editing text in reality , It uses the method of dividing patterns , Different keys have different functions in different modes . Here it grades text , Divided into characters 、 word 、 String 、 The sentence 、 Paragraph and put forward the concept of text object , It greatly facilitates our speed of processing text . And it also has .
Command and Macro operation , It further simplifies repeated operations .
Moreover, it has greatly inherited unix
Philosophy of , Special software does special things and makes it to the extreme . It is very convenient to integrate with external programs , Expand the scope of functions .
Finally, its high customizability , Users can easily customize according to their own working scenes , Make your own editor .
Now vim
It doesn't just refer to a software anymore , But a complete set of text editing technology , Learn this well , You can use it on any editor later , For example, various editors IDE All support vim
Shortcut key or vim
plug-in unit . The editing environment can be seamlessly switched .
Additional learning vim
Gave me a way to solve problems and learn from them : Ask questions according to the actual scene –> Find a solution –> Find a better way –> Learn new knowledge –> Bring new knowledge –> Use new knowledge to better solve previous problems . I think I have passed on this idea through some previous articles , For example, continuous improvement according to the knowledge learned Add a semicolon at the end of each line
This operation . Use .
perhaps Macros to manipulate duplicate content, and so on . There are even small partners who give better solutions in the comment area , These are the embodiment of this idea .
As new knowledge continues to emerge , And knowledge can be quickly applied to work . Study vim There is good positive feedback in the process of , Previously, you didn't need to stop clicking the mouse or manually complete the operation , Now it only takes a few seconds or minutes vim The joy of automatic completion makes me study vim I have always enjoyed it .
I think this is my study vim And use vim The meaning and happiness of it
The journey of writing this series of articles
The beginning of learning vim I was confused when , read vim The user manual is dry , Dizzy reading , I don't remember much , Basically close the book and forget . Many online tutorials list commands directly , It's similar to the user manual . Or write a bunch of configurations directly to tell you vim It can be configured to work well . These are full of Networks , But it's not what beginners like me need . What I hope is that there is a tutorial to help me master it step by step in practical use vim These knowledge points , I need a tutorial to follow it, so I can understand it and use it in practice vim. I need a vim Manual and practical use of a bridge . Unfortunately, I didn't find the tutorial I wanted . Then I'll write it myself , I believe there must be vim My beginners are the same as what I encountered at the beginning , I want to write out the tutorial that I think is most suitable for me , Maybe it's also suitable for others .
In the process of writing this series of articles , I have a deep understanding of , In today's Internet Environment , Once you write something , This thing doesn't belong to you right away . Of course, this is not to say that someone plagiarizes . I'm just lamenting the speed of content dissemination on the Internet , I will update the first article on water injection , Someone immediately paid attention to me and commented on my support . This undoubtedly gave me great courage , Let me update this series of articles slowly . There are also daytime work 、 Sort out materials in the evening 、 Blogging , During the day, when I take time to publish , Sometimes I'm tired , Occasionally, I also want to have a rest or break , There is an idea to update the content that I think is more interesting . But think of those who pay attention to me because of my articles , I don't know how lost they will be when they see me breaking the watch , It's not easy to find a suitable one, and I want to learn well , The feeling of being forced to interrupt , I can understand . In that case, then harden your scalp and update . Once this series of articles begins to be approved 、 to update , Then it doesn't belong to me , It belongs to the little friends who hope to learn something through these articles . I have an obligation to publish them one by one .
Among them, there are also many friends who go private with me , Tell me they learned a lot from my article , Also picked up the right vim
The interest of . These encouraging voices have helped a lot . especially Zhihu users @ugvibib. At first, he has been giving me comments to share his learning experience , It's also because he kept sending me private letters reminding me of typos or typos in some places . These articles are partly due to him , thank @ugvibib Be responsible for proofreading me .
In the process of writing these articles , I really feel “ Your likes and comments are my greatest support ” This sentence is not completely flattering , Empty words that cheat traffic . I also sincerely hope to get feedback in the process of updating this series of articles , Get attention , Let me know that these craps I wrote are still read by others , Someone can benefit from it , These are not my own words here , Since hi , These are not Internet garbage . Some people are concerned 、 Some comments and likes gave me the motivation to continue updating .
What should I do later
About vim So far, all the basic operations of have been updated , But it's not vim All . How to learn later vim Well ?
- Read through vim User's Manual , I believe that through the study of these articles, you little friends will reread vim The manual will not feel at a loss . We can vim Find a more suitable operation method in the manual than I introduced . Form a set of operation procedures that are only suitable for you
- Begin to learn
vimscript
Slowly customize your own vim - Not all occasions are allowed
vim
Of . Next, we can considervim
The operation mode of is transferred to other editors , for examplevisual studio code
、emacs
wait .
Finally, thank you for your attention and encouragement to my little friends , I want to continue to write the next column vim dependent . Temporarily set it as writing vimscript and vim Configure related content .
边栏推荐
- 迷失在Mysql的锁世界
- New intersectionobserver usage notes
- VS2019 C# release下断点调试
- Interviewer: what is XSS attack?
- MYSQL 用!=查询不出等于null的数据,解决办法
- [leetcode] 17. Letter combination of telephone number
- Solve the problem of data disorder caused by slow asynchronous interface
- From repvgg to mobileone, including mobileone code
- 【活动早知道】LiveVideoStack近期活动一览
- 解决异步接口慢导致的数据错乱问题
猜你喜欢
El tree combined with El table, tree adding and modifying operations
el-tree结合el-table,树形添加修改操作
Why do you have to be familiar with industry and enterprise business when doing Bi development?
Daily question -leetcode1200- minimum absolute difference - array - sort
【C語言】符號的深度理解
How was MP3 born?
MP3是如何诞生的?
MP3是如何诞生的?
奋斗正当时,城链科技战略峰会广州站圆满召开
如何借助自动化工具落地DevOps
随机推荐
Operation of adding material schedule in SolidWorks drawing
Flutter TextField示例
GTEST from ignorance to proficiency (3) what are test suite and test case
From repvgg to mobileone, including mobileone code
开户哪家券商比较好?网上开户安全吗
How much is the minimum stock account opening commission? Is it safe to open an account online
PostgreSQL基本结构——表
WebGIS框架---kalrry
Analyzing the maker space contained in steam Education
QT - double buffer plot
Cloudcompare & open3d DBSCAN clustering (non plug-in)
Jerry's ad series MIDI function description [chapter]
gtest从一无所知到熟练使用(3)什么是test suite和test case
[C language] deep understanding of symbols
关系型数据库
Cadeus has never stopped innovating. Decentralized edge rendering technology makes the metauniverse no longer far away
Master the use of auto analyze in data warehouse
How to use concurrentlinkedqueue as a cache queue
numpy vstack 和 column_stack
Monitor the shuttle return button