In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article analyzes "what are the top ten convenient Vim plug-ins". The content is detailed and easy to understand, "what are the ten convenient and easy-to-use Vim plug-ins" interested friends can follow the editor's ideas slowly in-depth to read, I hope that after reading can be helpful to everyone. Let's follow the editor to learn more about "what are the ten convenient and useful Vim plug-ins".
For different programming languages, the most convenient and useful Vim plug-ins are not certain. So Xiaobian collates and collates ten Vim plug-ins, namely Vim-Rainbow, NERD Commenter, NERD Commenter, ack, fzffzf, gitgutter, Volt, Tag List, lightlineVim, NERDTree and Auto Pairs. I believe that one of these ten Vim plug-ins is always suitable for you.
1 、 Vim-Rainbow
With the exception of Python, almost all major programming languages use parentheses. Typically, they are nested with pairs of parentheses, so it is difficult to figure out the opening and closing range of a parenthesis. I often find myself counting parentheses, especially in complex Bash scripts, to make sure they are correct. This is when you need the vim-rainbow plug-in! It sets a different color for each pair of parentheses, so it's easy to identify which parentheses are pairs of parentheses. It is very useful and colorful.
2 、 NERD Commenter
Programmers sometimes encounter problems that are difficult to debug when writing code, causing them to comment or not execute a piece of code. That's when you need NERD Commenter to come out. Select the code snippet, press Leader + cc, and the code will be commented out. The standard Vim Leader key is the / character. Press Leader + cn to uncomment. For most file types, NERD Commenter automatically uses the correct annotations. For example, if you are editing a BIND area file and set the file type to BIND area file, Vim will use the; (semicolon) character to comment correctly.
3 、 ack
Sometimes you need to search for files that contain specific lines or words. Use the ack plug-in, which is best used with ag, and the combination of the two is also known as "silver searcher". This combination is very fast, covering the vast majority of grep or vimgrep usage scenarios. The disadvantage is that you need to install ack or ag to work properly. The good news is that both Fedora and EPEL7 can use ag and ack.
4. Fzffzf (full name "fuzzy finder")
The plug-in provides this feature. Type: FZF and enter the contents of the file name. The shortened list will show some files that match the contents of the file name you entered. I use it a lot, and recently I've probably used it more frequently than NERDTree. The disadvantage is that this plug-in depends on fzf binary, so you must also install this dependency package. It works with Fedora, Debian, and Arch.
5 、 gitgutter
Most IT people work with files in Git and Git repositories. The gitgutter plug-in adds a column near the line number, symbolically indicating that the status of the line is changed (~), added (+), or deleted (-). This helps keep track of your changes and allows you to focus on the task at hand, such as writing patches to fix a key bug.
6 、 Volt
It is a Vim-independent Vim plug-in manager. You can use it to install plug-ins and create a combination of plug-ins called "profile". You can use a simple command volt profile set myprofile to enable the new configuration. This way I can do things like enabling the indentpython plug-in separately for the Python configuration. Volt also provides a simple way to configure each plug-in, which is shared between "profile", so you only need to install the plug-in once to use it between multiple "profile". There is only one drawback, no matter how many "profile" you want to use, each plug-in can only have one configuration file. But beyond that, it is convenient, easy to use, fast and simple.
7 、 Tag List
If you write code in a large file, it's easy to forget where you are, and you may need to scroll up and down to find a feature. With the Tag List plug-in, you can display code containing variables, types, classes, and functions vertically by typing: Tlist, and you can easily jump to these variables, types, classes and functions. This feature also applies to multiple languages, such as Java, Python, and any file type that can use the ctags feature.
8 、 lightlineVim
There are many such plug-ins, such as Powerline, which displays information about the file you are working on, the location of the file where the cursor is located, and the file type in the bottom bar. These plug-ins have their own advantages and disadvantages, and after a simple comparison, I chose lightline. It is relatively small, easy to install and extend, and does not rely on other tools or plug-ins.
9 、 NERDTree
NERDTree is a classic plug-in. In large projects, it may be difficult to find the exact name and path of the file where you want to edit the content. Using the shortcut keys, the search window opens vertically, so you can easily find the desired file and open it. For large projects, this is a required plug-in. It is also useful for those who often forget the file name.
10 、 Auto Pairs
The Auto Pairs plugin can help you insert and delete pairs of text, such as curly braces, parentheses, or quotation marks. This is useful when writing code because many programming languages have the syntax of pairs of tags, just as parentheses are used for function calls or quotation marks are used for string definitions. The most basic function is to automatically complete the other half of the parenthesis when you enter a left parenthesis. For example, if you enter a [, it will automatically help you add your partner]. Conversely, if you use the Backspace key to delete the first half of the parentheses, Auto Pairs will delete the other half. If you set automatic indentation, Auto Pairs will complete the other half of the parenthesis in the appropriate indent position when you press enter, which is much less effort than finding where to place the other half and choosing the correct parenthesis.
On the top ten convenient and easy to use what the Vim plug-ins are shared here, I hope that the above content can make you improve. If you want to learn more knowledge, please pay more attention to the editor's updates. Thank you for following the website!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.