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

Moving to the first non-blank character of the line in vim

I'm having some trouble moving to the first non-blank character of a line in vim. The usual mapping for this action is ^, but in my keyboard that accent is located with the number 6 key, so I have to press Shift + 6 to get it. As expected, Shift +…
GuilPejon
  • 971
  • 13
  • 19
4
votes
1 answer

vim partial repeat command

Sometimes I want to repeat a whole command and I use the dot command, but sometimes I want to repeat only a part of that command. Is there a command or a plugin that allows to do that ? Let's say the initial command was caW foo. Is there a way to…
David B.
  • 788
  • 1
  • 11
  • 21
4
votes
1 answer

What is NetrwBrowseX and what are the related vim mappings for?

I occasionally like to map vim keys to search and then do something. I've been doing this for decades, but when I do it now, it takes over a second each time I use the mapped key. I believe the cause is this, response from ":map" in vim: n gx …
Jeff Learman
  • 2,914
  • 1
  • 22
  • 31
4
votes
1 answer

Error opening vim

I just installed VimPlug and several golang imported tools and plugins. I'm not sure where the first place to look at in order to disable this installation of oracle since it's been replaced with guru. $ vim Installing…
Marian Montagnino
  • 125
  • 1
  • 4
  • 11
4
votes
1 answer

Is there a plugin for vim C++ motions

Is there a plugin with specific C++ motions? Like vif - visual inside function. That could be very useful for some macros etc.
P4C
  • 507
  • 5
  • 10
4
votes
4 answers

toggle neovim terminal buffer like nerdtree plugin

since we have the option to have a terminal inside a neovim buffer. I would very much like to have a way to "toggle" the buffer containing the terminal and have it appear in a fixed position like say the bottom of the screen. I know that nerdtree…
Kristoffer
  • 456
  • 5
  • 17
4
votes
1 answer

YouCompleteMe without MacVim

I've been reading about youcompleteme plugin for VIM. The problem is, however, that I want a setup I just can move onto my other dev platforms (OpenIndiana, FreeBSD, Linux and OS X). Wouldn't using macvim make that somewhat difficult, moving plugin…
Reclzz
  • 149
  • 1
  • 7
4
votes
1 answer

Installing VIM plugins to a central location and making them globally available to all users

I've installed syntastic VIM plugin by following instructions from the plugin docs via pathogen. Install pathogen: mkdir -p ~/.vim/autoload ~/.vim/bundle && \ curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim Install syntastic as…
Pavel Chernikov
  • 2,186
  • 1
  • 20
  • 37
4
votes
1 answer

vimwiki local file link handling

I would like vimwiki to open .tex files in vim (in the same way it open wiki files in vim). I'm running cygwin, and I finally succeeded in making vimwiki open links the way it "should" by replacing 'xdg-open ' with 'cygstart ' in the…
user59959
  • 193
  • 1
  • 5
4
votes
1 answer

What is the difference between vimrc and vimruntime

I downloaded the vimrc from amix/vimrc which is very helpful for starting out in vim. But as I try to edit the .vim_runtime I keep getting errors. Here is my .vimrc set runtimepath+=~/.vim_runtime source ~/.vim_runtime/vimrcs/basic.vim …
Victor Frank
  • 39
  • 1
  • 5
4
votes
1 answer

Quickly switch to the last edited buffer

Is there a good command that will switch to the last buffer (and place) where an edit was made? I would prefer not to have to install a plugin just for this (but if there is no other way then I would). This is not solved by the BufSurf plugin which…
kasbah
  • 903
  • 5
  • 23
4
votes
1 answer

Using a variable as the subject of autocmd FileType

Is it possible to use a variable as the subject of an autocmd? I want to allow plugin users to define a list of FileTypes the plugin will operate on. This requires that I set an autocommand for each of the given FileTypes. The below code doesn't…
Michael Robinson
  • 29,278
  • 12
  • 104
  • 130
4
votes
1 answer

Migrating to Vim from RubyMine - Interpreted Auto completion

Up until last week, I had been using RubyMine for my Rails development. I know it has a vim plugin but I have been working on migrating my development to vim and tmux. I don't want to keep using the mouse and VIM gives me a lot more flexibility. I…
Abdo
  • 13,549
  • 10
  • 79
  • 98
4
votes
2 answers

NERDTree: Autocmd error vim

I am trying to add NERDTree to my RHEL machine by appending following lines in .vimrc after placing NERD_tree.vim in plugin folder. autocmd VimEnter * NERDTree autocmd VimEnter * wincmd p The problem is that I am able to run it using these commands…
Vaibhav Agarwal
  • 1,124
  • 4
  • 16
  • 25
4
votes
1 answer

How can I interactively debug a python vim script?

I have a vim plugin that I'm writing in python, however I need to debug the python script. How can use pdb (or preferably ipdb) in the vim script itself? When I use pdb vim just hangs with no output, and when I use ipdb it turns vim into garbaged…
Ben Davis
  • 13,112
  • 10
  • 50
  • 65