11 votes
Accepted

What's the correct way to install YouComplete using vim-plug in vim/nvim?

neovim version 0.1 has breaking changes. It uses directory ~/.config/nvim (On Mac OS X. Linux or Windows may use slightly different paths.) If you want your neovim configuration independent of vim ...
user avatar
  • 226
10 votes
Accepted

How to install fzf.vim with Vundle?

You've installed the fzf.vim wrapper plugin, but you haven't installed the base fzf plugin, which provides the underlying functionality, including the autoload functions that the error messages are ...
user avatar
  • 28k
5 votes
Accepted

Unable to conditionally test for presence of a plugin command & invoke it

The problem is, your vimrc file is executed before any plugins are loaded. You can check the order of what source files are loaded by issueing the :scriptnames command. The usual way to fix this ...
user avatar
5 votes

Why does `vim-plug` add the .vim file to .vim/autoload and not .vim/plugin?

Choosing between plugin/ and autoload/ is a matter of how a plugin designer intends the plugin to be used. vim-plug is intended to be placed in autoload/ because it is initialized through functions ...
user avatar
  • 12.8k
5 votes
Accepted

How can I list the plugins currently *active* when using VIM-Plug?

You can get all plugs from g:plugs_order list or g:plugs dict. g:plugs's value also contain useful config infomation about the plug. Like dir where the plug is installed. So, you can use: if has_key(...
user avatar
  • 166
5 votes
Accepted

What does an `autocmd User` do?

In my understanding, that example creates a User autocommand named YouCompleteMe which will be fired by vim-plug itself, in order to load the plugin on demand. If I'm not mistaken, here's the place ...
user avatar
  • 9,330
5 votes

Call plugin-defined function in .vimrc

All directories in your Vim runtimepath can have a directory called after which can contain directories like plugin and ftplugin but get sourced after the regular ol' plugin and ftplugin directories ...
user avatar
4 votes

Can I get vim-plug to skip installing a plugin, based on some Vimscript condition?

From the FAQ (prettier formatting there): Conditional activation Use plain "if" statement to conditionally activate plugins: if has('mac') Plug 'junegunn/vim-xmark' endif The caveat ...
user avatar
  • 753
4 votes
Accepted

Detecting whether colorscheme is available

You could search the colorscheme file via the runtime path: let colorscheme="desert" if findfile("colors/" .colorscheme .".vim", &rtp) != "" execute "colorscheme " . colorscheme endif ...
user avatar
  • 8,635
4 votes
Accepted

Order in runtimepath of Vim packages or similar plug-in managers

As I don't know where to find the "written" rules, I digged into the source code instead. Also note that there are both Vim and Neovim, but it looks that they still share almost the same code in this ...
user avatar
  • 16.9k
4 votes

Can you use plugins inside of your vimrc?

These lines define special remappings, so I think it makes sense that they are called on startup time and not via an autocmd. Note that there's a specific autocmd event which is essentially for "...
user avatar
  • 26.2k
4 votes
Accepted

How to install plugins into 2 different folders in ~/.vim directory

So your question has already been asked in vim-plug's issue tracker, see #905. @raindev said this (I changed the link to the code to not use master in case the code changes in the future): I don't ...
user avatar
  • 46.5k
3 votes
Accepted

VimPlug, Vim won't load plugins: E117: Unknown function : plug#begin;

Looks like you created the autoload directory (or ran the wget command to install vim-plug) under sudo. Running it under sudo will be bad because it will create files and directories that only root ...
user avatar
  • 26.2k
3 votes

What's the correct way to install YouComplete using vim-plug in vim/nvim?

It's installed in the .vim/ dir, because of call plug#begin('~/.vim/plugged') try: call plug#begin('~/.config/nvim/plugged') Instead, as answered above
user avatar
3 votes
Accepted

Can I get vim-plug to skip installing a plugin, based on some Vimscript condition?

As noted in the comments, you can use Vimscript within the vim-plug block, so I ended up checking for particular commands to control installation of plugins. For example, I rarely have cmake installed,...
user avatar
  • 23.9k
3 votes
Accepted

Neovim: plugins installed but not working

