当前位置:网站首页>10 Super VIM plug-ins, I can't put them down
10 Super VIM plug-ins, I can't put them down
2022-06-25 16:04:00 【Seven step programming】
hello, Hello everyone , I am a Jackpop, Master graduated from Harbin Institute of technology , I worked in Huawei 、 Ali and other big factories work , If you are interested in further education 、 employment 、 There are doubts about technology improvement , Might as well make a friend :
I am a Jackpop, Let's make a friend !
I am a loyal Vim Editor user , Engaged in development for many years , I've always enjoyed using Vim.
Light weight 、 convenient , and , I'm familiar Vim After the relevant shortcut key , Efficiency can be multiplied .
In addition to these ,Vim Like many famous IDE、 Editor is the same , It also supports plug-in configuration , Through these plug-ins , More advanced 、 Efficient operation .
today , Let's share 10 One of my favorite Vim plug-in unit .
1. Volt

I am not even a plug-in in the first place , however , It can replace Vundle Etc , therefore , I list it here .
Volt Is a Vim Plug in Manager , You can use it to install plug-ins , And create something called "profiles" The combination of plug-ins .
You can use a command to enable a new configuration file :Volt profile set myprofile.
With this tool , It can realize some valuable operations , such as , Only for Python Language enable indentpython plug-in unit .
Volt It also provides a simple way to configure each plug-in .
Configuration is shared between configuration files , So you can install the plug-ins once , And use them in multiple configuration files .
2. Vim-Rainbow

Parentheses are frequently used in most programming languages , Curly braces 、 brackets 、 parentheses .
Usually , They use multiple pairs of parentheses , One pair is embedded in the other . To figure out which closing bracket belongs to which opening bracket , It may become very difficult , It's also annoying .
VS Code and IDEA There are such plug-ins in to solve this problem , And very popular .
vim-rainbow It is Vim Plug-ins used to solve this problem in , It provides corresponding functions for each pair of parentheses . It gives each square bracket a unique color , So it's easy to identify which square brackets belong to each other . It's very useful , Also very colorful .
3. lightline

There's a lot of Vim Plug in for , such as Powerline, They put a bar at the bottom of the screen , Show what file you are working on , Your location in the file , What kind of file , wait .
Each of these plug-ins has its advantages and disadvantages , After a simple trade-off , I chose lightline.
It's relatively small , Easy to set up , With scalability , And you don't need any other tools or plug-ins .
4. NERDTree

NERDTree Is a classic plug-in .
In large projects , It can be difficult to find the exact name and location of the file that includes the line you need to edit .
adopt NERDTree Is a classic plug-in and shortcut key settings ( In my case, it's F7, Because I'm in my .vimrc In the configuration file NERDTree And F7 binding ), A vertically split Explorer window opens , I can easily browse to the file I want and open it .
This is valuable for large code bodies .
5. NERD Commenter

All the programmers , At some point , Writing code introduces a problem that is difficult to debug , Cause them to need comments or undo comments .
This is it. NERD Commenter Where it comes in handy .
Choose code , Click on Leader+cc, Your code is annotated ( The standard Vim Leader The key is / character ), Click again on the Leader+cn, Your code is uncommented .
NERD Commenter Automatically use correct comment characters for most file types . for example , If you are editing a BIND Regional documents , And set the file type to BIND Area .
6. Solarized
I use Vim Of Solarized Color schemes have been around for a long time , I put my terminal 、dir_colors and Vim Set to consistent .
however , Every once in a while , I will switch between light and dark modes , It depends on my environment 、 Amount of screen light , And whether I need to put things on the big screen for others to read .
obviously , You can choose any color scheme you like , But I prefer Solarized, It has light and dark patterns , Switching between the two is simple , And it's not too intrusive .
My second choice is Monokai.
Volt The plug-in manager makes it easy for me to switch between the two , So I can use Monokai Conduct Python Programming , use Solarized Conduct Bash Programming .
I didn't include Solarized Pictures of the , Because the other pictures in this article use Solarized A light or dark color , So check them out .
7. fzf

