On Thu, Jan 13, 2011 at 5:59 AM, Lech Lorens <[email protected]> wrote:
> On 10-Jan-2011 baumann Pan <[email protected]> wrote:
>> First,
>> sorry for repeating the email  because I am not writing on google
>> groups( to do that i have to bypass china firewall which cause the
>> bandwith too slow).
>> so I write the mail directly from gmail.
>> and I did not get the email  i wrote in the vim-user, vim-dev list, I
>> repeat sending the mail.
>
> I didn't bother to try to find out what country you were posting from.
> I'm sorry for the troubles you are having with internet access in China.
> And I'm sorry for making a fuss about your emails then.
>
>> On Mon, Jan 10, 2011 at 1:47 AM, Lech Lorens <[email protected]> wrote:
>> > On 07-Jan-2011 "baumann@pan" <[email protected]> wrote:
>> >> Hi All, I found an problem with omni completion.
>> > […]
>> >
>> > Works fine for me.
>> > I think you will have to compare the working scenario with the faulty
>> do you install omnicppcomplete plugin the script id 1520?
>
> I didn't install any additional plugin to make omni completion work for
> C.
>
>> if the plugin installed. it's ok for me too.
>> if not. a) on windows, the gvim works but vim launched from cmd shell
>> won't.( same files, same tag file)
>> b) on ubuntu, either gvim or vim from shell will work.
>> the ccomplte.vim is of 2010 Mar 23 by Bram Moolenaar.
>
> I didn't get that after reading your first email. So as to avoid further
> misunderstandings, can you - please - answer each of the following
> questions in turn? Please, confirm if I get the facts correctly:
> - omni completion works correctly on Ubuntu and in gvim on Windows,
no, just gvim works on windows. not on ubuntu.

> - on Windows under console you get the completion from "X->" to
>  "X->undo" (or to "X->undo->"), but you get no completion for
>  "X->undo->".
it's ok now. i forget what i have changed in these days.
but on ubuntu i found the problem.
after i change my  tags option in ~/.vimrc
from set tags=tags;/
to set tags=tags_in_my_current_dir_with_full_path
it works for embedded(or multi-tier) completion.


but with set tags=tags;/
i don't need to set tags+=other_tags_in_other_project_dir.
i can jump to the tags interested.

I see my _vimrc file in windows has set tags=tags;/ but it works on windows.

>
> Now, tell me what versions of gvim and console vim under Windows you
> are running. Open both, they should display the version on the splash
> screen (execute ":version" if they don't). E.g. vim I got with my Ubuntu
> says it's version 7.2.330.
1 gvim on windows dipslays the version is:
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 27 2010 17:59:02)
when double click the gvim7.3 icon it displays vim 7.3.46

2 vim on windows displays it is:
:version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 27 2010 17:51:38)
MS-Windows 32 bit console version
include patch: 1-46

when run the cmd first, and type vim
it displays the version 7.3.46

3 gvim 7.3 on ubuntu compiled by me(vim 7.3 is not released in any
latest version of ubuntu)
:version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jan  5 2011 04:50:35)
Compiled by phage
Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
+cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments +conceal +cryptv +cscope +cursorbind +cursorshape
+dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra
+extra_search +farsi +file_in_path +find_in_path +float +folding -footer
+fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap
+langmap +libcall +linebreak +lispindent +listcmds +localmap -lua +menu
+mksession +modify_fname +mouse +mouseshape +mouse_dec -mouse_gpm
-mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte
+multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra +perl
+persistent_undo +postscript +printer +profile -python -python3 +quickfix
+reltime +rightleft -ruby +scrollbind +signs +smartindent +sniff
+startuptime +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
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -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/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr
/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -
I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -D
ORBIT2=1 -pthread -D_REENTRANT -I/usr/include/libgnomeui-2.0 -I/usr/include/
libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/incl
ude/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanva
s-2.0 -I/usr/include/gtk-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gn
ome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0 -I/usr
/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0 -
I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 -I/usr/include/pa
ngo-1.0 -I/usr/include/gail-1.0 -I/usr/include/freetype2 -I/usr/include/atk-
1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/gio-unix-
2.0/ -I/usr/include/pixman-1 -I/usr/include/libpng12     -g -O2 -I/usr/inclu
de/libgnomeui-2.0/ -D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-E   -L/usr/local/lib -o vim   -pthread -lgtk-x11-2.0 -lg
dk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-
2.0 -lm -lcairo -lpng12 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -l
gmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0     -lgnomeui-2 -lbonoboui-2 -lgno
mevfs-2 -lgnomecanvas-2 -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lOR
Bit-2 -lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft
2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpango-1.0 -lfreetype -
lfontconfig -lpng12 -lgconf-2 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt
-lglib-2.0   -lXt -lSM -lICE -lm -lncurses -Wl,-E  -fstack-protector -L/usr
/local/lib  -L/usr/lib/perl/5.10/CORE -lperl -ldl -lm -lpthread -lcrypt






4 vim 7.3 on ubuntu compiled by me
phage@ubuntu:~/Desktop/net-snmp-5.6$  /usr/local/bin/vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jan  5 2011 04:50:35)
Compiled by phage
Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff
+digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi
+file_in_path +find_in_path +float +folding -footer +fork() +gettext
-hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall
+linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname
+mouse +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm
-mouse_sysmouse +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg
-osfiletype +path_extra +perl +persistent_undo +postscript +printer +profile
-python -python3 +quickfix +reltime +rightleft -ruby +scrollbind +signs
+smartindent +sniff +startuptime +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
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-pthread -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/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12   -DORBIT2=1 -pthread
-D_REENTRANT -I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0
-I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1
-I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0
-I/usr/include/libxml2 -I/usr/include/pango-1.0
-I/usr/include/gail-1.0 -I/usr/include/freetype2
-I/usr/include/atk-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo
-I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1
-I/usr/include/libpng12     -g -O2 -I/usr/include/libgnomeui-2.0/
-D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-E   -L/usr/local/lib -o vim   -pthread
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
-lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng12 -lpango-1.0
-lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt
-lglib-2.0     -lgnomeui-2 -lbonoboui-2 -lgnomevfs-2 -lgnomecanvas-2
-lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lORBit-2 -lart_lgpl_2
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
-lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpango-1.0 -lfreetype
-lfontconfig -lpng12 -lgconf-2 -lgmodule-2.0 -lgobject-2.0
-lgthread-2.0 -lrt -lglib-2.0   -lXt -lSM -lICE -lm -lncurses -Wl,-E
-fstack-protector -L/usr/local/lib  -L/usr/lib/perl/5.10/CORE -lperl
-ldl -lm -lpthread -lcrypt



>
> Let's analyse console vim on Windows. For "X->" do you get completion to
> "X->undo" or to "X->undo->"?
get completion to X->undo->
>
> Do you get any messages (some error indication in the status line?) if
> you try to complete "X->undo->"?
no

>
> Are you sure that console vim and gvim on Windows use the same runtime
> files? Can you verify this? First check what output ":echo $VIMRUNTIME"
> in gvim and console vim produces.
>
> Now, compare the contents of $VIMRUNTIME/autoload/ccomplete.vim. To do
> so, please, open vim (and gvim) without editing any files in it. Once
> you do, type:
> :e $VIMRUNTIME/autoload/ccomplete.vim
> and press Enter.
>
> Are the script versions the same for console vim and gvim?
>
> --
> Cheers,
> Lech
>

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui