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
37
votes
3 answers

vim-airline: what is "! trailing[1]"

At the right of my vim-airline display, I have ! trailing[1]. I'm assuming this means trailing whitespace of some sort, but how do I read what vim-airline is telling me and what am I supposed to do?
Eric Francis
  • 23,039
  • 31
  • 88
  • 122
37
votes
3 answers

Please explain Vim's configuration directories hierarchy

I am trying to update my Vim configuration scripts. There are a number of sub-directories in my ~/.vim directory and I'm not sure the specifics of what they do, nor why there are some that seem to be redundant. Here is what my ~/.vim directory tree…
jlconlin
  • 14,206
  • 22
  • 72
  • 105
36
votes
1 answer

vim scripting, if vim version is < 7.3

I was looking around for it for quite a while. I want to add a line to a vim plugin file that would disable it if running on unsupported version of vim. I remember from somewhere that it goes something like that: if version > 730 "plugin code…
GoTTimw
  • 2,330
  • 6
  • 26
  • 34
33
votes
4 answers

Vim Error E492 - Not an editor command: PluginInstall

I am trying to install Vundle on my Macvim. I followed the following link to get Vundle. I also configured my .vimrc file. But when I try PluginInstall, I get the following error. E492: Not an editor command: PluginInstall My .vimrc contains the…
SyncMaster
  • 9,754
  • 34
  • 94
  • 137
32
votes
2 answers

vim-surround not working for me. s key deletes instead of surrounds

Just installed the surround plugin. New buffer, type Hello World. Say I want to surround that with quotes. In normal mode, V to get into visual mode, s to get into surround Except it doesn't, s deletes the entire line.
Bob
  • 3,283
  • 3
  • 20
  • 14
31
votes
3 answers

Refactoring C/C++ in Vim (e.g. method extraction like in Eclipse)

Are there any plugins or built-in methods in Vim for performing refactoring on C or C++ code, something like the refactoring tools in Eclipse? I'm especially keen on the extract method refactoring tool from Eclipse that will determine parameters…
Bjarke Freund-Hansen
  • 28,728
  • 25
  • 92
  • 135
30
votes
5 answers

How can I make VIM play typewriter sound when I write a letter?

After a lot of writing in Q10 on Windows, I got used to the typewriter sound it makes every time you press a key. At least for me it feels great to have this sort of sound feedback. On Linux on the other hand, I love writing it VIM, because of it's…
Jakub Arnold
  • 85,596
  • 89
  • 230
  • 327
29
votes
3 answers

Working solution for FZF most recent files in Vim?

I have a problem with finding a proper solution for most recently used files with the FZF Vim plugin. This plugin should have features like: show files opened in current vim session(like buffers) filter files like NERD_tree, fugitive I tried two…
tomekfranek
  • 6,852
  • 8
  • 45
  • 80
28
votes
3 answers

VimL: Checking if function exists

right now I'm cleaning up my .vimrc file to make sure it's compatible on most systems. In my statusline I use a function that another plugin sets, the GitBranchInfoString() function introduced by this plugin. What I wanna do is check if this…
greduan
  • 4,770
  • 6
  • 45
  • 73
28
votes
3 answers

How can I do quick searching in NERDTree?

Is it possible to do searching in NERDTree window by the filenames and file content?
yurko
  • 623
  • 1
  • 7
  • 21
26
votes
4 answers

Vim CtrlP Plugin: Manually set root search directory?

I have read through the docs but cannot figure out if this is possible. I want to keep the default setting of g:ctrlp_working_path_mode = 2, but I want the ability to manually override that for all buffers in the current window if I want. …
Jonah
  • 15,806
  • 22
  • 87
  • 161
25
votes
1 answer

Powerline can be shown in multiple buffer, but not in a single buffer

I have just installed Powerline plugin into my vim by using pathogen and submodule. The powerline is only visible when where are multiple buffers. When there is only one buffer in vim, I can't see it. I wonder whether it is a bug or not?
code4j
  • 4,208
  • 5
  • 34
  • 51
21
votes
3 answers

Debugging Vim plugins with call traces

What is the preferable, general method of debugging/tracing vim plugins ? Suppose I have got a fairly sophisticated plugin Foo, which on a key pressed F9 opens new window with file-browser and gives the possibility to choose a file, after that the…
Darek
  • 2,861
  • 4
  • 29
  • 52
21
votes
1 answer

How can I find which VIM plugin is guilty for overloading my CPU

I just done a fresh installation of Vim, and with this occasion I added some new plugins to my VIM configuration. The problem is that now, when I do the first change in the file, VIM blocks and one of my CPUs reach 100% load. This is also happening…
sica07
  • 4,896
  • 8
  • 35
  • 54
20
votes
3 answers

Installing NERDTree on Windows

I'm trying to install NERDTree (the Vim plugin) on Windows 7. I created a .vim directory on my user folder (C:/Users/Username) and extracted the plugin there. I've run :helptags ~.vim\doc and :helptags [full-path]. Closed and reopened Vim. But when…
Vitor Py
  • 5,145
  • 4
  • 39
  • 62
1
2
3
82 83