Questions tagged [plugin-system]

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
1answer
26 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 ...
1
vote
1answer
37 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-...
0
votes
1answer
31 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
17 views

Vim plugin for epub editing

Is there a plugin for epub editing? Vim-EPUB plugin has python2 dependency (at least Debian ships Vim with python3).
0
votes
0answers
24 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, ...
1
vote
3answers
1k views

Call function only when the plugin is loaded

I use Plug as my plugin manager and have this line: Plug 'MyPlugin', { 'for' : 'c'} which means it should only load the plugin MyPlugin when a file of the filetype c is opened. This works fine, but ...
3
votes
1answer
47 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
662 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
38 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 ...
0
votes
3answers
815 views

Sourcing Vimplug plugins in a separate file

I am using the minimalistic Vimplug as the plugin manager for Vim. Installing plugins through Vimplug involves putting the following code inside the vimrc file. call plug#begin('~/.vim/plugged') ...
1
vote
2answers
44 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 ...
4
votes
2answers
93 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 ...
2
votes
1answer
17 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....
105
votes
7answers
159k views

How do I install a plugin in Vim/vi?

How do I install a plugin in Vim? Does it matter: Whether I use vi or Vim? Whether I use gVim? Which version of Vim I'm using? What my OS is?
2
votes
1answer
331 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 ...
3
votes
1answer
93 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 ...
3
votes
4answers
1k views

How to update vim plugins with pathogen package manager?

I'm searching for a way to update all my vim plugins with pathogen. I see this is simple in other package managers like Neobundle or vundle. Please share a way to update all my plugins without having ...
0
votes
1answer
39 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 ...
2
votes
1answer
67 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 ...
16
votes
6answers
12k views

How to see if a plugin is active

How can I determine if a filetype plugin (such as vim-latexsuite) has been installed and activated when I open the appropriate file? Another popular editor would indicate that the relevant "minor mode"...
1
vote
1answer
177 views

Syntax folder under plugin/foo/syntax/foo.vim not automatically applied when filetype change?

I have a plugin under nvim/plugin/foo, but the syntax file nvim/plugin/foo/syntax/foo.vim is not automatically applied when the filetype change, but if I put it under nvim/syntax/foo.vim it works I'...
2
votes
0answers
37 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 ...
4
votes
2answers
33 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-...
1
vote
0answers
41 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 ...
1
vote
2answers
32 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 ...
0
votes
0answers
23 views

Is it possibile to get out of brackets automatically after just one word?

I'm currently using pear-tree as an automatic brackets closing plugin. So when I type, for example: print( I get print(|) The functionality I'm looking for is to get the cursor out of the brackets ...
0
votes
1answer
62 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 ...
0
votes
0answers
234 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....
8
votes
2answers
1k views

How to patch add in Fugitive plugin

This screen I got after running the :Gstatus command Then I moved the cursor to init.vim file and pressed the p key, i.e. run git add –patch for the current file. Now I have this screen As you can ...
2
votes
1answer
186 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 ...
8
votes
2answers
2k views

Summary of functions in current file?

While working in various source files, (C, Ruby, etc.) I find that I'm often hunting around for functions. Is there a way to have an auto-generated HUD that lists the structure of the current file? It ...
6
votes
2answers
153 views

How to identify all the loaded ftplugins for the current file?

I have installed a lot of plugins and each may has its own ftplugin settings. What is the way to find out all ftplugin scripts that have been sourced for the current buffer? Just to summarize the ...
1
vote
1answer
31 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 ...
1
vote
0answers
33 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, ...
4
votes
1answer
501 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
1answer
54 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....
0
votes
1answer
26 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. `$$...
1
vote
1answer
116 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 ...
0
votes
1answer
190 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 ...
1
vote
3answers
235 views

What is resetting my softtabstop?

I have the following line in my vimrc: autocmd Filetype html setlocal tabstop=8 softtabstop=8 shiftwidth=8 expandtab Doesn't count for anything when I open an html file: :set expandtab? sts? ...
1
vote
0answers
84 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 ...
1
vote
1answer
31 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 ...
0
votes
1answer
49 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 ...
0
votes
3answers
786 views

Vim 8 on Windows doesn't see plugins directory

I am using Vim 8.1 on Windows 10 and with a default package manager Vim doesn't see plugins in C:\Program Files (x86)\Vim\vimfiles\pack directory. Did I put in into incorrect place? EDIT: It is the ...
1
vote
1answer
85 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 ...
1
vote
1answer
37 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+=%{...
1
vote
1answer
400 views

How can I right-align end-of-line comments with the Tabular plugin?

I often have code that looks something like this: a = 1 # description 1 longer_name = 2 # description 2 # no_longer_needed = 3 # ignore another_name = 4 # description 4 and would like to right-align ...
2
votes
1answer
761 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 ...
0
votes
2answers
65 views

Unable to detect filetype which is set forcefully inside a custom plugin

I have following line in my vimrc- autocmd BufRead,BufNewFile *.COB,*.PCO set filetype=cobol "force filetype as cobol for .COB and .PCO files And I have put below lines in my custom plugin at the ...
1
vote
0answers
63 views

How to write to a temproary buffer in a plugin

I've started to write my first vim plugin, a simple timer. I want to be able to set a timer for an arbitrary amount of time, and have it notify me once that time has passed. I've got it all working, ...