当前位置:网站首页>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 !
边栏推荐
- Based on neural tag search, the multilingual abstracts of zero samples of Chinese Academy of Sciences and Microsoft Asiatic research were selected into ACL 2022
- TFIDF与BM25
- Open the box to experience rust, come on!!!
- Resolve Visio and office365 installation compatibility issues
- Continuously improve the overall performance of adaoracle Oracle Oracle
- 不要小看了积分商城,它的作用可以很大!
- Sword finger offer 05 Replace spaces
- How to reload the win10 app store?
- TensorFlow加载cifar10数据集
- 解析数仓lazyagg查询重写优化
猜你喜欢

Alvaria宣布客户体验行业资深人士Jeff Cotten担任新首席执行官

Programmer vs hacker thinking | daily anecdotes
What is session? How is it different from cookies?

Principle analysis of ThreadLocal source code

Do you want to go to an outsourcing company? This article will give you a comprehensive understanding of outsourcing pits!

Asynchronous processing of error prone points

合宙Air32F103CBT6开发板上手报告

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

分享自己平时使用的socket多客户端通信的代码技术点和软件使用

DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection翻译
随机推荐
Report on Hezhou air32f103cbt6 development board
Based on neural tag search, the multilingual abstracts of zero samples of Chinese Academy of Sciences and Microsoft Asiatic research were selected into ACL 2022
MySQL installation tutorial
js 给元素添加自定义属性
商城风格也可以很多变,DIY 了解一下!
Constructor Pattern
Leetcode topic [array]-34- find the first and last positions of elements in a sorted array
Sword finger offer 06 Print linked list from end to end
Binocular 3D perception (I): preliminary understanding of binocular
Advanced SQL statement 1 of Linux MySQL database
10款超牛Vim插件,爱不释手了
How to debug grpc by postman
Client development (electron) system level API usage 2
Flutter textfield setting can input multiple lines
Lifeifei's team applied vit to the robot, increased the maximum speed of planning reasoning by 512 times, and also cued hekaiming's MAE
leetcode-8. 字符串转换整数 (atoi)
商城风格也可以很多变,DIY了解一下!
GO语言-什么是临界资源安全问题?
Don't underestimate the integral mall, its role can be great!
Mt60b1g16hc-48b:a micron memory particles FBGA code d8bnk[easy to understand]