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

learn more… | top users | synonyms

0
votes
0answers
30 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
133 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
40 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
33 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
44 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 ...
0
votes
0answers
212 views

Does vim's youcompleteme plugin require clang to auto complete?

From the youcompleteme's documentation, it's quite ambiguous what clang has done for it. Does it do syntax check? Semantics check? Or it's necessary to do auto completion? Actually, youcompleteme ...
1
vote
1answer
252 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
49 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
44 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
0
votes
1answer
40 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
53 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
53 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
16 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
97 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
67 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
257 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 ...
1
vote
7answers
3k 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
60 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
82 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
49 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
54 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
183 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
248 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
70 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
868 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
268 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
142 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
197 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
181 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
125 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
81 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
124 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
623 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
2k 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
271 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 ...
3
votes
2answers
230 views

in Vim, how can i select enclosing block or paragraph

I want to select a current block recursively . for example i have this ruby code 1 def function 2 if true 3 if also_true 4 do this 5 end 6 end 7 end for example im in the 4th ...
1
vote
1answer
545 views

How to move previous opened file in NERDTree?

Does NERDTree have a stack to track opened files? I want to go back to previous file easily(As like ctags does by Ctrl+T). But I can't find the feature in it's manual. Is it even possible?
1
vote
1answer
486 views

Vim: Close and return to last tab, repeat

I find myself in this situation very often: Open gVim with NERDTree from current working directory. Open a file from NERDTree using <S-T> so it grabs a new tab. :tabprevious to return to ...
0
votes
1answer
600 views

Vim plugins not working in OSX 10.7

I had downloaded snipmate from http://www.vim.org/scripts/script.php?script_id=2540... I extracted the zip file and copied it to folder /usr/share/vim/vim73/ Before this plugin, i tried to install ...
8
votes
3answers
2k views

Vim - dynamic list of open buffers in a window

I've investigated a few ways to maintain a list of open buffers in Vim, and some of them are very good, but none of them seem to behave the way I'd like. It's very possible that nothing like what I ...
0
votes
1answer
235 views

Deterministic navigation of c++ class tags in VIM. ctags doesn't work well

Currently, to navigate a.run() tag, I put the cursor on run and press g], which opens a window with enumerated list of tags for all files that have run(). I have to manually find an option that ...
11
votes
2answers
25k views

installing plugins in vim

I had a real difficulty installing vim plugins on mac. I know for a plugin to be installed it has to be seen by runtimepath. According to vim docs, this is Macintosh: "$VIM:vimfiles, $VIMRUNTIME, ...
1
vote
1answer
617 views

Snipmate + Pathogen + Git - Custom Snippets don't work on Windows

Here is my setup: My .vim directory is under source control with git I use Pathogen for managing my plugins My SnipMate plugin is a git submodule under .vim/bundle/snipmate This means I can't ...
2
votes
2answers
584 views

How to prevent certain vim formatoptions from being enabled by ftplugins?

When I load certain file types in vim, the corresponding ftplugin adds "co" (among other options). I don't want this. One example is the bundled ruby.vim. I could do this one ftplugin at a time by ...
0
votes
2answers
463 views

vim txtfmt plugin “ italic format not working”

Image URL After executing :MakeTestPage in vim As you can see in the image ... underline(u),bold(b),bold-underline(bu) displays correctly but what is happening to italic(i) ? It shows white ...
0
votes
2answers
320 views

How would I pass the contents of a Vim register to an external script?

Essentially I want to create an operator in a Vim script that sends selected text to an external (Python) script. It should behave like one would normally expect an operator to, whether the text is ...
3
votes
1answer
249 views

CommandT plugin for vim will change the current working dir?

I just installed CommandT for Vim, and it works very well, but there's an annoying bug/problem. It seems that CommandT would change my working dir to the file I just opened. e.g. when I reach ...
0
votes
2answers
719 views

Vim script Gundo isn't working properly

I'm having trouble with my vim with "python" support. I had installed gnome-vim, in Ubuntu 11.04, that theoretically has "python" support but if I install pathogen and gundo, when I press F5, the ...
4
votes
1answer
337 views

Vim doesn't show plugin documentation

When I put a symbolic link to a .txt documentation plugin, vim doesn't show me the help Example: I have in ~/.vim/doc $ ls -al NERD_tree.txt NERD_tree.txt -> PATH/nerdtree/doc/NERD_tree.txt ...
3
votes
2answers
669 views

Vim plugin presenting a list of open tabs

I've looked around and couldn't seem to find what I need. Basically, when I have many open tabs, it becomes difficult to realize what file is open in a specific tab. Is there a plugin that would ...