Edit switch to center
Add picture comments , No more than 140 word ( Optional )
When you look for a file , Sometimes you just want to type something similar to the file name you are looking for on your keyboard .
fzf( or “ Fuzzy Finder ”) Plug-ins can give you this effect .
Click on :FZF And start typing .
A shrinking list will show you more or less what you are looking for .
I often use this , Probably better than the recent NERDTree More .
8. ack

Every once in a while , You want to search a file that contains a line or a word .
I love using ack plug-in unit , It's better to ag Use a combination of ,ag It's called "the silver searcher" The order of .
This plug-in is incredibly fast , It covers the vast majority of me grep or vimgrep What can be done .
9. gitgutter

Edit switch to center
Add picture comments , No more than 140 word ( Optional )
majority IT People are connected with Git and Git Dealing with documents in the warehouse .
gitgutter The plug-in adds a column near your line number , Shows the changes (~)、 add to (+) And delete (-) The symbol of .
This is very useful for recording what you have changed , It allows you to focus on the task at hand , For example, write a patch to fix a critical error .
This plug-in has a little performance gap , Sometimes it takes a second to catch up with your changes , But it is still quite useful .
10. Tag List

Edit switch to center
Add picture comments , No more than 140 word ( Optional )
If you program in a fairly large file , It's easy to lose your place , You may find yourself scrolling up and down to find a feature .
With Tag List plug-in unit , You just type in :Tlist, You can get a vertically divided variable 、 type 、 Classes and functions , You can easily jump to .
This applies to many languages , Such as Java、Python, as well as ctags Any other document type to which the tool applies .
This is what I would recommend 10 paragraph Vim plug-in unit , They are left by layers of screening in the daily development process and are often used , In the working process, it also greatly improves the development efficiency , I recommend it to you !
边栏推荐
- Gold three silver four, an article to solve the resume and interview
- 数据存储和传输文件之XML使用和解析详解
- 《睡眠公式》:怎么治睡不好?
- Deep learning pytorch cifar10 dataset training "suggestions collection"
- Pytest test framework notes
- 揭秘GaussDB(for Redis):全面对比Codis
- 一文带你搞懂 JWT 常见概念 & 优缺点
- [Third Party framework] retrofit2 (2) - add point configuration of network access framework
- Linux-MySQL数据库之高级SQL 语句一
- Constructor Pattern
猜你喜欢

Overall MySQL architecture and statement execution process

The style of the mall can also change a lot. DIY can learn about it!

How to reload the win10 app store?

Sword finger offer 06 Print linked list from end to end

LeCun预言AGI:大模型和强化学习都是斜道!我的「世界模型」才是新路

合宙Air32F103CBT6開發板上手報告

Startup and shutdown of appium service

Describe your understanding of the evolution process and internal structure of the method area

地理位置数据存储方案——Redis GEO

Sword finger offer 07 Rebuild binary tree
随机推荐
不要小看了积分商城,它的作用可以很大!
Mt60b1g16hc-48b:a micron memory particles FBGA code d8bnk[easy to understand]
LeCun预言AGI:大模型和强化学习都是斜道!我的「世界模型」才是新路
Advanced SQL statement 1 of Linux MySQL database
The textfield is encapsulated by the flutter itself, which causes the data display to be disordered when the data in the list is updated.
Practice of geospatial data in Nepal graph
f_read 函数[通俗易懂]
After flutter was upgraded from 2.2.3 to 2.5, the compilation of mixed projects became slower
About the use of Aidl, complex data transmission
JS的遍历和分支判断(2022年6月24日案例)
After the project is pushed to the remote warehouse, Baota webhook automatically publishes it
Problems caused by using ApplicationContext to render layout
读配置、讲原理、看面试真题,我只能帮你到这了。。。
Differences between = = and = = = in JS (detailed explanation)
In the wechat environment, H5 jumps to the specified page of the applet
面试官:你简历上说精通mysql,那你说下聚簇/联合/覆盖索引、回表、索引下推
js 给元素添加自定义属性
Mixed density network (MDN) for multiple regression explanation and code example
Prototype mode
The style of the mall can also change a lot. DIY can learn about it!