Questions tagged [plugin-system]

For questions about Vim's plugin system. NOT for questions about a specific plugin (use the appropriate plugin-* tag) or questions that may require a plugin.

Filter by
Sorted by
Tagged with
0
votes
2answers
43 views

project-based config: how to load plugins/colors from custom subdir of $PWD when doing `vim -u local/vimrc ...`?

The Need, the Goal... By "project-based config" I mean a project contained in a git repo that contains all the vim configuration -- vimrc and plugins and colorschemes -- right there in the ...
0
votes
1answer
57 views

Should the filetypedetect augroup be used in plugins?

I'm writing my first Vim/Neovim plugin, which improves support for files managed by yadm. Pretty straightforward. However, while reading other plugins for inspiration, I have noticed that plugin ...
0
votes
2answers
61 views

cryptic error since Big Sur upgrade, :PlugInstall doesn't work, and none of my plugins work

Error: Error detected while processing BufWinEnter Autocommands for "*"..function <SNR>3_LocalVimRC[322]..BufWinEnter Autocommands for "*"..function <SNR>3_LocalVimRC: ...
0
votes
0answers
19 views

Creating vimrc kills my plugin

I have the following ~/.vim/filetype.vim: augroup filetypedetect au BufRead,BufNewFile *?Script.sml let maplocalleader = "h" | source /home/gergely/HOL/tools/vim/hol.vim " recognise ...
1
vote
2answers
59 views

Open buffer without loading ftplugins

I have huge file and quite slow plugin (loaded by vim-plug) for corresponding filetype. I want following: Plugin is loaded by default Option to fast open this file without loading plugin. Something ...
0
votes
0answers
29 views

Measurement/ tracking the time for editing a file (overall and statistics)

I use vim for coding and also for writing scientific articles and book chapters. It would be very interesting to know the time I spent on a file. For example how many hours or minutes the buffer was ...
0
votes
1answer
40 views

Global plugins source only once? [closed]

So here is a little experiment: with a clean config (i.e., no previous ~/.vimrc or ~/.vim/), do: $ mkdir -p ~/.vim/plugin/ $ vim ~/.vim/plugin/foo.vim And in that file, enter the following, save &...
2
votes
0answers
37 views

Highlight groups stop working after sourcing vimrc

I'm working on a todo plugin for Neovim, using the remote plugin API. I set highlight groups and matching patterns in my script, and then register it with call remote#host#RegisterPlugin. When Neovim ...
0
votes
0answers
53 views

How to entirely disable Jedi completion

I am using Jedi for its Doc-lookup functionality, and only for that: # Jedi-vim: use *K* to get python library keyword definition: https://github.com/davidhalter/jedi-vim Plug 'davidhalter/jedi-vim' ...
0
votes
1answer
114 views

Bset language to write a vim plugin? [closed]

Currently we can use many different languages to write a (neo)vim plugin. I heard that the vim language is actually pretty slow which was surprising me. I don't have the links of the websites anymore ...
-1
votes
1answer
68 views

Vim-Plug uses wrong directory for plugins

I decided to switch from vim to neovim on a new system. I downloaded nvim, copied my .vimrc to ~/.config/nvim/init.vim and installed vim-plug to ~/.config/nvim/autoload/. At the start of my init.vim I ...
-1
votes
2answers
300 views

How does one install a VIM plugin without a plugin manager?

I am new to vim, I watched this video and wish to give it a good try for a month to see how I like it. I want to add the NERDTree plugin to my vim, I'm actually using NeoVIM: NVIM v0.4.4 Build type: ...
0
votes
1answer
22 views

cannot save raw plug.vim file [closed]

MacOS, I am trying to save plug.vim file by: navigate to https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim Using save file as option to save plug.vim to this location /usr/share/vim/...
0
votes
1answer
49 views

modules installed again and again

Here is a part of my ftplugin/fortran_state.vim " Check python modules and install{{{1 if !executable('fprettify') || !executable('fortls') || !executable('unidecode') :let choice =confirm(&...
-1
votes
1answer
392 views

Adding Additional Syntax Highlight to nvim; cannot get .config/nvim/after/syntax to load .vim file

