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

gvim ftplugin not loaded

I'm trying to figure this out: Added ~/.vim/ftplugin/verilog.vim with my commands (matchit rules) Started gvim and opened a verilog file. Now: :set filetype? returns filetype=verilog :filetype returns filetype detection=ON plugin=ON…
Amir Gonnen
  • 3,525
  • 4
  • 32
  • 61
5
votes
2 answers

vim autocommand on buffer load/file open?

I'm trying to execute an autocommand when a file (buffer?) is opened in vim that will display indentation guides by executing ig. I'm using the vundle plugin nathanaelkane/vim-indent-guides I currently am trying autocmd BufWinEnter
Nat Dempkowski
  • 2,331
  • 1
  • 19
  • 36
5
votes
2 answers

vim shell key mapping to execute shell commands

i am using vimshell to execute commands inside vim nnoremap vs :VimShellPop with this key mapping i can open vim shell and execute commands like 'bundle install' and then type exit to exit VimShellPop window but i want set a key mapping…
Rajanand02
  • 1,303
  • 13
  • 19
5
votes
1 answer

Set vim current working directory to the current project root or to the directory of the current file

How can I (automatically, basically I shouldn't have anything to do apart from initial configuration) set vim cwd to the project root directory (if there's any) or to the current buffer directory (in an autochdir fashion)? Here is an example of a…
foo
  • 940
  • 2
  • 9
  • 20
5
votes
1 answer

vim unite plugin recreate

I'm using Vim with the Unite plugin. I have a key mapping in my vimrc file like so, nnoremap t :Unite -start-insert file_rec And it works as expected. Only problem is, when I create a new file in the directory and try to search with t…
Jay
  • 1,083
  • 1
  • 10
  • 19
5
votes
3 answers

Which version of Ruby should I use with Vim 7.4 on Windows?

I have Ruby version "1.9.3p362 (2012-12-25) [i386-mingw32]" installed. It has msvcrt-ruby191.dll in the bin directory. Vim 7.3 could use that, at least has('ruby') returned 1. (Some plugins, like LustyJuggler did not work, but I don't know why.) But…
oskarkv
  • 2,329
  • 2
  • 21
  • 29
5
votes
2 answers

Use code completion in vim as in sublime text

I would to have a autocompletion exactly as in sublime text but in vim. I want this behaviour : When I start to type a word, I want to have a box which suggest completions; In the suggested completions, I want to have last words used; I want to…
Dougui
  • 7,142
  • 7
  • 52
  • 87
5
votes
3 answers

Sublime code-like method browser in Vim

Sublime code has a shortcut Super-R which opens a method browser listing all methods in current class (Ruby). Is there a plugin to get similar functionality in Vim? "/def " or "m]" work only if you're familiar with the class and know what method you…
Sathish
  • 20,660
  • 24
  • 63
  • 71
5
votes
2 answers

Can I do VBA programming with Vim?

Part of my job right now is to build some dynamic functionalities into Microsoft Office documents. The only means I've found to do this is through VBA - and thus, the VBA editor which comes built in to Office docs. The VBA editor is awful. It's…
Austin R
  • 775
  • 3
  • 11
  • 22
5
votes
1 answer

Mapping already in use: "sb", mode "n"

I recently installed some plugins so I can use Vim as my development IDE. It appears some of the plugins are not playing nicely with each other. Currently, I have the following vim plugins in my plugin directory: code_complete.vim cscope_maps.vim…
Homunculus Reticulli
  • 65,167
  • 81
  • 216
  • 341
5
votes
2 answers

How to restrict the % functionality of vim?

I have large amount of C code and a large portion of the code is commented out and/or #if 0. When I use the % key to match the open and close brackets of if-else, it matches the commented out code too. Is there a way or a vim plugin that would not…
Harman
  • 1,571
  • 1
  • 19
  • 31
5
votes
4 answers

How to always have the same current directory in VIm and in Terminal?

I would like to my terminal current directory follows my VIM one. Example: In TERMINAL: > pwd => /Users/rege > vim Then in VIM :cd /Users/rege/project (for suspend) In terminal > pwd => /Users/rege/project I`m using MacOS, zsh, tmux. I…
tomekfranek
  • 6,852
  • 8
  • 45
  • 80
5
votes
2 answers

Can you have different localleaders for different Vim plugins?

I started using a plugin that conflicts with my existing maps, but instead of remapping all of it's maps, I just want to add a prefix. I thought I'd be able to do this with LocalLeader. Vimdoc says: is just like , except that…
idbrii
  • 10,975
  • 5
  • 66
  • 107
4
votes
1 answer

vim + CtrlP plugin - case insensitive search?

does anybody know how to perform a case insensitive file search with vim's plugin CtrlP? I can't seem to find that in the instructions anywhere. Ideally it would replace the standard CTRL+P shortcut. Thank you!
Alexandr Kurilin
  • 7,685
  • 6
  • 48
  • 76
4
votes
3 answers

Vim plugin to generate Javascript Documentation comments

Is there a plugin for vim, somewhat like Jsbeautify, which automatically generates JavaDoc like comments in the script files. For example it will take this function(a , b , c){ } and return /** * Description. * * @param a Description. *…
puk
  • 16,318
  • 29
  • 119
  • 199