Questions tagged [plugin-vim-plug]

Questions about vim-plug: a minimalist plugin manager.

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

How to install vim-treesitter?

I have installed neovim, it was cool so I installed vim-treesitter plugin. I'm trying to use it but I get some error message. I can't find solution about it. Could you help me? This is the error ...
user avatar
0 votes
0 answers
33 views

Cannot install vim plugin due to git problem

I'm on MacOS Big Sur with nvim 0.7.2,vim-plug, and git 2.37.1 installed. I succesfully installed vim-crystal (to enable syntax highlighting for Crystal codes) by doing this: Edit ~/.config/nvim/init....
user avatar
  • 101
1 vote
2 answers
148 views

Check if VimPlug is installed in .vimrc

I'm trying to have a .vimrc that is portable between machines. Some computers I use have VimPlugin installed, while others don't. On the ones with VimPlug, I'd like to do some setup using call plug#...
user avatar
0 votes
1 answer
208 views

How can I remove vim-plug, so I can migrate to Packer?

I upgraded to neovim, and I want to remove vim-plug. It randomly changes my style settings (literally turns on syntax on for no reason other than the author's preference), and it's not as nice as ...
user avatar
1 vote
0 answers
188 views

Sorry, the command is not available in this version

I am trying to install the UltiSnips plugin using vim-plug (for everything else, vim-plug works just fine). I put this: call plug#begin('~/.vim/plugged') Plug 'sirver/ultisnips' call plug#end() ...
user avatar
0 votes
0 answers
58 views

Vim Plug installment error on MacOS: Error creating directory /Users/api/.vim/autoload

I just migrated today from VSCode to Vim, and I need a little bit of help regarding the installation of Vim Plug. I installed Vim with Homebrew, and now I want to install Vim Airline. The tutorial I ...
user avatar
3 votes
2 answers
357 views

Call plugin-defined function in .vimrc

I use tpope/vim-fugitive and airblade/vim-gitgutter and I want to selectively enable gitgutter only in git repositories. Since vim-fugitive provides FugitiveIsGitDir which returns 0 or 1, this could ...
user avatar
1 vote
0 answers
69 views

:PlugUpdate is required every time I open vim [closed]

I’m setting up my LaTeX environment for vim, but the snippets (Ultisnips + vim-snippets + Gilles Castel’s tex.snippets with some changes) only work after I run :PlugUpdate (using vim-plug). I have to ...
user avatar
1 vote
1 answer
106 views

Sourcing (a very tiny) vimrc changes iskeyword

I'm having a hard time understanding how set nocompatible (a line which, from this answer on StackOverflow, I understand I could also remove from my ~/.vimrc, correct me if I'm wrong), syntax enable ...
user avatar
  • 1,670
0 votes
1 answer
254 views

VimPlug#begin in both vimrc and init.vim?

I'm new to neovim settings. I'm migrating from vim to neovim. My question is described in the comment below, (*). In ../init.vim I have: set runtimepath^=~/.vim runtimepath+=~/.vim/after let &...
user avatar
  • 771
2 votes
1 answer
419 views

Can using Vim-plug and Vundle together cause any issues in downloaded plugins?

I am completely new to vim and have to download few plugins. I had initially downloaded some using Vundle and now want to get more using vim-plug. I fear this may cause (version?) issues if I happen ...
user avatar
0 votes
0 answers
654 views

Vimplug fails to install tabnine. Remote moves between counting objects and compressing them

My vimrc is moving between remote: counting objects (1/1) and remote: compressing objects (4538/4538) constantly. I ran "PlugUpgrade | PlugClean | PlugInstall | PlugUpdate" in vimrc, and ...
user avatar
2 votes
1 answer
2k views

Dracula theme not recognized in init.vim

Here is the tutorial I am trying to follow Here is the init.vim file I have written. I just don't understand why I am getting the error Cannot find colorscheme 'dracula' This error is occurring in ...
user avatar
2 votes
2 answers
111 views

Can vim-plug write plugin settings directly to .vimrc?

I am new in using vim-plug. It works fine installing and updating all the plugins configured in .vimrc. But some plugins require some additional settings inside .vimrc to work correctly. Is there a ...
user avatar
  • 125
3 votes
1 answer
344 views

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

Currently, I am trying to create a ~/.vimrc file that I will be able to integrate into any environment and get all my configs with minimum user interference. In order to simplify my vim configuration. ...
user avatar
0 votes
0 answers
305 views

