Questions tagged [packages]

Vim's package system

Filter by
Sorted by
Tagged with
1
vote
2answers
229 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 ...
1
vote
1answer
602 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
0answers
77 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 ...
2
votes
1answer
311 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
1answer
400 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 ...
2
votes
3answers
290 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
1answer
251 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....
7
votes
1answer
2k 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 - (...
2
votes
2answers
329 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
0answers
323 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
1answer
63 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 ...
1
vote
1answer
595 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
2answers
355 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&...
0
votes
1answer
963 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'...
1
vote
1answer
2k 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 ...
4
votes
2answers
424 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 ...
7
votes
1answer
688 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
2answers
485 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....