Autowrite VIM buffers after <alt-tab>
How can I configure vim to autowrite buffers after switching with alt-tab to another application? ...
How can I configure vim to autowrite buffers after switching with alt-tab to another application? ...
Is it possible to update vim plugins automatically? ...
I'm a novice user to vim and I haven't been able to find in the internet how to collapse functions and I've figured out how to collapse the argument list in C with zfa} and zfa). but I can't figure out how to collapse the comments sections. How do I do that? Second question but related, is there a way to collapse all functions/argument...
Are there any IDEs that can embed gvim as its editor? I found PIDA for linux, I'm wondering if there are any windows equivalent for this. I'm not looking for Vi emulation, I am looking for IDEs that can fully embed gVim (so I can use all the Vim plugins). ...
I'm looking for a way to highlight the code block currently under the cursor while in normal mode. This would work kinda like the set showmatch config options does, but the detection and highlighting would stretch over the entire block. Any way to achieve this functionality either with config options or a (preferably existing) script ...
I know there is a way to list mappings via :map (or :imap, :cmap etc.), but I can't find a way to list macros I have stored in my vimrc file (as in let @a = 'blahblah'). Is there a way to do this without having to manually looking inside it (via :split [myvimrcfile] or whatever way)? Also, if it is possible, is there a way to attach so...
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. ...
Lately I came up here with a similar question. I want to color special words in all files independet from the active syntax-file. It works with words like DONE and ADD. I tried to achieve the same with [+] or [x] and [-] but it doesn't work. [+] and so on them not to be interpreted as keyword. Fooling around with iskeyword+=[+] and escap...
In ex-mode I can use :g/^$/d for the whole file. How to do it for a visual selected part of the file? ...
Is it possible to let Vim's omnicppcomplete automatically close argument lists for functions or methods that do not take any arguments? For example, assuming v is an STL vector, when auto completing v.clear(), we end up with: v.clear( It would be nice if the closing parenthesis would be automatically added. Is this possible? ...
I'm using gvim. Using vimgrep on current directory to find text across *.sql files. As it searches files, it just shows me file name at a time and in the end opens one file up. Is it possible to open all files as tabs? Basically I want to open all files because I want to replace the 'vimgrepped' pattern with a some other text. ...
I want to learn vim documentation given in standard help file. But I stuck on navigating issue - I just cannot go to the next tag without positioning cursor manually. I think you would agree that it is more productive to: go to the next tag with some keystroke press Ctrl-] to read corresponding topic press Ctrl-o to return continue rea...
When I press "j" or arrow down in vim/gvim the cursor moves to the next line. which is good for writing code. When writing text however the lines are usually much longer then the text with. Therefore I can not easily get the word just above THIS word. So in almost all editors and text processors pressing the up arrow HERE ↑ would put th...
I want to be able to click (or cmd+click on my Mac) on a function name in Gvim (or vim with set mouse=a) and have it run the command :tag to follow a ctag, but I don't know how to include a mouse click in a Vim mapping. ...
Vim (actually, gvim is in question, but I believe it works both ways) upon starting has its current directory in its runtime directory. I would like to upon starting, to have its cd in let's say, c:\pro I know I can just do :cd c:\pro, but is there a way to change it upon starting it, with something alike gvim c:\pro (only that doesn't ...
for example, if I have something like this: #include "filename.h" when I select filename.h I want to use it as the input for opening the file named filename.h in a split. thanks in advance for any help. ...
Hi guys, I'm looking for a regex that will change sth. like this: print "testcode $testvar \n"; in printnlog("testcode $testvar \n"); I tried %s/print\s*(.\{-});/printnlog(\1);/g but gvim says print\s*(.\{-}); doesn't match. Where is my fault? Is it ok to use '*' after '\s' because later '{-};' will stop the greed? Thanks in ...
When I put the following in .vimrc colorscheme blue It gives me a nice blue colorscheme in gvim. However, when I use vim, it is light blue instead. Is there a setting I can change so that gvim and vim look the same? If not, then is there a way I can set it up so that my gvim settings do not interfere with my vim settings? ...
Okey, simple problem, but I'm stupid and am not seeing it. Can somebody give me an example what needs to be done to create a new snippet (preferably if someone could give a simple example) for a new language in XPTemplate (Vim plugin). Its syntax files are a total mess from my point of view. ...