We’re rewarding the question askers & reputations are being recalculated! Read more.

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
0
votes
0answers
18 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
0answers
33 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....
2
votes
1answer
55 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 ...
1
vote
1answer
18 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 ...
1
vote
1answer
28 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
31 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, ...
2
votes
1answer
171 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
45 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
52 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
1answer
23 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
49 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
46 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
0answers
68 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
30 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 ...
1
vote
1answer
59 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
26 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
438 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
3answers
492 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
0answers
53 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, ...
0
votes
0answers
39 views

Default Window to be 80 characters wide?

I use vim split window a lot but I would like each default window to have width set at 80 chars. Are there any plugins/hacks that can accomplish this?
0
votes
1answer
38 views

Why does autoload/myplugin.vim get sourced?

I noticed that when functions in plugin/myplugin.vim are named using the autoload convention, function! myplugin#myfunction(), the file autoload/myplugin.vim gets sourced on vim startup, even though ...
1
vote
1answer
87 views

The difference between a plugin script and a sourced script

First, apologies for attempting to ask a complicated question since I would not be able to provide a lot of details, however, one might catch something that I am missing. I have a vim script, that is ...
0
votes
1answer
63 views

What is the configuration equivalent to `gg`?

call feedkeys('gg', 'int') seems to work, but what would be the Vim configuration language equivalent?
3
votes
2answers
349 views

Easiest way to insert LaTeX matrix?

Recently I found myself in a situation that need to type in quite a number of matrices to LaTeX by hand, so I was wondering if there are some tools that can help me to save some keystrokes. The ...
0
votes
1answer
127 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
1answer
297 views

Can't echo messages from inside async functions

CASE 1: Have your autocmd command be setup like this: autocmd User ALELintPost call SayHello() " ALELintPost is async And your SayHello function set up like this function! SayHello() abort ...
0
votes
1answer
125 views

Dein options to only load plugin if dependent program found

I'm trying to set up Dein to load the gen_tags plugin. However, if Universal/Exuberant Ctags or GNU Global aren't found on the path, I get the following error message when trying to start nvim: ...
6
votes
1answer
571 views

Setting syntax in ftplugin

I’m trying to set the syntax of Processing files (*.pde) to java with a ftplugin. .vim/ after/ ftdetect/ pde.vim ftplugin/ processing.vim In after/ftdetect/pde.vim I ...
1
vote
1answer
435 views

Unable to Open NERDTree

I'm new to Vim, and for the paste couple of weeks, I've been using NERDTree with no problems. However, I recently added a few key mappings and am now unable to open NERDTree with the <C-n> ...
4
votes
1answer
154 views

Why vim plugins have a check on &cp

I'm trying to wrap my head around vim plugin development and I see a constant check on a variable to see if the plugin has already been loaded like: if exists('g:loaded_plugin') || &cp finish ...
1
vote
1answer
356 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 ...
0
votes
2answers
55 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 ...
2
votes
1answer
322 views

Call vim command from shell, and suppress output while it operates

I'm setting up a vim environment install script. I'm using vim-plug for plugin management. What I'd like to do is, from the install.sh, run vim and call PlugInstall to trigger plugin download and ...
1
vote
2answers
339 views

Why do plugins check v:version < 700?

I see this guard clause at the top of a lot of plugins, if exists("g:loaded_thisplugin") || v:version < 700 || &cp finish endif let g:loaded_thisplugin = 1 Is there something specific about ...
1
vote
0answers
47 views

how to set a watch in the vim debugger

I use DBGp Remote Debugger Interface for debuggign in vim. which works excellent, but it's missing some things that I would like to have: a watch variable features (most important) auto complete when ...
0
votes
2answers
156 views

Vim stops treating “<Plug>” as a keyword to call functions in insert mode

I have the following configuration in my vimrc file. inoremap <C-A> <Plug>InsertComment And somewhere in my vim folder I defined inoremap <silent> <Plug>InsertComment <...
1
vote
1answer
146 views

Is there a way to lock a buffer from changing?

I have NERDTree open all the time and sometimes I forget I have my cursor in there and I try to switch my main window to another buffer and it switched the NERDTree one, which get super annoying after ...
2
votes
1answer
460 views

Why does `vim-plug` add the .vim file to .vim/autoload and not .vim/plugin?

I am new to Vim plugins and am looking to use the vim-plug plugin manager. The installation instruction advises me to download the .vim file and add it to ~/.vim/autoload. curl -fLo ~/.vim/autoload/...
0
votes
2answers
149 views

Looking for a good Database Visualization Tool [duplicate]

I'm jealous of my co-workers using phpstorm etc to visualize the db schema etc.. I was wondering if there was a solution for that on vim? I googled around and found this https://github.com/vim-scripts/...
0
votes
2answers
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 ...
1
vote
1answer
221 views

How can I use Tabularize to align by spaces, but ignore spaces in end-of-line comments?

Simple question: I might have content formatted like item1 item2 # this is a comment longer_name1 foobarbaz # another comment that I want to see aligned as follows: item1 item2 # this is ...
6
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 ...
0
votes
1answer
2k views

How to add Plugin in .vimrc file? [duplicate]

I am a new user of vim and want to add a plugin SuperTab for autocompletion. I searched for the plugin from vimawesome and it says Place this in your .vimrc: Plugin 'ervandew/supertab' I've created ...
1
vote
1answer
75 views

Any vim-plugin to access system clipboard on as many unix platforms as possible?

There are many question regarding this on SE and various solutions have been provided on how to access system clipboard on various platforms. I ssh to various machines and on some platforms, my ...
7
votes
2answers
847 views

Drawbacks of using Python to develop new code in a VIM plugin

In one of the vim plugins I use, we have been thinking about using python vs vimscript going forward (https://github.com/python-mode/python-mode/issues/813#issuecomment-344754563). I understand that ...
1
vote
1answer
178 views

How can I list the plugins currently *active* when using VIM-Plug?

Oftentimes I'll want to put remaps in my .vimrc that use plugin commands. When a plugin happens to not be installed, these remaps will result in errors. A simple workaround would be to put an if-...
0
votes
0answers
154 views

How to migrate from NeoBundle to Dein?

Shougo is no longer maintaining NeoBundle, but instead has re-written a plugin manager from scratch under the name Dein. The Dein GitHub page says: No Vundle/NeoBundle compatibility Given ...
1
vote
1answer
47 views

Automatically apply patches when updating plugins

I want to be able to automatically apply my personal patches to plugins when they are updated. For example, I would like to apply this patch every time the vim-fugitive plugin is updated. I am using ...
0
votes
3answers
305 views

Show python help() inside vim

I'm new to Vim and would like to know is there a plugin, which allows you to call Python help() function on the word under cursor and shows returned text in the splitter buffer?