Here's my setup
Mac OSX 10.6
VIM (default version that comes with OSX 10.6)
rails.vim (installed in .vim/autoload)
ir_black.vim (installed in .vim/colors)
i have "colorscheme ir_black" and "syn on" in ~/.vimrc
Now when I go into terminal and edit a ruby file with vim my colors are messed up. There are only a few colors showing up and...
I had an array in my code that's andI I used an index c[i]. I wanted to change c[i] and write g[i][j] in that place. I tried to use the command %s/c[i]/g[i][j]/g but did something unusual.
How can I do such replacement in Vim?
Thanks in advance.
...
Hello,
when I open Python files my indentation changes. I have the following vimrc settings:
set number
colorscheme wombat256mod
set guifont=Consolas\ 11
set linespace=2
filetype on
filetype plugin on
au BufRead,BufNewFile *py,*pyw,*.c,*.h set tabstop=4
au BufRead,BufNewFile *.py,*pyw set shiftwidth=4
au BufRead,BufNewFile *.py,*.pyw ...
What are the plugnins for vim/gvim that can report about bad formatting esp C++ code and PLSQL code. Like:
blank space after a line.
line having character more than 80 (like 'match' does).
void foo(int x,int y); then it will report forgot a space after ,
And many more formatting errors like above.
Is there any standard practice for ...
I'm trying to figure out the reason behind some regex comparison results I'm getting in Vim. I'm trying to match strings that begin line with one or more asterisks. Here's how various regex's match the strings:
echo '* text is here' =~ '\^*\*\s' prints 1 (i.e., MATCH)
echo '* text is here' =~ '^*\*\s' prints 0 (NO MATCH)
echo '** t...
I have some character maps for typing braces that I'd like to behave differently based on the file's extension - I imagine that would be pretty useful ability to have in general.
Any ideas on how to make this happen from my .vimrc or a plugin?
Thank you!
...
which VCS (git, hg) plugin for vim do you recommend?
...
Lately I've been making a couple of mistakes when refactoring in Vim, the result was undefined and unused variables. Any decent IDE (like NetBeans) would mark them as such, but I've yet to come across a Vim plugin that does the same.
Can anyone help me out? I'm mainly programming in PHP.
...
How can I export vim folds from a file, so that I can transfer it to a different machine?
For example say I create the folds in a file and save it on a local machine - where does the "folding" metadata go? Can I just copy it to another machine, or must I manually recreate the folds again?
EDIT: Hm, I've noticed this might be a duplicat...
Hi,
I was wondering if it would be possible to run the vim spell checker while coding with PHP.
I can run it if I disable syntax highlighting, and it highlights almost all methods/function names because they are not English words.
So, my question is this, can I run the spell check on just the strings within PHP files?
For example,...
Hi,
In Vim, the :enew command has a really irritating behavior - after I create a new file, type something and save it, an empty buffer/file is still present. Why is that and is there any way to prevent it? I'm tired of having to close all these empty buffers all the time.
Thanks!
...
How come in Vi, when I hit $, it goes to the last character in the line instead of the end of the line character? How would I go to the end of the line character in one keystroke, and what is the fastest way to delete the end of the line character?
...
I can easily select a rectangular area in a file provided this area contains text or spaces (or anything). I do it with visual block mode and motion keys.
But when I try to create such area in a new file (or any file without text) I can't.
Is there a way to 'expand' this area by automatically filling it with spaces for example? Or am I ...
In vim, if I have the following text:
hello there
Say I search for hell in the text above.
/hell
and press n to move to the next instance.
hello
hell is now highlighted in vim and my cursor is on the 'h'.
What is the most efficient way to now yank/delete that highlighted text.
Is there a way to 'yank to the end of th...
Sometimes I'm using vimdiff and want to grab code and drop it in a 3rd window/buffer for later reference. When that window is open, though, just about everything is identified as a diff (because it's purposely different than the other two files). How can I open a window in non-diff mode while using vimdiff?
...
Okay guys, you're my only help :)
I have GVIM v. 7.3, Exuberant CTags 5.8, omnicppcomplete (0.41) - all latest, to be exact.
I'm trying to generate tags to use in VIM, but it seems to totally ignore data in tags file.
I've used ctags to generate tags file for bada framework - the file seems to be okay, class definitions present etc. I ...
Hi, sorry for this seemingly simple question - vim super-newbie here. When I switch to command mode in vim, the cursor seems to move one character back when it's at the end of or on a word, and when I go to the end-of-line with $, it does not go to the actual end of line but one character before the end of the last word, and l ("el") doe...
im trying to copy 300 lines from one file to another,
in source file i type "300yy", it says it has yanked 300 lines.
go to destination file and press p,
it pastes, but only the first 50 lines.
any idea why it isn't pasting the 300?
...
How do I open a file specified in vimrc, with a key combination?
...
Hi,
I am performing the following vimgrep search (in vim(!))....
:vimgrep /^\s*bool\s\+\i\+\s*=\s*\(false\)\|\(true\);\s*$/ *[files....]*
in order to find bool variable initialisations in my code. It successfully returns all of the bool initialisations, e.g.
bool result1 = false;
bool result2=true;
but it also returns other ...