The 12 Best Vim Plugins To Improve Your Workflow

Vim is a widely used terminal editor in the Linux world and like many other Linux applications, it also runs on Unix, Windows and macOS.

One of the things people love most about Vim is that it is highly customizable and extensible via plugins. Finding the right plugins for your workflow will greatly improve your productivity on Linux.

Here is a selection of the 12 best Vim plugins that will improve your workflow on Linux.

1. NERDtree

NERDTree is a file exploration plugin that allows you to visualize your project hierarchy directly in the Vim editor. In addition, you can use it to browse complex folder structures and open files for editing. You can install NERDTree manually or with your favorite Vim plugin manager.

Once installed, you can open NERDTree with the Vim command :NERDtree.

Learn more or get help about this amazing file explorer using the following Vim command :help NERDTree. Take advantage of Vim’s built-in tutor to master this amazing editor.

to download: NERDboom

2. Emmet Vim

Emmet-vim is a powerful and flexible code completion plugin. It is mainly aimed at web developers who work with HTML and CSS. Emmet is more flexible and customizable than traditional code snippets.

For example, to create three HTML links with emmet, simply type li*3 and press the hotkey Ctrl + Y followed by , (comma) and emmet will automatically create the code for you. emmet is also available for other code editors like VS Code, Atom and more.

to download: Emmet-vim

3. vim-gitgutter

vim-gitgutter is a great tool if you use the Git version control system in your workflow. This plugin will help you keep track of your code by showing you all the changes you’ve made to your remote repository. For example, it marks added, modified or deleted files.

If you use other version control systems such as Bazaar, Mercurial, Subversion, Darcs, etc., you can also use the vim meaning plug in.

You can also use Git actions such as stage, preview, and undo code changes in your repository. vim-gitgutter comes with additional features like optional line highlighting, partial chunk staging, etc.

The plugin takes its inspiration from a similar plugin available for the Sublime text editor. You can also use it with Vim’s line number feature to see which lines have been changed.

to download: vim-gitgutter

With this great plugin you can easily comment and uncomment code in Vim. commentary.vim has very few commands and is extremely easy to use, even for beginners.

The main command is: gcc that comments on a single line of code. Use the command gc to comment on an entire selection when in visual mode.

commentary.vim is based on Vim’s support for operator mapping. You can install the plugin through Vim’s plugin support or with your favorite plugin manager.

to download: comment.vim

5. vim airline

vim-airline displays a nice and sleek status bar at the bottom that replaces the default bar in Vim. The status line consists of several sections and gives you information such as the current cursor position in the file, file type, file format, etc. The different sections are clearly colored to give you a nice hint.

The plugin theme, colors and functionality are easy to configure and can be customized to your liking. vim-airline is a lightweight, well-tested Vim plugin and integrates well with other plugins like fugitive, eclim, Flog, etc.

to download: vim airline

6. fzf

Based on the general command line finder, the fzf plugin (fuzzy Finder) is basically a wrapper for the same thing. It contains a few commands that you can easily get used to, whether you are a beginner or an advanced Vim user.

The plugin is very light, super fast and easy to install. The official fzf GitHub page has very good documentation on how to use the plugin.

to download: fzf

7. Fugitive

Fugitive is touted as one of the best Vim plugins for Git integration. The name Fugitive comes from the fact that the creators love it so much that it should be illegal.

Fugitive works more like a wrapper for Git commands, and its syntax is very similar to Git. To run Git commands, just add the :Gita prefix for your commands. For example, to capture, use the Vim command :Git commitor :Git difference to show Git diff between multiple commits or branches.

In addition, the plugin provides some custom commands for higher-level editing, such as: :Gedit to view a commit, tree, or tag in the repository, or :GDelete for running the git rm command on the current file. To move a file, you can :GMove which is similar to the Git command git pl.

to download: fugitive

8. Asynchronous Ribbon Engine (ALE)

The ALE plugin, short for Asynchronous Lint Engine, is a code analysis and linting tool that displays warnings and errors in real time as you make changes to your code.

In addition to fluffing, ALE also offers quick suggestions on how to fix codes with the :ALEFixSuggestion order. It also supports automatic code completion. In fact, you can view more information about a symbol by hovering over it with the :ALEHover order.

ALE is well documented and you can access most of the documentation using the :help out order. For example, if you want to get help with the hover function, you can :help ale hover.

ALE has support for dozens of programming and scripting languages ​​such as C#, Bash, Ansible, Chef, SQL, JavaScript, YAML, TypeScript, C, LaTeX, etc.

to download: ALE

9. OmniSharp Vim

C# is a programming language originally developed by Microsoft and could only run on Windows. Fast-forward to the present, you can run C# on Windows, macOS, and Linux. And it doesn’t stop there, you can even develop C# code in Vim.

The OmniSharp vim plugin is specially made to help you easily write C# code in Vim. It provides code completion, code IntelliSense, and other necessary features to make writing C# code in Vim just as enjoyable. Some other great features it supports are code refactoring, syntax highlighting, code formatting, unit test runner, etc.

to download: OmniSharp-vim

10. surround.vim

As the name suggests, the surround.vim plugin is all about surrounding a piece of text or code with a different character, especially parentheses, parentheses, quotes, etc. The plugin uses very simple commands to accomplish its purpose. reach.

to download: surround.vim

11. Super Tab

Supertab will help you complete the insertion through the tab key on your keyboard. Even better, it’s easy to configure so you can tailor it to your needs.

Use the vim command :help supertab to get help with the plugin. You can use any of your favorite plugin managers or Vim’s built-in plugin support to install the plugin.

to download: super tab

12. SnipMate

The main purpose of this plugin is to provide snippets similar to the snippets supported in the TextMate text editor to make your coding faster. For example, if you’re using a C-based programming language to create a for loop, just run “in front of” followed by the tab key, and it will create the following code for you:

for (i = 0; i < count; i++) {

You can also easily add your own custom snippets for your favorite programming language with SnipMate.

to download: SnipMate

Customize Vim to your preferences using plugins

Apart from extending and providing additional functionality to Vim, plugins greatly improve your workflow and productivity. There are thousands of Vim plugins at your disposal and you can find the one that best suits your workflow and install it for free.

If Vim’s default user interface doesn’t cheer you up, you can further customize the editor with the built-in customization features using the .vimrc File.

Leave a Reply

Your email address will not be published. Required fields are marked *