Rehi,

Changing SuperTab.vim fixed the problem, thank you very much. I have one more problem with omnicomplete usability. Given the following snippet, it completes the S<C-xC-o>creen( function but refuses to complete after p.W<C-xC-o>idth in main().

#include <iostream>

// A nonsense C file.

struct Rectangle
{
   unsigned short X,  Y;
   unsigned short Width, Height;
};

Rectangle Screen()
{
   Rectangle rec = { 0, 0, 1280, 1024 };
   return rec;
}

int main()
{
   Rectangle p;
   // some more editing here with cool omnicompletions.
}

Raimon Grau wrote:
Take a look at SuperTab plugin.

It catches the <c-x> and offers you "all" kind of completions. You'll
have to modify it to offer you <c-o>.   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 and installed ctags, created tags
file. Now I edit something press Ctrl-X in insert mode and get:

-- ^X++ mode (/^E/^Y/^L/^]/^F/^I/^K/^D/^V/^N/^P/n/p)

Where is "^O"? If I press Ctrl-O now, it waits for a normal mode
command. Please help me.

Here are some settings that might be of some interest:

:set omnifunc?
omnifunc=ccomplete#Complete

:set completeopt?
completeopt=menu,preview

:version
VIM - Vi IMproved 7.0e BETA (2006 Apr 16, compiled Apr 16 2006 20:43:17)
Skompilowany przez [EMAIL PROTECTED]
Normalna wersja z GTK2 GUI. Opcje włączone (+) lub nie (-):
-arabic +autocmd +balloon_eval +browse +builtin_terms +byte_offset
+cindent +clientserver
+clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv
-cscope +cursorshape
+dialog_con_gui +diff +digraphs +dnd -ebcdic -emacs_tags +eval +ex_extra
+extra_search -farsi
+file_in_path +find_in_path +folding -footer +fork() +gettext
-hangul_input +iconv +insert_expand
+jumplist -keymap -langmap +libcall +linebreak +lispindent +listcmds
+localmap +menu +mksession
+modify_fname +mouse +mouseshape -mouse_dec +mouse_gpm -mouse_jsbterm
-mouse_netterm +mouse_xterm
+multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra
-perl +postscript +printer
-profile -python +quickfix -rightleft -ruby +scrollbind +signs
+smartindent -sniff +statusline
-sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl
+terminfo +termresponse
+textobjects +title +toolbar +user_commands +vertsplit +virtualedit
+visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset
+xim +xsmp_interact
+xterm_clipboard -xterm_save
vimrc systemu: "$VIM/vimrc"
vimrc użytkownika: "$HOME/.vimrc"
exrc użytkownika: "$HOME/.exrc"
gvimrc systemu: "$VIM/gvimrc"
gvimrc użytkownika: "$HOME/.gvimrc"
systemowy plik menu: "$VIMRUNTIME/menu.vim"
odwet dla $VIM-a: "/usr/local/stow/vim7//share/vim"
Kompilacja: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-I/usr/include/gtk-2.0 -I/usr/lib/gtk
-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/gli
b-2.0 -I/usr/lib/glib-2.0/include -g -O2
Konsolidacja: gcc -L/usr/local/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_closetag.vim
/home/kyku/.vim/ftplugin/xml_closetag.vim
/home/kyku/.vim/ftplugin/eruby.vim
/home/kyku/.vim/ftplugin/ruby.vim
/home/kyku/.vim/autoload/netrwFileHandlers.vim
/home/kyku/.vim/autoload/netrwSettings.vim
/home/kyku/.vim/autoload/netrw.vim
/home/kyku/.vim/autoload/vimball.vim
/home/kyku/.vim/filetype.vim
/home/kyku/.vim/compiler/eruby.vim
/home/kyku/.vim/compiler/ruby.vim
/home/kyku/.vim/compiler/rubyunit.vim
/home/kyku/.vim/indent/eruby.vim
/home/kyku/.vim/indent/ruby.vim
/home/kyku/.vim/indent/php.vim
/home/kyku/.vim/plugin/quotes.vim
/home/kyku/.vim/plugin/a.vim
/home/kyku/.vim/plugin/netrwPlugin.vim
/home/kyku/.vim/plugin/themes.vim
/home/kyku/.vim/plugin/cd.vim
/home/kyku/.vim/plugin/mru.vim
/home/kyku/.vim/plugin/GetLatestVimScripts.vim
/home/kyku/.vim/plugin/ShowFunc.vim
/home/kyku/.vim/plugin/vimballPlugin.vim
/home/kyku/.vim/plugin/SuperTab.vim
/home/kyku/.vim/plugin/totd.vim
/home/kyku/.vim/GetLatest/cd.vim
/home/kyku/.vim/GetLatest/mru.vim
/home/kyku/.vim/GetLatest/SearchComplete.vim
/home/kyku/.vim/GetLatest/SuperTab.vim
/home/kyku/.vim/syntax/eruby.vim
/home/kyku/.vim/syntax/ruby.vim
/home/kyku/.vim/syntax/netrwlist.vim
/home/kyku/.vim/ftdetect/ruby.vim






--
Vi is clearly superior to emacs, since "vi" has only two characters (and two keystrokes), while "emacs" has five. (Randy C. Ford)

Reply via email to