My guess is that you haven't activated the plug-ins. In the rainbow case you should add let g:rainbow_active = 1 to your init file (Neovim's one is located in ~/.config/nvim/init.vim). In case of ...
user avatar
  • 1,912
3 votes

What's the correct way to install YouComplete using vim-plug in vim/nvim?

I managed to install it. What I did was install python for neovim using pip install neovim The next thing I did was :PlugInstall YouCompleteMe from within neovim and it started installing as it ...
user avatar
  • 373
3 votes
Accepted

How to load plugins from my vimrc and from another file?

(I haven't tested this) You could use another local file, that contains exclusively Plug ... commands. The main vimrc would load this, inside the plug#begin - plug#end section. Something like: let $...
user avatar
  • 9,330
3 votes
Accepted

Dracula theme not recognized in init.vim

A brief word on how vim-plug works... The main part of a plugin config is a path on GitHub. In your case dracula/vim refers to https://github.com/dracula/vim. What vim-plug needs to do, then, is ...
user avatar
  • 18.4k
3 votes
Accepted

Sourcing (a very tiny) vimrc changes iskeyword

The effect you're seeing is due to the set nocompatible command resetting many other options, 'iskeyword' included. From :help 'nocompatible': This is a special kind of option, because when it's set ...
user avatar
  • 26.2k
2 votes
Accepted

How can I stop a system ftplugin file from overriding the keybindings from a plugin I manage via vim-plug?

Look at the top of $VIMRUNTIME/ftplugin/ocaml.vim -- you'll see some lines that say: if exists("b:did_ftplugin") finish endif So, put in your personal $HOME/.vim/ftplugin/ocaml.vim the line ...
user avatar
  • 756
2 votes
Accepted

VimPlug unknown function plug#begin in NeoVim

For whatever reason it doesn't seem to see VimPlug with the first symbolic link I had in my post. This is the only plugin I couldn't get to work in neovim with it. So instead of making a symbolic ...
user avatar
  • 313
2 votes
Accepted

Why won't vim-plug install my plugins? [typo]

@P1h3r1e3d13 Please try the following configuration For .vim.plug: " ============================================================================= " Plugin Manager Setup " ===========================...
user avatar
  • 786
2 votes
Accepted

What are suggested ways to modify a plugin that was installed by vim-plug?

If you installed the plugin with vim-plug, then all the files from the plugin will be located at ~/.vim/plugged/<NAME>. You can just modify these files, and test the changes (re-source the ...
user avatar
  • 435
2 votes
Accepted

How do I set a final size to a split in vim

First we need to resize a split window vertically :h :vertical-resize tells us that from the command line mode we can use :vertical resize 50 Or we could also use :50wincmd | but I find that less ...
user avatar
  • 46.5k
2 votes

Nvim +UpdateRemotePlugin +qall gives me error: Abort trap 6

I solved the problem by running :PlugUpgrade; now my plugins that I use work. It bugged me mainly because fireNvim stopped working in the web browser. The ruby thing still persists but it is probably ...
user avatar
2 votes
Accepted

vim-plug: install plugins on startup not working properly on Ubuntu

Checking the output of filter helped diagnose the problem, my vimrc also contained the following line: " If installed using Homebrew Plug '/usr/local/opt/fzf' which referred to a program (fzf) that ...
user avatar
2 votes

Call plugin-defined function in .vimrc

If you look at :h starting, you'll see that plugin files are sourced after .vimrc is entirely processed. Functions defined in autoload plugin files could be used directly as long as the 'runtimepath' ...
user avatar
  • 16.2k
1 vote

Plugin management on Windows?

I cleaned out the installation and pulled the zip of vim-plug. Extracted the files into the autoload folder in vim82. Before I used the powershell solution. After that I made a custom plugin folder ...
user avatar
1 vote
Accepted

Same plugins for every .vimrc file (vim-plug)

Set nocompatible When you use a separate vimrc through the -u command-line flag, the nocompatible option will not be automatically set, as it is when using the normal user vimrc file. See :help ...
user avatar
  • 26.2k

Only top scored, non community-wiki answers of a minimum length are eligible