Redirecting to open tabs.

2006-06-23 Thread Kyku
Hi, I wonder if following is possible. Let's say I have opened two tabs with file.c and file.h. I navigate through file.h, jump to some tag located in file.c, and the file.c replaces file.h in the current tab. 1) How to do that the tab with file.c became active instead? 2) Open new files in the

Re: regexp question

2006-05-31 Thread Kyku
Ling F. Zhang wrote: I have this question working in vi, but I suppose it's generally enought for all regexp. How do I match across line? I would like to find the end to a sentence by looking for \.$^[A-Z], but it doesn't work. What is the correct way of match across two different lines. How abo

Something's not working here.

2006-04-30 Thread Kyku
Hello, I get a SEGV signal after doing the following in Vim 7.0f05 under Linux (both console and gtk2): 1) start vim 2) :tab help 3) :bd Yours, Kyku

Re: C++ omnicomplete modification.

2006-04-27 Thread Kyku
Neil Bird wrote: Around about 25/04/06 17:11, Bram Moolenaar typed ... Perhaps someone wants to make a cpp completion script? I rather not add all kinds of C++ stuff to the C completion, it will get messy. How many more additions would be needed? Any ideas, anyone? Hello, Certainly the

Re: C++ omnicomplete modification.

2006-04-25 Thread Kyku
Neil Bird wrote: Around about 25/04/06 10:24, Kyku typed ... If you want omnicopletion to work for C++ classes, structs and unions, you can insert the following small code snippet after line 406 of $VIMRUNTIME/autoload/ccomplete.vim: Line 406 of which version? What lines should it come

Re: C++ omnicomplete modification.

2006-04-25 Thread Kyku
Hello, this could be quite interesting, but I'd need to learn Vim's scripting language first. Mikolaj Machowski wrote: Dnia wtorek, 25 kwietnia 2006 11:24, Kyku napisaƂ: Hello, Brave C++ Coders. If you want omnicopletion to work for C++ classes, structs and unions, you can

C++ omnicomplete modification.

2006-04-25 Thread Kyku
Hello, Brave C++ Coders. If you want omnicopletion to work for C++ classes, structs and unions, you can insert the following small code snippet after line 406 of $VIMRUNTIME/autoload/ccomplete.vim: if &filetype == 'cpp' let type2name = {'c': 'class', 's': 'struct', 'u': 'union'}

Re: showing C declarations

2006-04-25 Thread Kyku
[EMAIL PROTECTED] wrote: Is there any vim plugin that shows a function declaration if I type the function name? For example, if I type "memset(" it should show the memset function declaration (at least its type of arguments). Thanks, Malahal. Hello, as is Vim doesn't seem to support call-ti

Re: Need help with omnicompletions

2006-04-24 Thread Kyku
es to ccomplete.vim. You will lose nothing when editing normal C files. Bram Moolenaar wrote: Kyku - I wrote this pseudo-code ONLY for C++/./ If we're not dealing with C++ then the code simply doesn't execute, and you get the old behavior, so the completion WILL FAIL in C. Defining vari

Re: Need help with omnicompletions

2006-04-24 Thread Kyku
s a well-established language feature that is used by almost all C++ programmers. Why do you call this a bug? Bram Moolenaar wrote: Kyku wrote: Ok, using the old saying "Use the force, read the source" I browsed ccomplete.vim a little. If I knew Vim scripting a little, I'd do the

Re: Need help with omnicompletions

2006-04-24 Thread Kyku
7;s': kind2name = {'c': 'class', 'u': 'union', 's': 'struct'} call StructMembers for kind2name[item['kind']] . ':' . tokens[tidx] That should do the trick. What do you think? Bram Moolenaar wrote: Kyku wrote:

Re: Need help with omnicompletions

2006-04-24 Thread Kyku
quot;struct" before foo. Bram Moolenaar wrote: Kyku - In fact, it is a C++ program, as #include might suggest. The comment should say "A nonsense C++ file", sorry. In C++ one doesn't need to write 'class', 'struct' or 'union' in variables

Re: Need help with omnicompletions

2006-04-24 Thread Kyku
t support C++ yet? 10e15 C++ users in this galaxy are rather disappointed ;-) Keep up good work with Vim. Bram Moolenaar wrote: Kyku wrote: Changing SuperTab.vim fixed the problem, thank you very much. I have one more problem with omnicomplete usability. Given the following snippet,

Re: Need help with omnicompletions

2006-04-23 Thread Kyku
offers you "all" kind of completions. You'll have to modify it to offer you . It worked for me HTH, On 4/23/06, Kyku <[EMAIL PROTECTED]> wrote: Hello all, My main problem is that, well, it doesn't work. I've followed instructions in :he ft-c-omni: patched an

Need help with omnicompletions

2006-04-23 Thread Kyku
al/lib -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lXt -lncurses -l acl -lgpm My extensions: /home/kyku/.vim/ftplugin/php_abb.vim /home/kyku/.vim/ftplugin/ruby_macros.vim /home/kyku/.vim/ftplugin/html