I'm trying to add additional syntax highlighting to a plugin I'm using for syntax highlighting. I've tried adding the additional syntax file fstrings.vim to the ~/.config/nvim/after/syntax folder but ...
2
votes
2answers
79 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 ...
1
vote
1answer
103 views

Load plugins in vim started with --noplugin

I have my $EDITOR set to vim --noplugin -n -i NONE +star, which is what I usually want when committing with git etc. However, sometimes I decide I need those plugins (the builtin ~/.vim/pack kind, ...
-1
votes
2answers
171 views

annoying red blocks in neovim

im using Neovim from my WSL terminal. I've been exploring the multiple plugins of this amazing open source project and this made me change my init.vim, a lot. Now i've messed it up and i don know how ...
1
vote
1answer
293 views

In Windows, plugins are not loading when gVim is started from a file

My gVim works perfectly when I open Vim\vim82\gvim.exe. However, when I right click a file and select open with > gVim the plugins do not load, while other settings in my _vimrc are applied like ...
0
votes
1answer
26 views

Override a plugin to restore movement key?

I'm using the pencil plugin which remaps the jk movement buttons to go up/down by row (text is soft wrapped) rather than line, which is usually helpful. But at times I want to have the normal behavior ...
0
votes
1answer
193 views

Manually disable scripts(/plugins) during a session?

Sorry if this is a noob question(I'm new to configuring vim) but I was wondering if it is possible to disable startup scripts manually during a Vim session. I am aware of the :scriptnames command ...
0
votes
0answers
25 views

How do plugins work when providing several custom keys in a plugin-specific window?

I'm referring to plugins like gundo and nerdtree, which offer a whole lot of key bindings only when the cursor is their window. Therefore, I was wandering if there's a common or preferred way to ...
0
votes
1answer
236 views

how i set floatterm plugin in neovim , that shortcut F5 compile javascript and how i do for other languages?

i plugged float-term plugin , that open terminal window in neovim. when i compile javascript with node in float term i did like :FloatermNew node % then it compiles fine and show me the output in ...
0
votes
1answer
44 views

Adding python directory

After following some advice my vimrc contains: set rnu set nu set autoindent set pythonthreedll=C:\Program Files (x86)\Vim\vim82\autoload\python37.dll set pythonthreehome=C:\Program Files (x86)\Vim\...
2
votes
2answers
44 views

vim-fetch install

I downloaded vim-fetch, but the install instructions are not clear to me: Download and source the most current vimball from the releases list, then run :helptags {dir} on your runtimepath/doc ...
1
vote
1answer
13 views

What does mean pi_ prefix?

I've found that some plugins have the prefix "pi_", for example: /usr/share/nvim/runtime/doc/pi_spec.txt /usr/share/nvim/runtime/doc/pi_tar.txt /usr/share/nvim/runtime/doc/pi_msgpack.txt /...
1
vote
1answer
26 views

Removed Plugin still has active keybindings from view/ files

I installed the plugin vimtex. Then I installed the plugin tex-vim (aka Latex suite). The compilation keybinding (<Leader>ll) from vimtex stopped working, since tex-vim takes over it. So I ...
2
votes
1answer
773 views

Vim plugin installation saying that I have to check my access rights

I'm using a plugin manager Vim Plug and I'm trying to install YouCompleteMe but I keep on getting this error and I don't know what to do with this. I use VIm8 x YouCompleteMe: Cloning into '/home/...
1
vote
2answers
270 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
129 views

Color themes listed as available in Vim not changing upon :colo [themename] command

I am trying to install themes using V8+ Vim (8.2) on a Windows 10 OS. I first tried following the standard instructions listed on the Dracula theme site here. Unfortunately, the naming conventions for ...
1
vote
1answer
211 views

Update a Vim Session file's loaded plugins without losing window positioning

I have a Vim Session file I created by doing: :mksession Then I quit Vim. I then downloaded a plugin to: ${HOME}/.vim/pack/vendor/start/vim-markdown-folding and then I fired up Vim with the session ...
0
votes
1answer
246 views

Organize plugins and .vimrc settings for different filetypes using ftplugins?

I'm new to vim (8.2) and have been learning how to set it up on my computer (Ubuntu 18) for the past few days. I'd like to configure VIM so that when I open code in different programming languages, ...
1
vote
1answer
36 views

Why do plugins have to check if they are already loaded?

I noticed that most of the plugins I use have a line at the start that checks if the plugin has already been loaded. It often looks similar to this: if exists("g:loaded_commentary") ...
2
votes
2answers
253 views

How to provide shared variables for plugins?

I've written some Vimscript code* in which it's convenient to have a set of shared color names. To use the names, so far I've had to rely on code like this: execute 'source ' . expand('<sfile>:...
1
vote
1answer
54 views

Starting vimtex plugin from within a vim session

I use Vimtex to edit LaTeX documents in Vim. If I open an existing .tex file, the Vimtex plugin will be initiated automatically. However, if I create a new .tex file, there's no way to initiate the ...
3
votes
2answers
1k views

vim hangs when I open a typescript file

I have a vim 8.2 on a Gentoo Linux running on a more or less 8 years old PC. I almost never have a performance issue with vim, unless you open a one-line huge xml oder json file, but those are vary ...
2
votes
1answer
1k views

Neovim Lua integration

I'm trying to understand how can I use Lua to extend Neovim, following a baby steps approach. Something like: -- ~/.config/nvim/lua/test.lua local api = vim.api local firstmodule = {} function ...
5
votes
1answer
310 views

How to customize colorschemes without editing their source files?

Similarly to plug-ins, color schemes are commonly distributed as clone-able Git repositories, which make it less desirable to directly edit their source files (as sometimes suggested) when wanting to ...
0
votes
0answers
43 views

Is it possible to make some animation in vim

This issue may be a kind of nonsense but I still want to know if it is possible to make some dynamic stuff in vim 7 or vim 8. For example, load a file and make if move from left to right (just like ...
2
votes
1answer
379 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 ...
0
votes
1answer
59 views

Is it possible to have a "quick edit" (inline-editing of another file, nested buffers) feature through plugins?

I wanted to know if it's possible through plugin mechanism to insert another "pane" in the middle of the buffer I'm editing. The ultimate feature that I want is inlining piece code which exists in ...
0
votes
0answers
804 views

vim 8: C++ syntax highlighting has some minor fault

I'm using vim 8 to code C++11. I've installed the vim plugins: YCM, ALE, vim-code-dark and vim-cpp-enhanced-highlight, however, it seems that there is some error on syntax highlighting. As you see, ...
3
votes
1answer
266 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-...
5
votes
1answer
553 views

Can I set breakpoint in a vim plugin script written in python?

When a vim plugin is developed in a mixed script of vim script and python, can we set breakpoints and debug the python script. I tried to use PDB module, but vim is dead when it go to the pdb....
2
votes
2answers
1k views

Auto back-indent word 'else' in if/else statement in Vim

There is this feature or module in Vim which auto back-indents words during writing if/else statements. For example: if a == 1: xx <-- here when I press enter cursor goes right below end of ...
1
vote
1answer
433 views

Error detected while processing grammarous.vim: E117: Unknown function

I am trying to install the vim-grammarous plugin for Vim 8.0.1453. I have cloned the repo into my .vim/plugin directory. Now every time I open Vim I get an error message which also occurs when I try ...
2
votes
1answer
201 views

How do I download Vim-Plug?

I'm trying to download Vim-Plug from here: https://github.com/junegunn/vim-plug/wiki/tutorial It says that I should "download a single VimScript file" and links to this https://raw.githubusercontent....
4
votes
2answers
366 views

Howto enable only one plugin to test?

I need to test a vim plugin. The problem: I already have my vim setup in current env, so ~/.vimrc is occupied. I want to issue a command like vim -u <blah..blah> that maybe specifies the plugin ...
1
vote
2answers
393 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 ...
3
votes
1answer
2k views

Multiple plugin managers [duplicate]

I found out that a plugin I really like doesn't support the plugin manager I like, So the question is, can I use multiple plugin managers at the same time with vim? If so, I think I can use another ...