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
6
votes
1 answer

vim loading python on linux

I have Python 2.7 and Python 3.3 in my Debian. I rebuilt both using the arg --enable-shared. After than I built VIM 7.4 using the args " --enable-pythoninterp --enable-python3interp --with-features=huge --with-python-config-dir=PathToConfig …
Srik
  • 2,341
  • 2
  • 21
  • 35
6
votes
2 answers

Vim completion with YouCompleteMe on windows

I am desperately trying to get YouCompletMe working on windows, the author clearly says that there is no official support for windows so that's fair enough. Though there is a wiki to build it on windows and you find 1/2 people online claiming they…
statquant
  • 13,672
  • 21
  • 91
  • 162
6
votes
1 answer

vim, How do I get matching word in parenthesis from regex

with vim script, Let me say that I want to find word "This" from the following expression match("testingThis", '\ving(.*)') I tried with some different options, getmatches(), substitute(), not luck yet :( Is there a way get matches in vim like in…
allenhwkim
  • 27,270
  • 18
  • 89
  • 122
6
votes
3 answers

How to efficiently undo an autocomplete in vim

Right now I'm playing with autocompletions in vim, and I've settled on supertab to handle my completions. While it's running very smoothly and (I think) exactly as it's designed, I'd like to know how to change something. Firstly, I'm running 7.3.429…
davidlowryduda
  • 2,404
  • 1
  • 25
  • 29
6
votes
1 answer

How to use both pman and custom help files in Vim with the viewdoc plugin?

When editing PHP files I want to use help files from two sources: vim help files in /etc/vim/bundle/yii-api-vim/doc/ from here. PHP man pages with pman If there's no help available from the help files it should try pman. The viewdoc plugin's help…
Michael Härtl
  • 8,428
  • 5
  • 35
  • 62
6
votes
1 answer

Why would "\n" become "^@" when writing Python in a .vim file?

For example, here is my function: function! Test() python << EOF import vim str = "\n\n" vim.command("let rs = append(line('$'), '%s')"%str) EOF endfunction and when I :call Test() , what I see is "^@^@". Why would this happen and how can I use…
yakiang
  • 1,608
  • 1
  • 16
  • 17
6
votes
3 answers

vim: where to put default values for plugin variables?

What is the best way to set default values for plugin variables? Ideally, I would like to have those variables set before .vimrc is loaded, such that the user can override these values if he wants to. Is that possible?
chtenb
  • 14,924
  • 14
  • 78
  • 116
6
votes
2 answers

command-t not finding files

I've recently installed command-t plugin on vim and started playing with it. But now I feel that it fails finding some files. For example: I have and inc folder and none of it's contents is listed when I hit t (and type inc or any filename…
Ander2
  • 5,569
  • 2
  • 23
  • 42
6
votes
1 answer

how to debug python function which is part of vim plugin?

The python invocation is defined in some of my .vim files. :breakadd file linenumber xx.vim doesn't seem to work. When I press a key that triggers the invocation of certain python functions, it doesn't stop at that line. What happened? By the way, I…
hugemeow
  • 7,777
  • 13
  • 50
  • 63
5
votes
1 answer

UltiSnips not triggering correctly

I'm using UltiSnips. http://www.vim.org/scripts/script.php?script_id=2715 Everything works. Let's say when I type st it inserts submit_tag…. But if st is in between other characters, it won't work. For example: foostbar Anyway to…
Christian Fazzini
  • 19,613
  • 21
  • 110
  • 215
5
votes
1 answer

doesn't work in neovim in PowerShell in Windows terminal

everyone! I’m configuring neovim for “Windows terminal”. And I installed the coc plugin. And I would like to use for triggering suggestions like in VSC. But the problem is that in neovim doesn't work at all. This is the remap I try to use: " Use…
Andrew O.
  • 171
  • 1
  • 9
5
votes
1 answer

Pyright, report missing imports error in neovim

I'm getting this error, which doesn't make sense because the libraries are installed, and the correct python interpreter path is selected. I have no clue where the issue could be.
gxp2
  • 149
  • 2
  • 11
5
votes
1 answer

vim emulation extension in VScode causing problems

I've been using VS Code in "VIM mode" for years now without a problem. I'm on v1.46 now. I fired it up today and immediately couldn't type and other keys like escape failed to register. In the lower left corner, I'd intermittently see the…
Daveh0
  • 952
  • 9
  • 33
5
votes
1 answer

Using Vimwiki to embed images to a wiki that needs to be transferable between systems

I am building an internal project wiki for a group software development project. The project wiki is currently powered by VimWiki and I send the HTML files to both the project supervisor and each of the development team on a weekly basis. This keeps…
Isaiah M Fisher
  • 131
  • 1
  • 8
5
votes
1 answer

iTerm2 not rendering vim true color colorscheme

Vim (v 8.0.1283) is drawing 8-bit color in iTerm2 (v 3.2.4) despite what appears to be correct configuration. $TERM is set correctly: $ echo $TERM xterm-256color Here's the relevant section of my ~/.vimrc: set background=dark set…
RangerRanger
  • 2,455
  • 2
  • 16
  • 36