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
2 votes
2 answers
98 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 ...
Zack63's user avatar
  • 21
1 vote
1 answer
19 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 /...
sebelk's user avatar
  • 305
1 vote
1 answer
34 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 ...
Soap's user avatar
  • 151
2 votes
1 answer
2k 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/...
A.K.M. Adib's user avatar
1 vote
2 answers
508 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
1 vote
1 answer
359 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 ...
Shadow43375's user avatar
2 votes
1 answer
507 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 ...
FilBot3's user avatar
  • 153
0 votes
1 answer
593 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, ...
theairbend3r's user avatar
1 vote
1 answer
104 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") ...
hugomg's user avatar
  • 203
2 votes
2 answers
563 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>:...
Tony's user avatar
  • 123
1 vote
1 answer
83 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 ...
algae's user avatar
  • 121
8 votes
2 answers
3k 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 ...
Pablo's user avatar
  • 211
4 votes
1 answer
2k 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 ...
Bobby Wan-Kenobi's user avatar
7 votes
1 answer
760 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 ...
PiCTo's user avatar
  • 359
0 votes
0 answers
106 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 ...
Yves's user avatar
  • 943
3 votes
1 answer
1k 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
  • 27.7k
0 votes
1 answer
121 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 ...
Peeyush Kushwaha's user avatar
0 votes
0 answers
1k 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, ...
Yves's user avatar
  • 943
3 votes
1 answer
653 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-...
Erotemic's user avatar
  • 131
5 votes
1 answer
788 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....
ZMJ's user avatar
  • 263
1 vote
2 answers
2k 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 ...
user1880405's user avatar
1 vote
1 answer
896 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 ...
Marcus's user avatar
  • 135
2 votes
1 answer
413 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....
electriclady's user avatar
4 votes
2 answers
710 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 ...
Tuyen Pham's user avatar
  • 1,226
1 vote
2 answers
726 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 ...
GreatGaja's user avatar
4 votes
1 answer
3k 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 ...
Iresh Dissanayaka's user avatar
5 votes
1 answer
258 views

Why are inclusion guards used in vim plugins?

I see the following common pattern in the beginning of vim plugins (where NAME is a placeholder for some plugin identifier): if exists("g:loaded_NAME") finish endif let g:loaded_NAME = 1 For ...
dannyadam's user avatar
  • 472
2 votes
1 answer
587 views

Installing NeoBundle packages with Plug

I have a plugin that only has install instructions for NeoBundle. I primarily use Plug, however. I tried copying the GitHub path from the NeoBundle instructions to a Plug command considering the two ...
amyiris's user avatar
  • 23
2 votes
0 answers
165 views

How to profile save time

Sometimes it takes a really long time to save a file out. Saving the same file after various changes takes various amounts of time. It does not seem to be related to file size. I've disabled any ...
embedded.kyle's user avatar
4 votes
2 answers
91 views

What does <SID>some_function() . '_' mean? in particular, . '_' part

While I was studying Tpope's vim-commentary, I was struck by a line that contains the topic of this question. I am referring to one of the lines in Tpope's vim-commentary: https://github.com/tpope/vim-...
Alby's user avatar
  • 143
1 vote
0 answers
82 views

Hierarchical auto-populated menu

I'm aware of vim menu and plugins such as vim-venu and quickmenu, but they need to be manually configured. Is there a way to populate vim menus with all commands available organized in a ...
fortea's user avatar
  • 111
0 votes
1 answer
65 views

Can you recognise this debugging system? How can I switch it off?

New to vim, and learning python. After I run code I get debugging comments like you can see in this screenshot on the left (S> and >>): When I move to a line marked S> I can see below in my status ...
idankor's user avatar
  • 145
2 votes
2 answers
4k views

VIM How to enable .ts .tsx .js (for front-end) code highlight?

I have .vimrc plugins " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' Plugin 'nanotech/jellybeans.vim' " ...
Oleg Ovcharenko's user avatar
0 votes
0 answers
1k views

Setting up fzf and integrating it with vim