Gruvbox theme for Airline resets every time Vim closes

I have installed gruvbox using vim-plug, then I installed Airline and set the theme following the recommendations. But every time I close Vim and open it, the theme for Airline is reset to default and ...
user avatar
1 vote
1 answer
559 views

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

I fond out how to resize a split on the fly in Vim but I would like to have a fixed size to some split (like the NERDTree split it always has the same size). So basically I am using Vim Plug as a ...
user avatar
1 vote
1 answer
136 views

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

(neovim/vim beginner) After having ran upgrade homebrew I get error when I run nvim +UpdateRemotePlugins +qall. Anyone here knows how to get over this problem? Anyone here knows how to get over ...
user avatar
2 votes
1 answer
744 views

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

Vim packages work by updating 'runtimepath' to include the top directories of the plug-ins in each package (and also the after/ directory), but the Vim documentation on packages isn't absolutely clear ...
user avatar
  • 26.2k
3 votes
1 answer
472 views

Can you use plugins inside of your vimrc?

I recently learned the very hard way that vim-plug will only load plugins AFTER the vimrc is completely sourced: https://stackoverflow.com/questions/21322520/why-wont-vim-recognise-a-plugin-command-in-...
user avatar
  • 131
3 votes
1 answer
7k views

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

On Macbook Pro, Terminal, standard Vim, VimPlug When I start vim I get the following message: Error detected while processing /Users/me/.vimrc: line 159: E117: Unknown function: plug#begin In my ....
user avatar
1 vote
2 answers
565 views

Plugin management on Windows?

I am really new to vim and have been trying to use it more over the past months. Issue is I cannot get the plugins to work, I have followed the steps on vim plug github and some other sites. I am on ...
user avatar
2 votes
1 answer
2k views

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

per the recommendation in the vim-plug wiki: https://github.com/junegunn/vim-plug/wiki/extra, I've added the following snippet to my vimrc: " Install missing plugins on Vim startup autocmd VimEnter * ...
user avatar
0 votes
0 answers
2k views

coc not working in latest vim

I've installed coc following the instruction, using Vim-Plug (before that I did it without installing yarn and with kite still (partially) installed. I got a 'javascript file not found' error So I ...
user avatar
  • 145
1 vote
1 answer
653 views

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

I have a question regarding the following situation: I want to use a default .vimrc and a vimrc (name it .vimrc2) for a special purpose. However, when I start vim with vim -u ~/.vimrc2 I have the ...
user avatar
  • 115
1 vote
2 answers
53 views

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

I have the following code in my vimrc if exists(":Goyo") augroup LatexGoyo autocmd! autocmd BufReadPost,BufNewFile *.tex Goyo augroup END else augroup LatexColumnSet ...
user avatar
1 vote
0 answers
124 views

Vim-plugin error which goes away when using sudo

After resisting for a bit, I decided to try the plugin manager vim-plug. It seemed to work well when installing the GhostText plugin, except that I had to do the installation in a sudo nvim session, ...
user avatar
  • 151
1 vote
1 answer
6k views

Vim-Plug: Can't install plugins. Invalid plug directory

I'm new to vim. The problem happens when I type :PlugInstall I get: [vim-plug] Invalid plug directory: /Users/joqsan/.vim/plugged. Try to call plug#begin with a valid directory This is how I ...
user avatar
  • 119
4 votes
1 answer
2k views

Detecting whether colorscheme is available [duplicate]

How can I detect whether a color scheme installed via a vim-plug plug-in is available? For context, I'm trying to automate my Vim setup on a new machine, pulling the vimrc from a git repository. The ...
user avatar
  • 26.2k
2 votes
2 answers
371 views

How do I pass a full filepath to a function in a Vim plug-in?

I have an exe program that checks for certain errors in a text file. I want to create a shortcut (like \+M) to run that exe file against the text file. My exe file's path is C:\Users\xyz\Documents\...
user avatar
3 votes
1 answer
232 views

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

Suppose there is a particular plugin that I wanna tweak part of its functionality (and it is not under active development anymore), I'd like to test the modified version without pushing to my forked ...
user avatar
  • 442
2 votes
1 answer
939 views

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

I am new to Vim plugins and am looking to use the vim-plug plugin manager. The installation instruction advises me to download the .vim file and add it to ~/.vim/autoload. curl -fLo ~/.vim/autoload/...
user avatar
  • 121
1 vote
0 answers
228 views

Vim Plugin Path Issue

