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
2 answers
45 views

InstaGoogling as plugin

Is there something similar in Vim? https://packagecontrol.io/packages/InstaGoogling Thanks in advance!
user avatar
1 vote
2 answers
258 views

vim plugin to autocomplete blocks in django templates but *not* a generic snippets plugin?

Copying this question over from https://stackoverflow.com/q/42474604/262108I recently started working with django templates and was wondering whether there are any autocompletion plugins for template ...
lonetwin's user avatar
  • 167
2 votes
2 answers
197 views

Parallel vim installations

I take part in some programming projects. I use vim to code for these projects. For each project I need a corresponding .vimrc with appropriate plugins set and customization. I can use custom .vimrc ...
Loom's user avatar
  • 261
3 votes
2 answers
1k views

Selectively enable a subset of vim plugins for specific category of workflows (plugin virtualenv for vim projects)

I use vim for many different categories of projects, typically: Writing code (3 languages, python, Matlab and C) Writing documentation ( .rst, .html) Writing reports (.tex) Readme file (.md) As a ...
Dr Krishnakumar Gopalakrishnan's user avatar
0 votes
3 answers
2k views

Sourcing Vimplug plugins in a separate file

Installing plugins through vim-plug involves putting the following code inside the vimrc file. call plug#begin('~/.vim/plugged') Plug 'user/repository' call plug#end() I install a lot of plugins, ...
user avatar
0 votes
1 answer
2k views

How to install a colorscheme with a plugin manager [duplicate]

I was wondering if someone could assist me in installing a color scheme for VIM? I literally have spent all day yesterday and this morning trying to figure it out. I am using a shell-client (ubuntu) ...
user10918's user avatar
22 votes
6 answers
25k 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"...
SabreWolfy's user avatar
9 votes
3 answers
2k views

Elegant way to support both python and python3 in vim plugin

I recently received a pull request to change my vim plugin to make it support python3. But these changes break the plugin for the vim on my Mac which seems to listen to python. python import sys ...
mipmip's user avatar
  • 191
2 votes
1 answer
196 views

Vim plugin like SublimeREPL

I'm new to Vim editor. I used Sublime Text before using Vim. In Sublime Text, there was a plugin named SublimeREPL, which is optimized for using REPL such as irb, python, and scala. The plugin ...
sohnryang's user avatar
  • 475
2 votes
0 answers
239 views

visincr.vim compatibility with Neovim

In Vim 7.4, I used to effectively deploy the visincr.vim plugin for such a task. However, I have recently moved to neovim and this won't work anymore. The errors produced by :so % fills up the whole ...
Dr Krishnakumar Gopalakrishnan's user avatar
2 votes
1 answer
3k views

How can I install NERDTree without pathogen?

