How to install Vim plugins without a plugin manager

How to install Vim plugins without a plugin manager
Dayne Dayne (57)
Total time: 5 minutes 

Vundle, Pathogen, Vim-plug, VAM, and the others can be great time savers but sometimes you just have to do something yourself so you can understand what exactly the time saving software is doing for you in the background. For myself, I got sick of not understanding what these were doing to my system. I realized I did not know the fundamentals of vim plugins so I set out to learn.

This is a step by step guide to teach you how to install a basic vim plugin without the help of any fancy manager.

Here's everything you'll need to complete this guide:


Usually, you will have a .vim directory in your home folder. This is where you should put plugins and syntax files for vim. This is just a convention, however, so feel free to put them wherever you want.

If its hosted on Git, this is the place to do the following:

git clone <repository-url>

If its not, that's ok too. However you've obtained it, it will work as long as it follows vim's conventions of file and directory naming. If its just a single file with a .vim filetype, I recommend creating a directory here and putting the file inside.

Now that your plugin is where we want it, we need to tell vim where to find it every time you start it up. Your runtimepath is where vim looks for scripts, syntax files, plugins and other things to include in your vim environment. Inside vim, you can find your runtimepath with the following command:

:set runtimepath?

To update your runtimepath and load your new plugin, we're going to edit your .vimrc which should be located in your home folder. The syntax to add a directory to your runtime path looks like this:

set runtimepath^=~/.vim/bundle/ctrlp.vim

You can call the following command:

:source ~/.vimrc

or just close and restart vim.

If you see errors while starting up vim or your plugin just doesn't work, something went wrong. Sometimes vim plugins have dependencies or other installation steps so your mileage may vary.

If you feel differently about this process or have any strong opinions whatsoever, please comment and maybe we'll all learn something!

Dayne's profile pictureDayne
Joined in 2015
Software engineer, co-founder of Howchoo, and renaissance man. Lifelong amateur woodworker, espresso mechanic, freestyle lyricist, drummer, artist, runner, coffee roaster, electrical engineer, gamer, inventor, churner, psychoanalyst, photographer, pizza chef, pit master, audiophile, guitarist, entrepreneur, dad, yogi, cyclist, and barista.
Related to this guide:
Vim undo branches
You probably already know how to use vim's basic undo and redo features. For a quick refresher, read this short tutorial on how to use vim redo and undo.
Dayne's profile picture DayneView
In these interests: vim
3 Ways to Use Tabs in Vim
Vim tabs can be a great way to visualize which files you currently have open. Many vim users get bogged down by them and either end up working too hard to use them or give up altogether.
Dayne's profile picture DayneView
In these interests: vim
Vim redo and undo
Learn how to undo and redo changes using vim. If you are brand new to vim, learn more about the basics in this intro to vim guide.
Dayne's profile picture DayneView
In these interests: vim
People also read:
Once you learn to think in text objects, you'll never be the same
Vim is a powerful tool. I often paste raw data into Vim in order to format it in a specific way, and sometimes I need to clean up the file by removing many blank lines.
One of the strengths of Vim is that it's highly customizable. And while remapping keys is possible, we often want to create shortcuts without changing the default key bindings.
If you find yourself highlighting text in Vim with your mouse to copy and paste it elsewhere, stop. There's a better way, using the yank command, to copy text into your clipboard on macOS or Windows.
Basic vim commands
Because you've accidentally opened Vim and don't know how to exit
Vim is amazing. Well, Python is doing all the work, but I still like Vim. Learn how to format JSON in Vim like a pro with this short guide! tl;dr Paste your json, and run this in vim normal mode. :%!
Tabs are evil. This guide will show you how to convert tabs to spaces in Vim.
Posted in these interests:
All things web development.
Discuss this guide: