Questions tagged [packages]

Vim's package system

Filter by
Sorted by
Tagged with
2 votes
2 answers
386 views

lazy.nvim: Upgrade plugins from command line

I have a script that updates my system. It updates system packages, remove orphaned packages, update R packages, update software pip-installed in python virtual environments. I would like to use this ...
robertspierre's user avatar
0 votes
2 answers
69 views

Vim package management

I have not kept up with vim in the last decade. I have had my setup and it worked well enough that I have not bothered touching my configuration in forever. BUT. I have the need to get back into some ...
Martin York's user avatar
  • 6,572
0 votes
1 answer
44 views

Having trouble understanding part of `'runtimepath'` documentation

I get the basics of the runtimepath as explained in :h 'runtimepath'. Except for the remark at the end for Neovim (nearly identical in Vim): You can put a directory before $VIMRUNTIME to find ...
Jordan Mandel's user avatar
0 votes
0 answers
150 views

Why doesn't `packadd` work with packer?

Say you have a bunch of packages installed with packer. I inspected the file structure and it seems to me they are in the format of native Vim packages. Great news! That means we should be able to: ...
Dominik Teiml's user avatar
0 votes
1 answer
389 views

how to deduplicate packpath / runtimepath?

Problem: I noticed that my "&packpath" has some duplicates, I want to remove them. What I have tried: My viml knowledge is not very strong but I did manage to create a unique "List&...
5c0tt's user avatar
  • 23
0 votes
0 answers
112 views

Trouble after NERDTree installation using vim8's package manager instead other plugin

I got this strange NERDTree error. The vim distro I am using that fall into this problem install vim using vim8's package manager. Error detected while processing function <SNR>42_onNERDTreeInit[...
sensorario's user avatar
1 vote
2 answers
577 views

How to autoload multiple rc-style files in Vim 8+

I want to split up my .vimrc into multiple files by language or toolchain, use case, etc. In fact, my end goal is to be able to provide instructions to students in the format of "If you want the ...
coolaj86's user avatar
  • 135
3 votes
1 answer
1k views

dein package manager not installing plugins

I'm very confused by the documentation in dein. It says: dein#add({repo}[, {options}]) Initialize a plugin. {repo} is the repository URI or local repository directory path. ...
StevieD's user avatar
  • 1,492
0 votes
0 answers
114 views

vim 8 packages on linux

I'm running Vim 8 on Linux and I would like to use packages, but I have a few questions. Between the following directories, where do I create the ~/.vim/pack directory? system vimrc user vimrc 2nd ...
M.R.P.'s user avatar
  • 1
3 votes
1 answer
2k 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 ...
filbranden's user avatar
  • 28.8k
2 votes
1 answer
794 views

Why packadd from ftplugin does not work the same way as from vimrc [duplicate]

I am trying to load plugins based on file type. I have the following in ftplugin/python.vim: packadd SimpylFold When a python file is opened, not folding is done. If I issue the same command from ...
Konstantin Glukhov's user avatar
2 votes
3 answers
502 views

Guard packadd to not load an optional non-existent package

I have an "optional" plugin that depends on python (pack/habamax/opt/myplugin) in my settings I have the following: if has('python') || has('python3') do some setup packadd myplugin endif ...
Maxim Kim's user avatar
  • 13.4k
3 votes
1 answer
505 views

Vim 8.1 on Windows 10 Won't Detect Packages in $HOME

Take a plugin like Flake8. It instructs users to install using Vim 8's package manager by: mkdir -p ~/.vim/pack/flake8/start/ cd ~/.vim/pack/flake8/start/ git clone https://github.com/nvie/vim-flake8....
EchoLynx's user avatar
  • 133
11 votes
1 answer
3k views

how to load vim8 optional packages in vimrc?

I am trying to load my optional language packages based on filetype. I am using vim8 native package feature. In vim I can load them with :packadd vim-javascript. However, I read in :help packadd - (...
The Fool's user avatar
  • 221
3 votes
2 answers
747 views

Why are helptags not shipped with plugins?

Part of the job performed by virtually all plugin managers in Vim is to create helptags, which will index the help files shipped with the plugins and will allow searching for commands and mappings ...
filbranden's user avatar
  • 28.8k
3 votes
0 answers
431 views

How to load vim-javascript using Vim 8 native package manager?

I am long time Vim (Windows 10, gVim 8.1) user, happy as a clam with Vim 7. I have not used any of the plugin managers, just the one-off plugin from vim.org. I went looking for plugins to help with ...
partlycloudy's user avatar
1 vote
1 answer
156 views

How do I get help for a specific package?

I am at a phase of cleaning up my choice of plugins and I want to read the documentation provided by a package through vim it self. With that in mind, I don't know a way to: get to the top of the ...
Guilherme Marthe's user avatar
0 votes
1 answer
805 views

How to load a "local" plugin with Minpac properly?

After moving from Vim-plug to Minpac, the only missing functionality has been to be able to load local paths. Actually I managed to make it work (details below), but I've got the feeling that there ...
lsrdg's user avatar
  • 450
-1 votes
2 answers
498 views

Shortcut for automatic execution

I've found the following command to execute Python or Matlab or any other language as far as I understand to execute code nnoremap <buffer> <F9> :exec '!python' shellescape(@%, 1)<cr&...
user10853's user avatar
  • 119
-1 votes
1 answer
2k views

How to properly initialize plugins with new vim 8 packages feature?

I'm using denite plugin and I have some intialization for it. call denite#custom#source( \ 'file_rec', 'matchers', ['matcher_fuzzy', 'matcher_project_files']) call denite#custom#var('file_rec/git'...
user1685095's user avatar
  • 1,141
3 votes
1 answer
3k views

Can I make Vim add `pack/*/start/*` directories to `runtimepath` without restarting?

Let's say that I've got a package set up like this: ~/.vim/pack/bundle/start/ vim-unimpaired/ vim-surround/ When Vim starts up, it automatically ...
nelstrom's user avatar
  • 289
5 votes
2 answers
579 views

Can I have multiple `pack` directories?

I'm trying to understand how the packages feature in Vim 8 works. The documentation suggests doing the following: % mkdir -p ~/.vim/pack/foo % cd ~/.vim/pack/foo % unzip /tmp/foopack.zip ...
nelstrom's user avatar
  • 289
8 votes
1 answer
829 views

Vim 8 packages, how do I overwrite a default package?

I have installed Dr. Chip's netrw from his homepage, since it is newer and more often updated than the files that are part of the main Vim distribution. Before Vim 8 I always sued the Vimball install ...
grochmal's user avatar
  • 1,656
3 votes
2 answers
612 views

How can I run a ft-plugin with the new built-in package manager in Vim?

I'm testing the new built-in package manager. From :h packages: When Vim starts up, after processing your .vimrc, it scans all directories in 'packpath' for plugins under the "pack/*/start" directory....
oliver's user avatar
  • 318