After a completion try, omnicppcomplete will display all the possible items in the pop up menu . To select an certain item in the menu, one should use <C-N> and <C-p> to switch back and forth between different items. I feel that it is very inconvient . It should be very cool if j and k can be used to to take place of <C-N> and <C-P> . s...
I know there's NERDTree and NERDTreeToggle,
however the function I want is:
if there is not a NERDTree window, pop one up
if there already is one, switch to the NERDTree window
Thanks!
...
I code in Vim, not an IDE.
My source code is often nested 2-3 directories deep.
~/foo$ find
xyz
bar/abc
bar/def
~/foo$ vim
// inside of vim
:e bar/abc
... some work ...
:e <-- is there a way I can have this :e start in ~/foo/bar instead of ~/foo ?
Basically, I want :e to start the directory in "pathname of last edited file"
Thanks!
...
I want to use a algorithm to reduce memory used to save the particular text file.I don't really know how text is stored but i have an idea in mind.
Would it be better to extend a open source text editor (if yes than which one) or write a text editor myself.
It would be nice if someone could also give me a link or tutorial to some basic...
I use something like this: 1,40 fo but I think is not the most efficient way.
What's yours?
...
I just want to transfer from SourceInsight to VIM. I know the basic of VIM, also study some pop plugins (project, fuzzlefind, taglist), but I still have a few questions about my main scenario.
I worked on a huge source tree. It's too huge, that I can't create tag for each sub folder, or add them all to the project, and in fact I don't c...
cw changes a word. Likewise if I have selected sections in vim (found by /), how do I change one of the highlighted section, so that I can repeat(.) the process in all of the other highlighted sections.
I know %s will do the trick. But I wanted to go this the / way (visual satisfaction).
Edit:
I am looking for an extender to c like w...
Hi there,
I am currently playing around with emacs and happy with most of the concepts. But I really adored the convenience of the three vim commands: dd,o,O
Hopefully you can tell me how to mirror them in emacs :)
dd - deletes whole line, including newline, no matter where the cursor is.
I found something similar to do the trick:...
I'm in ~/src
I can do
git grep _pattern_
and get a list of all *.cpp */hpp files that match this pattern
Now, I would like to go through all the files that match the pattern and make edits on them. How do I do this in vim? (basically I want vim to grew through my directory like git grep does, and jump me to the right files).
Thanks...
I'm using GVIM under Windows.
And want to map CAPSLOCK to Ctrl+^
Any way to do this?
Btw, I see tons of samples over the web how to swap CAPS and Esc using registry hack, but none of them use VIM map command, instead external tools and registry changes.
...
I am using vim 7.2 on windows 7 and sometimes the files are displayed wrongly. This typically happens when i scroll through the file. I have given links to images. In the first and the second one the file is displayed wrongly whereas in the last one it is displayed correctly(look near the cursor). The images are from a c++ file but this ...
Background task
To eliminate X-Y problems I'll say what I'm doing: I'm trying to use :perldo in VIM 7.2 to complete two tasks:
Clear all trailing whitespace, including (clearing not deleting) lines that only have whitespace
s/\s+$//;
Remove non-tab whitespace that exists before the first-non space character
s/^ (\s*) (?=\S) / s#[^\...
This is very similar to:
http://stackoverflow.com/questions/1681058/vim-auto-commands-writing-a-read-only-file
Except that in addition to the solution presented there, I want vim to only ask for confirmation if the file is still read-only.
In other words, if I do :w, I do not want vim to say that the file is read-only. It should autom...
I am editing packages that use Moose, and I was wondering if there were a plugin for making Moose attributes show up in the Tag List.
For example, in the following code, the attribute options does not show up in Tag_List, but print_out_site does:
use Moose;
use MooseX::AttributeHelpers;
...
has 'options' => (
metaclass => 'Collec...
Is there any way to make Vim/gVim highlight the right-margin at the current document? I have just begun to work with Vim for a while and I found it annoyed without the right-margin at column 80.
...
I code a lot of HTML and I'd like to map CTRL+> to > and CTRL+< to < respectively, to make it easier when typing out lots of text featuring those symbols.
After checking the Vim manual, I tried using imap <C->> >, imap <C-\>> > and even imap <C-S-.> > but so far I've had no success. Any ideas?
...
I'd like (g)vim to draw pipe symbol '|' on each 4th space of indentation to show something like vertical indentation line.
I found this plugin: http://vim.sourceforge.net/scripts/script.php?script_id=628
but it works only for 'tab'. I'm using spaces instead of the tabs.
My .vimrc contains:
set ts=4
set sw=4
set expandtab
set softtab...
All datatypes like int,long,char are highlighted automatically as soon as i type them in VIM.
But, there are few exceptions like pid_t,mode_t..
How do get them highlighted by default?
...
I am using macvim. Here is my settings.
if I am in a JavaScript file and if put my cursor at the left most position. Now if I do tab then I move two columns.
If I do the same in a ruby file then I move three columns. How do I fix that.
As you can see in my vimrc I am asking everything to be 2 columns.
Thanks. This is driving me craz...
I have a document with lots of <swf...>.....</swf> in it. I would like to remove all these. Using vi when i type
:%s/\<swf[^\/swf>]+\/swf\>//g
I was hoping this would work, but it doesn't match anything.
...