I am trying to setup fzf and use it with vim, tried to follow the instructions in the git repo but could not get things to work. I was successfully able to install fzf and use the :FZF command in vim....
Kareem Aboughazala's user avatar
2 votes
1 answer
581 views

Plugins working in vi but not gvim

I am using a Windows 10, 64 bit machine, with gvim 8.1.1 installed (See screenshots below). I am using Vi version 8.1 which was installed as part of my git bash - version 4.4.23. I have never ...
Chaitanya's user avatar
  • 121
1 vote
2 answers
54 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 ...
Dr Krishnakumar Gopalakrishnan's user avatar
1 vote
1 answer
52 views

Find the location of a directory at runtime to provide a default directory

I want to move some scripts that I have made to some sort of standalone plugin. The content would look like myplug/ plugin/ mydefaultdir/ For the scripts, I require a set of files which could ...
clem steredenn's user avatar
1 vote
0 answers
50 views

matchparen made a wrong match on angle brackets

I used the MatchParen to match the parenthesis while coding C++ projects. Here is my config in .vimrc: hi MatchParen cterm=underline ctermbg=NONE ctermfg=DarkCyan set matchpairs+=<:> However, ...
Yves's user avatar
  • 943
9 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
  • 201
2 votes
1 answer
138 views

How can I hide *.extension~ files by using auto hide plugin?

I have successfully hidden undo files by using this auto hide plugin, but I could not hide any *.extension~ files. suppose I created a.txt Now there are two files shown in windows explorer a.txt a....
Aman's user avatar
  • 125
0 votes
1 answer
124 views

Best way to avoid clobbering other vim plugins with global commands

I'm developing a vim plugin. There will be some global-level functionality that's not specific to a particular filetype. Is there some kind of registry of commands being used by vim packages? How ...
intuited's user avatar
  • 319
0 votes
1 answer
50 views

Vim Jedi Plugin -- Add .sage filetype

,g$$$$$$$$$$$$$$$P. OS: Debian 9.9 stretch ,g$$P"" """Y$$.". Kernel: x86_64 Linux 4.19.0-0.bpo.4-amd64 ,$$P' `$$$. Uptime: 3h 17m ',$$P ,ggs. `$$...
Smilia's user avatar
  • 115
3 votes
2 answers
619 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
  • 27.7k
3 votes
1 answer
2k views

How to access any given vim plugin documentation?

I am new to vim and I've been asking a bunch of questions on here, most of which has to do with plugins. What is the correct way to access the documentation for plugin? As an example, I am using the ...
mle0312's user avatar
  • 321
1 vote
0 answers
194 views

How can I Install vim plugin offline? [duplicate]

I am currently using gvim. I want to know is it possible to install a vim plugin offline? I have the project files already downloaded from github, and I want to put them in the right locations for ...
Pie's user avatar
  • 175
1 vote
1 answer
33 views

How to clear multi lines in command zone

I'm working with vim + some plugins to code c++. Sometimes, because of some bug or some executing sequence issue, the command zone will show me two or three lines as below: As you can see, I got two ...
Yves's user avatar
  • 943
0 votes
1 answer
606 views

Turning off global plugin for a filetype

I have a plugin/smartcom.vim that I don't want to load for a filetype I have called cheat (for cheatsheets). The smartcom plugin has tab completion that I don't need for my cheat files. I tried ...
StevieD's user avatar
  • 1,377
1 vote
1 answer
227 views

Vim 6.4 broke after adding plugin file to runtimepath

I am working on a group server and using Vim 6.4 there. And because admin there doesn't let us install new software or having any plugin-manager, I have to manually add those plugin files to ...
Nguyễn Văn Tiến's user avatar
2 votes
1 answer
105 views

How to use plugin provided value in statusline?

Some vim plugins provides functions especially designed to be used for statusline rendering. For example, in my .vimrc I create the status line format string like this: ... set statusline+=%{...
lesnik's user avatar
  • 399
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 ...
filbranden's user avatar
  • 27.7k