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 ...
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
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 ...
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 ...
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
544 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?
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 ...
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 ...
1
vote
1answer
370 views

SnipMate Stops Working When Adding More Plugins

I am using Vim 7.3 with Pathogen on Windows, I have Pathogen setup in ~/vimfiles/autoload/pathogen.vim and SnipMate ~/vimfiles/bundle/snipmate.vim/. SnipMate works fine when it is the only plugin ...
20
votes
6answers
8k views

Vim: How to synchronize NERDTree with current opened tab file path?

When I open a new tab with different path from the previous file in VIM, NERDTree will still remains the same directory hierarchy of the previous file. Is there a sync shortcut to change the current ...