Package of files providing add-on functionality to the Vi IMproved (VIM) Editor.

learn more… | top users | synonyms

1
vote
1answer
14 views

vim - update file history more often

I was wondering if it is at all possible to have vim update its file history more often. For example, if I got into insert mode, and type 20 lines of code, exit, and hit 'u', it undoes everything I ...
0
votes
1answer
39 views

Vim: Managing multiple wording alternatives

(After reading this, please suggest another wording for the question, because I couldn't come up with a better one) When writing and editing in Vim, whether texts for humans or texts for humans and ...
0
votes
2answers
78 views

Turn off vim's `filetype indent` for a specific filetype

In my .vimrc I have filetype indent on Now, the way it attempts to auto-indent yaml files is very confusing for me, so I want to turn filetype indent off, but only for yaml files, not for other ...
0
votes
3answers
74 views

Disable vim plugins for large files

I have a custom Vim configuration that I've been putting together. There's a number of cool plugins and features that aid in PHP development. However, when I open a large file (couple thousand lines) ...
2
votes
1answer
162 views

gVim: Pathogen not loading plugins properly (Windows)

I'm using gVim 7.4 on Windows 7 x64. When I place a plugin in the bundle folder, the plugin's commands don't seem to be registered. My setup is as follows: gVim is installed at C:\Program Files ...
0
votes
0answers
36 views

My dot files are version controlled. Can I add sub-modules with Vundle or Pathogen?

I have my .dotfiles version controlled. With symbolic links to .vimrc, .bashrc and .vim. I have recently needed to add some VIM plug ins, command-t and YouCompleteMe. Having looked in to Pathogen and ...
1
vote
1answer
125 views

`vim` and `YouCompleteMe`

I installed vim with python support from source. Then I used Vundle to install YouCompleteMe with the option --clang-completer. No other plugin is additionally installed by me and the clanglib is up ...
0
votes
3answers
34 views

gVim closes automatically when opening python file

I'm using gVim 7.4 , it was running smoothly before installing Plugins after installing pathogen gVim window closes automatically when opening python files. It's working fine for other files except ...
1
vote
2answers
92 views

vim: library of common substitutions without plugins?

I would be wanting to perform thinks like :'<,'>s/^\ \ \ \ // in an abbreviated form, like :'<,'>s_lw (no matter what would actually be that s_lw) using vim base functionality, initially ...
0
votes
1answer
1k views

Vim airline plugin bad characters

I'm having issue to display correctly the vim-airline plugin. Here's what it's supposed to look like Here's what it currently looks like. Note the >, which is not displayed properly. I tried ...
1
vote
1answer
311 views

Vim - How Recognize Spaces as Tabs (set listchars=tab)

I wonder if it is possible to use a configuration for that command "set listchars=tab:▒░,trail:·" to "see" 4 spaces as tabs and get the effect of the picture below (using real tabs)... I use the ...
0
votes
1answer
133 views

Vim conceal feature is applied to active line

I am using MacVim with the vim-latex plugin. There is a conceal feature turned on by default that converts LaTeX symbols to unicode in vim itself so the source is easier to read. I think this is ...
2
votes
1answer
35 views

Plugins cause gVim window to move (become “unsnapped”) in Windows

I have a couple of Vim plugins that seem to cause aero-snapped windows in Windows 7 (Aero windows, not Vim windows) to pop out of their "snapped" position when certain events occur. I don't know ...
0
votes
1answer
34 views

How can I edit the identical part of multiple files at once?

I have multiple HTML files that form a small website. Several lines of code are duplicated at the top of the files (although the <title> differs), and a few lines are duplicated at the bottom. ...
0
votes
1answer
79 views

Vim Color Scheme Overwritten by a Plugin

I’m trying to set up some prettier highlighting for Vdebug. I had a look at the source, and it says I need to target a DbgBreakptLine (I don’t know what they are called, but it’s the thing you put ...
5
votes
1answer
1k views

Vundle - Plugins installed but not loading

I've installed vundle on my ubuntu box but when I load vim none of the plugins load. My vimrc: runtime! debian.vim set nocompatible " be iMproved, required filetype off ...
0
votes
1answer
246 views

Vim YouCompleteMe

I see that the vim plugin YouCompleteMe is a great autocompletion tool but is there a way to get it to complete not just from a file I am working on but external files as well? Like, if I go to type ...
0
votes
1answer
487 views

trouble installing powerline pre-patched fonts on mavericks 10.9.2

I have already installed vim-powerline in vim using vundle, but I am having trouble installing any of the pre-patched powerline fonts in the Lokaltog/powerline-fonts github repo. When I download one ...
0
votes
1answer
198 views

Vim experts: how to find a number within a range based on two numbers? Eg “777” matches “667:888”

I need to search for numbers in a text with Vim. The numbers I need to find are often within a range based on two numbers and I need to match that range based on a single number. For example, in my ...
0
votes
1answer
53 views

Can I change a Vim setting persistently using a shortcut?

Can I change a Vim setting persistently using a shortcut? Hypothetical Example: nnoremap <script> <F7> :call ChangeConfig()<cr> function! ChangeConfig() set virtualedit=all ...
0
votes
3answers
154 views

Does ultisnips support html?

Ultisnips works fine with python and c, but when edit html files, it never insert the snippet at all. While youcomplete me suggest there is a snippet by the prompt. Does ultisnips support other ...
1
vote
1answer
704 views

how to install a color scheme with yadr

someone advised me to use yadr, which is supposed to make installing dotfiles etc much easier for vim however I just couldn't figure out a way to install base16 through yadr.. before I had to ...
0
votes
3answers
84 views

Vim - Visual Mode - Improve Word Selection

Gentlemen/Ladies, I do not understand why vim is exhibiting the following behavior when I trigger the shortcut below on visual mode (.vimrc): vmap <script> <C-LEFT> :call ...
1
vote
1answer
85 views

How can I check if the cursor is at the end of a line?

Gentleman, Simple question about Vim! How can I check if the cursor is at the end of a line using a function in vimrc? []'s
1
vote
1answer
65 views

Vim completion based on language

Right now if I hit ctrl + n it will complete words that are in the current document. I've also found a way to define a dictionary. I'm just unsure how to get vim to complete based on keywords in a ...
-3
votes
1answer
72 views

VIM - Detect Whether a Plugin is Active/Running/Open?

I would like to do some tricks with VIM and so I ask the help of you guys! It is possible to detect whether a plugin is active/running/open? You can close a plugin by its name? You can close a ...
0
votes
4answers
107 views

Word highlighting in vim (plugin)

Given a list of words, I want to highlight all those words in the current buffer. I'm writing a vim plugin so I expect some yak shaving. Is this possible in a sane manner?
0
votes
0answers
20 views

vim-supertab no results behavior

I would like for vim-supertab to revert to the normal behavior of Tab if the autocomplete command returns no results. This is especially useful as I often find myself hitting Tab at the end of ...
1
vote
1answer
187 views

Make Vim's Vundle autoupdate?

Is there a way to make Vundle automatically update? I'd like Vim to run BundleUpdate every so often, ideally in the background.
0
votes
1answer
110 views

SingleCompile plugin Installation in vim

I'm using debian wheezy. I've downloaded SingleCompile plugin and I installed in vim 7.4. As there's no directory like ~/.vim I created one using mkdir ~/.vim and move the extracted plugins to ...
0
votes
3answers
518 views

Emacs IDO (Interactively Do Things) for vim

Is there a vim equivalent of Emacs' ido mode (video)? What I mean is that I want to type :e a and it should show me a shortened list of files starting with 'a'. When I type b, it would ...
5
votes
8answers
7k views

Vim: How to Install Airline?

I'm just getting started with Vim. It's a fun experience, but I've found it to be kind of overwhelming. I'm trying to get this plugin installed, vim-airline, but I'm having a lot of trouble. The ...
1
vote
1answer
67 views

How can I use a '#' character in a git command?

I'm trying to close an issue on Bitbucket from a commit message through fugitive.vim's Gcommit command: :Gcommit -m "Fixes #1" When I check the commit message, #1 has been replaced with index.html ...
2
votes
1answer
95 views

Set imap depending on filetype

I'm using the xml and omnicppcompl plugins for Vim, and making use of two insert mappings these plugins define for the '>' key. My problem is that while the omnicppcompl plugin will happily imap the ...
0
votes
2answers
54 views

xml.vim corrupts '\' paste

I am using vim on Linux. I have xml.vim plugin loaded. If I do a paste of a string like "\." what I get is ">". If I do an insert, and pause, I can type "\." Apparently this is due to insert mode ...
0
votes
1answer
73 views

Vim highlighting stuck messed up for specific file

I am using JSLint and Syntastic plugins for Vim, and I am having an issue where a specific file is stuck having broken highlighting and JSLinting, foo/bar.js. However, if I change the path such that ...
3
votes
1answer
333 views

How to set syntax highlighting by default when I open *.tt file in Vim?

I use Vim for edit files. When I open file with .tt extension I have to use command set filetype=html in order to set syntax highlighting on for this file. How can I use this command by default ...
1
vote
1answer
354 views

Make vim plugin Syntastic mark more than the first error in php

I'm using vim on mac (both command line & MacVim) and installed the syntastic plugin for syntax error checking. I'm now using it and its standard php syntax_checker for php coding, but if there's ...
1
vote
2answers
76 views

How to make vim change a date when a section of a file was edited?

I'm using latex as a diary with sections for each subject. I manually add date of creation and modification to each element of text (section, subsection, subsubsection, ...). Is there a way to make it ...
2
votes
2answers
1k views

Building Vim with rbenv and Command-T on OSX

dyld: lazy symbol binding failed: Symbol not found: _rb_encdb_declare Referenced from: /Users/sa125/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin10.8.0/enc/encdb.bundle Expected in: flat ...
3
votes
1answer
425 views

How to insert a real tab with Vim SuperTab plugin if completion fails

I really like vim SuperTab plugin. But there is a little problem I have. When there is no keyword to complete the plugin doesn't insert a real tab but instead it tries to complete the word with ...
1
vote
1answer
208 views

Vim - web Preview files in Browser

I have been toying around with vim. I have too many plugins and unknown things in my vim rc. Going to start again with it basic. Wanting to get back into vim and use it as a web editor. One thing I ...
2
votes
3answers
237 views

VIM edit directory like BBEdit for Mac

I've recently started to really appreciate the power of VIM. Once you learn how to use it, coding and editing go a lot quicker. My main holdup is that I can't open a directory like a project in VIM, ...
3
votes
1answer
212 views

Anyone know how I can use the same keys to move between Vim windows as well as Tmux (or tiling WM) panes?

Anyone know how I can use the same keys to move between Vim windows as well as Tmux (or tiling WM) panes? For example when I use my key combination to move to the right pane within VIM, VIM should ...
0
votes
2answers
144 views

How do I get syntax elements to be automatically inserted on the next line in vim?

In vim, many syntax elements automatically get inserted on the next line when I start a newline. For example, if I am inside a vim file editing a comment in insert mode, when I go to the next line, I ...
0
votes
1answer
88 views

pathogen plugin installation alternative syntax

I was looking for some syntax highlighting goodness for handlebars in vim and the installation instructions say to do this... cd ~/.vim/ git submodule add git://github.com/nono/vim-handlebars.git ...
2
votes
2answers
130 views

Detect filetype in narrowed region

I am using the terrific NrrwRgn plugin. I often edit XML files with PHP in CDATA sections, so in the narrowed buffer I get this: <![CDATA[ $foo='bar'; doSomething($foo); ...
1
vote
1answer
685 views

MacVim, Command-T: SEGV

Details: OSX 10.7.4 I installed the latest MacVim via Homebrew: $ command-t brew install macvim ==> Downloading https://github.com/b4winckler/macvim/tarball/snapshot-64 Already downloaded: ...
1
vote
3answers
3k views

How to setup VIM for php development?

I have been trying a lot (but not smartly) to figure out setting up VIM, ctags, omnicomple for PHP development. On Googling I found this file. But have no clue how to use it. What have I done until ...
1
vote
1answer
354 views

How can I jump to signs in vim?

There are a couple of plugins that add signs (see :h sign) marking syntax errors in various files. In particular, the Vim-Latex-Suite adds syntax error signs in latex files, and the Drupal Vim plugin ...