How to set ":make" to use scons?
I know there is a way to make vim run scons instead of make when I press :make. I had an option that did this in my ~/.vimrc but I removed it a while ago and forgot what it was. ...
I know there is a way to make vim run scons instead of make when I press :make. I had an option that did this in my ~/.vimrc but I removed it a while ago and forgot what it was. ...
I'm trying to use VIM to format AS3 codes, but have some problems for object definitions. VIM formats it as below: var object = { a : b, c : d } However what I want is var object = { a : b, c : d } In the "C-Indenting" part of VIM manual, it says Vim puts a line in column 1 if: * It s...
Is it possible in Vim to lock the top line of a window so that the first line in buffer is always seen on top of the window? I have a file, say, dump of a database table. On the first line there are names of columns, other lines contain data. I want to be able to scroll contents up and down, and always see column names. N.B. Lines can ...
I love smartcase, but there are times that I'd like to turn it off and search for just lowercase. Is there a builtin that will toggle smartcase, or do I need to write a function to toggle it? ...
Hello, Is there any option in vim spell checker to ignore words containing underscore, multiple uppercase letters, minus, numbers in a plain text file. I could not find anything in the manuals (7.2) or google search. Thanks. ...
Does anyone want to share their erlang vim settings? It seems I can't make it work at all and the worst part is that it doesn't auto-indent automatically. Is there something outhere called vim-erlang, as in vim-python or something? ...
I'm a vim user and have recently been trying out emacs for fun. I find that the feature I'm missing most so far from vim is the "super star" (find the word under the cursor by typing *) feature, and I have yet to find the equivalent in emacs. If it's not built in, what would I need to add to my emacs file to get something similar? ...
To find and replace all instances of a word in vim, I use %s/word/newword/g How do I change this so that it only finds instances of "word" that are whole words? ...
Hi, I've looked at a number of the IDE style file explorer / management plugins for VIM. The most popular one seems to be Project, but I've never got on well with it. Specifically, having to always create a .project file for the files you want to browse, and that changes to that file hierarchy outside of VIM are not picked up. I stu...
There is a vim variable with the string value like this: foo%:p:r:sbar %:p:r:s is a vim wildcard. How can I expand all wildcards in the string variable? Unfortunately expand(my_variable) doesn't help. Do I need to specify any additional argument or use other vim function? Thanks. ...
I have a command to tidy up excessive whitespace in my code in vim: " to tidy excess whitespace map <leader>1 :execute ':%s#\s\+$##g'<CR> My question is, if I have 10 tabs or buffers open, how can I apply this command to all of them, rather than just going to each one and applying the command. Thanks, Stephen ...
Hi, a have googled the question, but found nothing - maybe I do not know how to define the search keywords properly in this case. I like to use folding in vim when I'm developing Ruby on Rails applications. And my foldcolumn is set to 4. But its visualizing of the start and the end of the ruby method is not so simple and obvious ("-" - ...
Hi i'm trying to use vim autocomplete in that example: i got struct in file def.h: typedef struct test{ int x; int y; }*test_p,test_t; and now, if i got, in my C file: test_p t; t->(what i should press to fill it with x or y? both ctrl-P and ctrl-N does not give me variables inside test struct) i've already used c...
I'm starting a new job next month. I've practically lived inside Visual Studio professionally for 10 years give or take, but for this job I'll be working full time on the linux platform for the first time in my life. During one of the interview meatings I was seated in the middle of the developer room to socialize with the crowd. We had...
In vim, when I hit :wq it is almost always an accident that occurred when attempting to input :w. I would like to disable :wq. The closest I found is cmap, but it has some odd behavior. If I do something like :cmap wq w I can no longer even input :wq; it just remaps the keystroke sequence wq to w in command mode. Now I cannot, for...
I have a number of scripts (Ruby as it happens) I run from VIM, by setting up the startup file to contain (for instance): amenu Ruby.script1 :%!ruby C:\ruby_scripts\script1.rb<cr><cr> amenu Ruby.script2 :%!ruby C:\ruby_scripts\script2.rb<cr><cr> ... What I would like to do, is to have VIM automatically check the C:\ruby_scripts direct...
I've recently abandoned mouse-driven, platform-specific GUI editors and committed entirely to vim. The experience so far has been fantastic, but I'm stuck when it comes to Javascript. The ever-popular taglist utility (using Exuberant Ctags) has been great for everything but Javascript. With the language's overly-free form and structur...
I want to search some text and move the entire line where the text belongs to the beginning of the file. Just that. ...
Compiling (or executing) a perl program with unmatched array braces ("[ ]") or scope brackets ("{ }") causes the "missing right curly or square bracket" syntax error. Perl often reports the source as your last code line ("at EOF"), which could be far removed from the actual missing piece. Example perl error message: Missing right curly...
This is relating to http://stackoverflow.com/questions/1791082/utf-8-php-and-xml-mysql, which I am still trying to get my head around. I Have a couple of separate questions that will hopefully help me understand how to resolve the issues I am having. I am trying to read values from a database and output into a file in UTF-8 format. But...