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
1answer
4k 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
120 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 ...
8
votes
2answers
2k 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 ...
4
votes
1answer
815 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
217 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
59 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
810 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?
2
votes
1answer
7k views

How an autoload/file.vim is loaded?

I am on WSL trying to understand why my fakeclip.vim doesn't work. I've added let g:fakeclip_platform = s:PLATFORM into ~/.vim/bundle/vim-fakeclip/autoload/fakeclip.vim, but I can't access the ...
6
votes
2answers
304 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 ...
3
votes
2answers
273 views

Which vim plugin should I use if i want to surround specific text with brackets like this?

I just want to transform for(int i = 1; i <= N; i++) if(ord[i] == -1) dfs(i, 0, i); to for(int i = 1; i <= N; i++) { if(ord[i] == -1) dfs(i, 0, i); } as little key I should press as ...
6
votes
1answer
826 views

Plugin help files not found

I am on windows 10 and installed pathogen into home/vimfiles/autoload, and as far as I know all went well. Following the directions here, I installed nerdcommenter. I restarted gvim, tried :help ...
2
votes
1answer
766 views

How to set -complete=customlist behavior?

Case A user defined command to open files recursively in a directory. The command After weeks trying to get this to work, I got to the following code after trying to understand this answer: ...
1
vote
1answer
493 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 ...
-1
votes
1answer
319 views

CSV.vim how to change the column separator?

I am using csv.vim and I would like to change the column separator from semicolon to comma. How can I change the column separator with CSV.vim? Please, create a label plugin-csv, I don't have yet ...
2
votes
1answer
172 views

How to open file in specific window (create or reuse)?

I'm trying to develop a plugin that would show results of SQL queries, by executing them inside tmux split and using mysql pager option to save them to the specific file. What I want now is to either ...
1
vote
0answers
36 views

Can I make the :lnext, :lprev commands continue at TOP/BOTTOM after reaching the end/beginning of the location list? [duplicate]

The Syntastic Plugin populates the location list with syntax error locations. If navigating these with :lnext, after reaching the end of the file, Vim raises the error E553: No more items. Instead, I ...
1
vote
1answer
115 views

Including Utility Libraries in a vim plugin

Is there a pattern for including helper libraries underscore.vim in a Vim Plugin? Ideally I'd like to not ask a user to install additional plugins to use my own Plugin or clobber a user's installed ...
2
votes
0answers
234 views

Comprehesive support for graphviz (linting/autocompletion/snippets)

Vim comes with some support (syntax highlighting) out of the box for the DOT language (graphviz) In addition, I found the plugin: https://github.com/wannesm/wmgraphviz.vim, which provides integrated ...
1
vote
1answer
84 views

Wrapping echo for use in VimL

I'm attempting to add some debugging functionality to a small vim plugin that I am working on. I'd like to wrap echo / echom in a way that allows me to turn off output if I want. I've attempted to do ...
3
votes
1answer
137 views

Text manipulation by calling external binaries or scripts

I want to automate certain text manipulation (essentially writing a plugin), but for easiness, I wish to minimize the use of Vim script whenever possible. This is because, indeed it is much harder to ...
3
votes
1answer
1k views

Using Vim-Plug with portable version of gvim (windows)

My university does not (quite understandably) provide administrative rights to users on their public machines (which run only MS Windows 7 OS). As a regular vim user, I use a lot of plugins (...
2
votes
1answer
876 views

Is there Vim plugin that can show keystroke maps or abbreviations for command after it is used?

Is there a tool or plugin for a learner which can display the keyboard shortcuts or abbreviated versions for commands after they are typed in? If for instance I use : to get the command line and ...
-1
votes
1answer
1k views

How to properly initialize plugins with new vim 8 packages feature?

I'm using denite plugin and I have some intialization for it. call denite#custom#source( \ 'file_rec', 'matchers', ['matcher_fuzzy', 'matcher_project_files']) call denite#custom#var('file_rec/git'...
0
votes
1answer
273 views

Why are ftplugins ignored?

I'm trying to understand why my ftplugin isn't loaded. To get at least some understanding what's going on, I've tried strace -e file gvim test.cpp |& grep ftplugin But this gave me empty output, ...
1
vote
1answer
602 views

Setting up an opt-in system-wide vim config

I'm working on a Python 3.6 project (with several friends that are new to Unix) using vim on a debian-based system I own. I'm wondering if there's a way I can setup a system-wide vim configuration ...
0
votes
1answer
47 views

Read, compose and send zimbra emails from vim

I live most of my working hours inside vim. My institution uses an email client server provided by zimbra. The email domain starts with zimbra***inst.fr. Is there a way to read, compose and send ...
0
votes
2answers
42 views

InstaGoogling as plugin

Is there something similar in Vim? https://packagecontrol.io/packages/InstaGoogling Thanks in advance!
1
vote
2answers
227 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 ...
2
votes
2answers
163 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 ...
3
votes
2answers
903 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 ...
0
votes
3answers
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, ...
0
votes
1answer
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) ...
17
votes
6answers
20k 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"...
9
votes
3answers
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 ...
2
votes
1answer
176 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 ...
1
vote
0answers
197 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 ...
2
votes
1answer
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 ....
3
votes
1answer
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 ...
3
votes
2answers
504 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 ...
4
votes
1answer
133 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 ...
4
votes
4answers
2k 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 ...
7
votes
1answer
182 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 ...
1
vote
3answers
312 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
1answer
512 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 ...
136
votes
4answers
45k 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?
3
votes
2answers
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 ...
1
vote
0answers
94 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 ...
3
votes
1answer
751 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 ...
3
votes
1answer
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 ...
1
vote
0answers
204 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 ...