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
20
votes
2 answers

Vim: do not move window content when opening preview / quickfix

When splitting Vim window horizontally, contents of the "old" window are scrolled so as to preserve relative cursor line position. This happens even for small "helper" buffers, like quickfix or preview window. The text movement caused by this…
rburny
  • 1,559
  • 1
  • 9
  • 28
19
votes
3 answers

What is the reason to parenthesize map names?

Many plugins make their public mapping interface accessible through maps. Users can then use these maps as hooks for their own mappings, e.g. :nmap fu fooPluginUnlinkRootDir. Recently I have come across some plugins which put…
glts
  • 21,808
  • 12
  • 73
  • 94
19
votes
7 answers

How can I get gVim (Windows) to use "home\.vim" for my plugins?

I have a Desktop running Windows 7, and a Macbook Pro running Mountain Lion. I use gVim and MacVim respectively. I like to keep my plugins and settings synced between the machine, so I store them in my Google Drive, and I can always pull them from…
Austin R
  • 775
  • 3
  • 11
  • 22
17
votes
6 answers

YouCompleteMe unavailable: requires Vim compiled with Python (3.6.0+) support

i have vim 8.2.850. I am trying to install YouCompleteMe. But get this error, when trying to open vim: "YouCompleteMe unavailable: requires Vim compiled with Python (3.6.0+) support" How can i fix this? i saw other ppl answer for different versions.…
sadibaba2000
  • 209
  • 1
  • 2
  • 4
17
votes
6 answers

How to get both absolute and relative line numbers in ideavim for IntelliJ?

I am using IntelliJ IDE for my projects and just installed ideamvim plugin. In the .ideavimrc I added this property set rnu with this property I get relative line numbers in my files in intellij which is amazing. But can I ALSO get absolute line…
theprogrammer
  • 1,698
  • 7
  • 28
  • 48
17
votes
7 answers

Vundle for VIM is not working on Ubuntu

I installed Vundle via the instructions given at this blog http://web.archive.org/web/20120731003342/http://www.charlietanksley.net/philtex/sane-vim-plugin-management but when trying to run :BundleInstall I get a VIM error E492: Not an editor…
user883807
16
votes
1 answer

Calling a C++ library function in vimscript

Is there a way to call a C++ shared library function from within a vim plugin written in vimscript? Say there is a hello_world.so that has a function hello_world(). I want to call this function whenever the vim user uses a particular key binding.
Vamsi
  • 365
  • 2
  • 8
16
votes
1 answer

Ignore errors and warnings for a VIM plugin

Suppose I have a VIM plugin that is very useful, but it generates a lot of errors/warnings that I don't care for. How can I ignore all errors from that plugin? I just want to be disturbed by these messages anymore. Is there any setting/function call…
Ionică Bizău
  • 109,027
  • 88
  • 289
  • 474
15
votes
2 answers

Searching with command-T

When I search some file with command-T it often failes to find it because I'm not in the right directory, so I have to change the directory. Is it possible to set that command-T will search first in the directories that are bookmarked in Nerdtree or…
xralf
  • 3,312
  • 45
  • 129
  • 200
15
votes
3 answers

Vim auto-completion on substitutions and searches in the command line

Is it possible to use Ctrl+n style auto-completion when doing searches and substitution commands in vim? What I mean is: say I have a variable named myNumber in my current file. If I enter insert mode and type myNu and then hit Ctrl+n, it will…
3rf
  • 1,154
  • 7
  • 15
15
votes
4 answers

Vim plugin for Netbeans IDE

I have found a couple of Vim plugin for Eclipse, but some computers have performance issues with Eclipse. So, what I want to know if there is any plugin for the Netbeans IDE, which runs smoother on weaker computers. If it matters, I'm interested in…
coredump
  • 3,017
  • 6
  • 35
  • 53
14
votes
2 answers

VsCode VIM - How to open "New Untitled File"

In VsCode VIM (vanilla installation), how would you execute Ctrl + N? When inspecting the keyboard shortcut, it looks like this: I tried the plain way in VIM by running :new, but it opened a new tab within the same editor instead of a whole new…
Kellen Stuart
  • 7,775
  • 7
  • 59
  • 82
13
votes
1 answer

Vim function to switch between splits

I am trying to find a function which will switch back to the original window in a split view for vim. I know about shortcut and I also know about the function :call cursor. But is there a function which can let me switch back to the previous split…
SUB
  • 287
  • 3
  • 14
13
votes
2 answers

Change color settings in you complete me

I installed You Complete Me with the help of Vundle in vim. The first time I used it, the suggested words were completely unreadable. They had a dark purple background and a black font color. Then I saw this post on quora and changed my .vimrc now.…
ZedsWhatSheSaid
  • 467
  • 2
  • 9
  • 23
13
votes
6 answers

switching between tabs in vim with vim-airline

I am using vim-airline plugin which works pretty good however, the only way to switch between tabs is to user :bp or :bn which is shortcuts for :bprevious or :bnext. The problem with this is that if I am on first tab and want to switch to the last…
Om3ga
  • 30,465
  • 43
  • 141
  • 221
1 2
3
82 83