I'm trying to get Vim all decked out with some fancy plugins on my work laptop but I am running into some issues. Using echo &rtp I can see that Vim will look in several directories for startup ...
user avatar
4 votes
1 answer
1k views

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

Oftentimes I'll want to put remaps in my .vimrc that use plugin commands. When a plugin happens to not be installed, these remaps will result in errors. A simple workaround would be to put an if-...
user avatar
  • 1,257
2 votes
1 answer
6k views

How to install fzf.vim with Vundle?

I use Vundle to manage my vim plugins. However I just came across fzf, and its installation instructions require that I use vim-plug. How do I make this happen? Wouldn't there be a conflict between ...
user avatar
  • 561
1 vote
1 answer
2k views

vim not loading vim-plug plugins

Vim is not loading vim-plug plugins. When I run vim and do :PlugInstall, it installs the plugins and applies them: This is what happens when I quit vim-plug interface using :q, vim goes back to ...
user avatar
3 votes
1 answer
1k views

Using Vim-Plug with portable version of gvim (windows)

My university does not (quite understandably) provide administrative rights to users on their public machines (which run only MS Windows 7 OS). As a regular vim user, I use a lot of plugins (...
user avatar
3 votes
0 answers
7k views

Can't make vim-plug work [closed]

I'm using Ubuntu 17.04. I've decided to start using Vim, so I needed a plugin manager. I found vim-plug and I really liked it. But I can't make it work. I followed the installation guide: curl -fLo ~/...
user avatar
0 votes
3 answers
2k views

Sourcing Vimplug plugins in a separate file

Installing plugins through vim-plug involves putting the following code inside the vimrc file. call plug#begin('~/.vim/plugged') Plug 'user/repository' call plug#end() I install a lot of plugins, ...
user avatar
1 vote
2 answers
3k views

Neovim: plugins installed but not working

I am using Ubuntu 16.04. I installed Neovim using apt-get. I downloaded the plug.vim script & put it into the autoload folder in ~/.config/nvim. I put the following in my init.vim: call plug#...
user avatar
7 votes
2 answers
6k views

VimPlug unknown function plug#begin in NeoVim

Recently I decided to switch from Vundle to VimPlug, and I noticed that after installing it... putting the plug.vim in my autoload directory ~/.vim/autoload/ and making sure that my vim and neovim ...
user avatar
  • 313
3 votes
1 answer
10k views

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

I'm pretty new to Vim and vim-plug and I can't get the latter to install my plugins. I think I've set everything up—see my files below. But when I start Vim and enter :PlugStatus, it shows a blank ...
user avatar
  • 753
5 votes
2 answers
997 views

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

I'm using vim-plug for managing plugins, primarily for its lazy-loading capabilities. This lets me do: Plug 'Valloric/YouCompleteMe', { 'do': 'python2 ./install.py --clang-completer --gocode-...
user avatar
  • 23.9k
2 votes
1 answer
897 views

Unable to start Vdebug

I am unable to start Vdebug. I am using Vim-Plug to handle my plugins, :PlugStatus on a PHP file gives a status of OK. However, when I press F5, Vdebug is not started. Does anyone has any idea what ...
user avatar
  • 161
9 votes
1 answer
2k views

What does an `autocmd User` do?

I switched to vim-plug recently. In the README, there's this snippet for using YouCompleteMe with vim-plug: " Code to execute when the plugin is loaded on demand Plug 'Valloric/YouCompleteMe', { 'for'...
user avatar
  • 23.9k
1 vote
0 answers
406 views

Conceal not working with tex files and vim-plug

Normally, :syn match Entity "e" conceal and :set conceallevel=3 results in all es being concealed. But, if I use vim-plug, this does not work in a tex-file …
user avatar
  • 3,039
1 vote
1 answer
217 views

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

I am using the merlin plugin for Ocaml and right now I set the runtimepath by hand, as per their installation instructions: call plug#begin('~/.vim/plugins') "other plugins go here... call plug#end(...
user avatar
  • 193
21 votes
3 answers
20k views

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

The only documentation for installing YCM seems to be for Vundle and I'm fairly new to vim-plug and plugins in general so I'm not sure how well it translates to vim-plug.
user avatar
  • 373
4 votes
1 answer
2k views

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

I have my dotfiles synchronized on github which is a current practice. As I use several machines I want to be able to have some part of my configuration not synched on my github repo. To do so I ...
user avatar
  • 46.5k