Questions tagged [vim-plugin]

The Vim text editor is extensible through plugins, which can be categorized into general utilities, color schemes, file type-specific settings, and syntax definitions.

If your question is not about programming, consider posting Vim related questions at the dedicated Vim Stack Exchange site.

The Vim editor can be extended through plugins, which are (at least partly) implemented in Vimscript.

Plugins may add a new color scheme, syntax highlighting for a new language, or settings and commands specific to a particular file type. But most plugins offer general add-on functionality that either enhance the use (like the various buffer and file explorers), or integrate with related tools (like revision control systems).

The main repository of Vim plugins is at vim.org. There's a prolific community of plugin authors and a wealth of different plugins. Some plugins are only available on sites like Github or Bitbucket.

1236 questions
9
votes
5 answers

Vim: Is vertical tab list possible?

Is it possible to have vim's tab list presented vertically on the left side of the editor? It'd be really helpful, but I haven't managed find any plugins that can do this yet. (do i suck at google?)
Joernsn
  • 2,319
  • 4
  • 25
  • 33
9
votes
1 answer

Add syntax highlighting to certain file extensions for VIM or GVIM by default

In my Linux machine files with the .sv extension opens up by default with the verilog syntax highlighting scheme, however extension with .vor .vs don't. I have to manually in gvim do a :set syntax=verilog every time I open one of these files. How…
9
votes
2 answers

Vim : youCompleteme plugin opens up a split window with function definition

I just downloaded and stated using the YCM plugin for vim. However I noticed that whenever the auto-complete pops up giving completion suggestions a split window also opens up in my current window. Any suggestions on how I can configure YCM to not…
James Franco
  • 4,516
  • 10
  • 38
  • 80
9
votes
2 answers

How to enable 'gx' in Vim? Mine doesn't work anymore

I have tried wiping my .vimrc, uninstalling all plugins, updating Vim, trying different shells, etc. but I absolutely can't get 'gx' to work over a given URL. I have used it before and it worked fine, it even use to open up my finder directory if I…
tommyc38
  • 703
  • 1
  • 8
  • 21
9
votes
2 answers

Generic :python command in vim?

Within a vim script it is possible to embed some python code, as long as vim is built with the +python feature. function! IcecreamInitialize() python << EOF class StrawberryIcecream: def __call__(self): print('EAT…
chtenb
  • 14,924
  • 14
  • 78
  • 116
9
votes
2 answers

(Vim) Changing indent setting in Python-mode

I've just installed python-mode, and it has lots of cool features like "syntax-checking". I like to have 2-spaces of indentation for my python code but the syntax-checking is warning me that it should be 4 spaces. I believe there should be a…
songyy
  • 4,323
  • 6
  • 41
  • 63
9
votes
1 answer

Disable underscore "_" shortcut inserting "<-" in Vim R plugin

By default, the Vim-R-plugin inserts <- whenever I type or paste an underscore _. This creates problems when I paste stuff like geom_bar, which becomes geom <- bar. Is there a way to turn this short-cut off? I tried looking at the manual (scroll…
user1994702
9
votes
1 answer

Creating a user defined event in Vim

I use a couple of auto commands to do highlighting of extraneous whitespace in my vim setup on InsertLeave and BufReadPost events. I recently started using a plugin to highlight indentation as well…
PseudoPsyche
  • 4,332
  • 5
  • 37
  • 58
9
votes
3 answers

How to execute an external command in Vim script?

I want to execute an external command in Vim script but I don't how can I do this. For example I need to change a file permission using chmod command (Please assume application has enough permission to run the command) Is there any way to achieve…
Afshin Mehrabani
  • 33,262
  • 29
  • 136
  • 201
9
votes
1 answer

Vim plugin - custom auto-complete of params in command-mode

I'm writing my first vim plugin (viml + python). One command that the plugin has is "GetStepCommand()" and it basically fetches data from a remote data source, I massage the data a bit and copies it into the buffer so the user can start editing…
8
votes
3 answers

How do I install vim plugins with vscode vim?

I am slightly new to vim, and I installed the vim vscode plugin so I can use vim-like melodies to manipulate code in vscode. However, I used to have janus installed on my terminal (including NERDTree, NERDCommenter, etc) and I want to install…
oriont
  • 684
  • 2
  • 10
  • 25
8
votes
2 answers

In Vim, how to I set an autocommand to be run after a plugin has loaded?

One of the Vim Plugins I use has a bug, causing it to set :syntax spell notoplevel. The bug is easily mitigated if I run the command :syntax spell toplevel after opening a file. However, I'm lazy and I'd like to put the fix in my init.vim / .vimrc…
andypea
  • 1,343
  • 11
  • 22
8
votes
1 answer

How to limit size of Vim Syntastic location list window

Vim syntastic plugin pops up the errors and warnings location list and it needlessly consumes more screen space than needed for the list: How can I configure syntastic to open a location list window that has only enough lines to show the list?
Shane Voisard
  • 1,145
  • 8
  • 12
8
votes
1 answer

Temporarily disable BufWrite script in vim

I have vim setup to run Autoformat when I write to files but periodically forget to add an extension to my blacklist before making edits to it. Now I can't save the edits since the autoformating messes up the indentation. Is there a way of saving…
8
votes
2 answers

How to run a vim plugin function from vimrc?

A plugin defines a function named HLMarks(): hi Marks term=reverse ctermfg=0 ctermbg=40 guibg=Grey40 function! HLMarks(group) call clearmatches() let index = char2nr('a') while index < char2nr('z') call matchadd( a:group,…
wolfv
  • 971
  • 12
  • 20