Questions tagged [packages]
Vim's package system
25
questions
1
vote
1
answer
35
views
Install plugins to an nvim-only package folder inside ~/.vim?
I want to try out nvim, but I don't want to break my vim configuration. I have my vim config in ~/.vim and I have an %LocalAppData%\nvim\init.lua that sources my vimrc and this block in my vimrc get ...
3
votes
2
answers
4k
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 ...
0
votes
2
answers
98
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 ...
0
votes
1
answer
61
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 ...
0
votes
0
answers
163
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:
...
0
votes
1
answer
434
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&...
0
votes
0
answers
120
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[...
1
vote
2
answers
599
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 ...
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. ...
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 ...
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 ...
2
votes
1
answer
826
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 ...
3
votes
3
answers
540
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
...
3
votes
1
answer
528
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....
11
votes
1
answer
4k
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 - (...
3
votes
2
answers
785
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 ...
3
votes
0
answers
435
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 ...
1
vote
1
answer
174
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 ...
0
votes
1
answer
834
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 ...
-1
votes
2
answers
509
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&...
-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'...
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 ...
5
votes
2
answers
596
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
...
8
votes
1
answer
840
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 ...
3
votes
2
answers
617
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....