当前位置:网站首页>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 .
边栏推荐
- What is business intelligence (BI), just look at this article is enough
- 【C语言】符号的深度理解
- Jerry added the process of turning off the touch module before turning it off [chapter]
- Numpy vstack and column_ stack
- 保证接口数据安全的10种方案
- From repvgg to mobileone, including mobileone code
- Redis has three methods for checking big keys, which are necessary for optimization
- 机器学习笔记 - 互信息Mutual Information
- How much is the minimum stock account opening commission? Is it safe to open an account online
- Redis 排查大 key 的3种方法,优化必备
猜你喜欢
QT - double buffer plot
Analyzing the maker space contained in steam Education
How is the entered query SQL statement executed?
Arcgis 10.2.2 | arcgis license server无法启动的解决办法
机器学习笔记 - 互信息Mutual Information
Bizchart+slider to realize grouping histogram
MP3是如何诞生的?
QT - plot other problems
GTEST from ignorance to proficiency (3) what are test suite and test case
【C语言】符号的深度理解
随机推荐
[early knowledge of activities] list of recent activities of livevideostack
Application practice | Shuhai supply chain construction of data center based on Apache Doris
Daily question-leetcode556-next larger element iii-string-double pointer-next_ permutation
Interpreting the development of various intelligent organizations in maker Education
面试题 01.08. 零矩阵
How much is the minimum stock account opening commission? Is it safe to open an account online
New intersectionobserver usage notes
案例分享|金融业数据运营运维一体化建设
Open3D 曲面法向量计算
How was MP3 born?
flink1.13 sql基础语法(一)DDL、DML
QT - double buffer plot
Go语言循环语句(第10课中3)
一文掌握数仓中auto analyze的使用
Use of class methods and class variables
LambdaQueryWrapper用法
【C語言】符號的深度理解
面试官:说说XSS攻击是什么?
MongoDB中的索引操作总结
el-tree结合el-table,树形添加修改操作