I have only one plugin at the moment (CtrlP) and I don't want to polute my environment with additional stuff that I'll have to depend on. So I tried installing NERDTree directly (cloned from git in ....
pesho hristov's user avatar
4 votes
1 answer
2k views

Vim zebra line coloring?

Is there a plugin or way for me to alternate the background color for each line in vim? E.g. Previously I'd found vim-zebra but this looks really ugly: I'd prefer the whole line to be colored, not ...
theonlygusti's user avatar
  • 2,103
3 votes
2 answers
598 views

How do I list my current vim plugins without opening vim?

For example, if I execute the following command from the terminal: vim -c PluginList this command opens vim and lists my currently installed plugins. How do I execute the above command but ...
Benjamin Frazier's user avatar
4 votes
1 answer
137 views

Who manages the vim-scripts project on Github, and how is it used?

I'm referring to this. Are there package managers that pull scripts from it by name? I ask because I notice that the version of my plugin contained in it is extremely old, and I'm wondering whether I ...
BPS's user avatar
  • 308
4 votes
4 answers
3k 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 ...
ArchNoob's user avatar
  • 247
7 votes
1 answer
196 views

What is the current 'best practice' for persistent preferences for a plugin?

I have a plugin (a unite sub-module) that filters extremely large textfiles down to generate a helpful 'table of contents'. I would like to provide the user with the ability to enable/disable many of ...
jkerian's user avatar
  • 333
1 vote
3 answers
375 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? ...
jsharp's user avatar
  • 171
1 vote
1 answer
544 views

cannot source file when trying to make a vim pluggin with python3

I recently updated my vim to have Python3 support. I was having trouble with it, but I eventually solved the problem that I described here. Now I am trying to make a vim plugin using python3 and I ...
user1314272's user avatar
151 votes
4 answers
51k views

What is the Vim8 package feature and how should I use it?

Vim 8 was released today and the release notes mentions a new "package" feature. What is it and how should I use it? Most importantly, does it replace the good old plugin managers?
statox's user avatar
  • 48.5k
4 votes
2 answers
3k views

Can't get deoplete plugin working in Neovim

I have installed deoplete plugin into my Neovim using dein. I have put let g:deoplete#enable_at_startup = 1 into my init.vim and I can see the autocomplete list when I type in the insert mode - so far ...
Petr Mensik's user avatar
1 vote
0 answers
106 views

Is there any documentation available on the internals of netrw?

I have found fairly clear documentation on the usage and customization of netrw, but a perusal of the plugin source code shows only method-level comments, and does not give a good indication of the ...
merlin2011's user avatar
3 votes
1 answer
781 views

How to load a single plugin when starting vim from the cmdline

The situation: I want to use vader.vim to write some unit tests for a script of mine. However to really test it, it would be best to only have my plugin and vader.vim loaded. I know how that you can ...
hgiesel's user avatar
  • 1,894
6 votes
1 answer
3k views

In what order does Vim read ftplugin files, syntax files, and the .vimrc when the commands (e.g. set syntax=mysyntax, filetype plugin on) are called?

I've had some issues lately reconciling my .vimrc with files in ftplugin and after/ftplugin. In what order are all these things read? For example: when I call in my .vimrc the command plugin filetype ...
Luke Davis's user avatar
  • 1,327
1 vote
0 answers
216 views

Some mappings in my .vim/ftplugin/*.vim change upon entering a window with different filetype, and some don't. What could be the reason for this?

I have special commenting macros for different languages in my ftplugin files, and macros for creating "dividers" (i.e. commented out line of dashes #--------...). I also define a Vimscript filetype ...
Luke Davis's user avatar
  • 1,327
3 votes
1 answer
799 views

Using the same plugin folders for gvim and with vim in cygwin

I have a cygwin shell in my windows computer and it has a Vim installation of its own in it. And, so the plugins I have for Gvim are not available for the Cygwin vim. I tried symlinking the plugins ...
Durga Swaroop's user avatar
1 vote
0 answers
87 views

How do I react to keypress in a neovim python remote plugin? [duplicate]

I'm in neovim command mode and press x on keyboard. What is the best way a python remote plugin can react to this keypress? What to do if the plugin should react to several different keys? Here is ...
Markus's user avatar
  • 11
3 votes
2 answers
581 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....
oliver's user avatar
  • 298
9 votes
2 answers
4k views

In my vimrc how to test if a plugin is installed?

My use case is the following, but I think a general solution, working for as many plugins as possible would be preferable: I use the submodes plugin to create a submode handling windows. In my .vimrc ...
statox's user avatar
  • 48.5k
10 votes
1 answer
859 views

When should I use vim-addon-manager instead of a regular package manager?

On Debian based systems, there is a package named vim-addon-manager. My understanding is that it allows to install some plugins based on a repository of available plugins. To be able to install them, ...
statox's user avatar
  • 48.5k
5 votes
1 answer
5k views

Using vim-addon-manager

I just downloaded and installed vim-addon-manager using sudo apt-get install. I'm not sure what to do next, I entered vim-addon-manager at the bash prompt (Ubuntu 14.04). Here is the output: ~$ vim-...
gracious1's user avatar
  • 283
4 votes
1 answer
426 views

Vim Pandoc & Headers

When using vim-pandoc, I'm having some funny behavior with headers: For instance, if I position the cursor on a word and press v-a-w and then <localleader> - i, I get italics. if I position ...
testname123's user avatar
19 votes
2 answers
8k views

How to conditionally load plugins

I was searching for an answer to this, but haven't found anything yet, so if I missed something obvious, I apologize. I thought it would be a quick google search away, so maybe it's more complicated ...
Hoopes's user avatar
  • 305
3 votes
2 answers
841 views

Vim plugin to help with surrounding things in brackets, quotes etc

First of all I want to say that I know and use delimitmate and surround-vim. And while they work pretty well, there is room for improvement. I'll explain what I mean. Suppose I'm writing the code ...
user1685095's user avatar
  • 1,141
3 votes
1 answer
1k views

Mapping with square bracket

I am looking at some plugin that happens to be configurable through a curious mapping (e.g. unite.vim): More advanced configuration example: > " The prefix key. nnoremap [unite] <...
nobe4's user avatar
  • 15.7k
3 votes
2 answers
413 views

How to declare commands local to a plugin?

Writing a vim plugin, I can use function! s:InternalMethod() endfunction for InternalMethod to be local to the plugin environment. It will not be directly available to users nor overwrite their ...
iago-lito's user avatar
  • 1,102
11 votes
2 answers
3k views

Gundo plugin requires python 2.4 when version 2.7 is installed

I have Python 2.7.9 installed. And now I get the message that the Gundo plugin requires 2.4. Is there a workaround? Here is my vimrc file: set nocompatible " be iMproved, required ...
user3467407's user avatar
11 votes
1 answer
342 views

Experimenting with vim/gvim in "virgin" mode

Sometimes, I would like to try a trick I find in the internet. It is often helpful to try this in vim (gvim if it is a gui trick), in virgin mode, i.e., without loading all my ~/.vimrc stuff. Do you ...
Yossi Gil's user avatar
  • 745
11 votes
2 answers
1k views

How safe is it to use an unknown `_vimrc` or `vimscript` file?

I do not know if this question should be asked here or not. In almost every language, malware exists. Is the same also applicable for vimscript? Suppose vim is running with high system privileges. Is ...
Cylian's user avatar
  • 539
4 votes
1 answer
1k views

neovim: autocompletion on user defined command plugin

I am write a plugin for neovim in python using this client and I looking for a way to offer completion when executing a command. I have look at the following example to structure my plugin. As an ...
kokito's user avatar
  • 201
5 votes
0 answers
62 views

Is there an ideal / idiomatic way to debug running plugins?

I sometimes have plugs stop working — in my case, mostly using async lookups with Unite. When this happens, I would like to see what is happening and look into how to configure around it, or make a ...
New Alexandria's user avatar
4 votes
1 answer
5k views

installing vimtex?

I am trying to install vimtex, and I am not how to do that. What plugin manager should I use? How do I combine it with "vim-surround"? "snipmate"? I went through the readme file, but could not ...
Yossi Gil's user avatar
  • 745
9 votes
3 answers
6k 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 ...
Sauce McBoss's user avatar
0 votes
0 answers
102 views

What is the ideal way of installing a vim plugin? [duplicate]

I wanted to install some plugins in Vim. While reading on this topic, I came across plugin manager. Why do I need it ? Which plugin manager - pathogen and Vundle should I use ? So, I want to ...
Kshitij Saraogi's user avatar
4 votes
2 answers
328 views

Why does Vim load unrelated ftplugins?

When I open a file with .md extension, the filetype is set to markdown, as expected. But the ftplugin for HTML is also loaded as I can see since I have some insert mode mappings in there to auto-...
oarfish's user avatar
  • 1,207
2 votes
0 answers
47 views

How to implement a check-in test for omni completion script?

I've been working in an omni-completion script for Vim that is becoming more and more complex. At this point I'm interested in implementing some kind of check-in regression test for the script. Any ...
Vitor's user avatar
  • 1,702
1 vote
1 answer
1k views

Vim won't open if "execute pathogen#infect()" in .vimrc

I recently found out about vim-pathogen, and installing vim plugins on my Mac and on remote shared Linux machines has been working great. However, I can't get vim-pathogen working on one remote shared ...
Ben Lindsay's user avatar
4 votes
1 answer
2k views

How to load plugins from my vimrc and from another file?

I have my dotfiles synchronized on github which is a current practice. As I use several machines I want to be able to have some part of my configuration not synched on my github repo. To do so I ...
statox's user avatar
  • 48.5k
3 votes
3 answers
2k views

How do I prevent Vim from loading plugins on older configurations?

I have a couple of plugins that don't work correctly on some machines running earlier versions of Vim. Is there a way to supress the Error detected while processing... errors when I start up vim in ...
Shawn Conn's user avatar
14 votes
2 answers
2k views

Is it possible to use a delegate or to pass a function as argument in Vimscript?

I am trying to create a small plugin to learn vimscript, my goal is to create some functions processing a selected text and replacing it with the result. The script contains the following items: Two ...
statox's user avatar
  • 48.5k
7 votes
1 answer
1k views

How can I prevent plugins from overwriting my key mappings?

In my vimrc I have: nnoremap <F4> :SyntasticToggleMode<CR> And this works. But I also have the unicode.vim plugin installed, which overrides this mapping: if !hasmapto('<Plug>(...
Martin Tournoij's user avatar