On Wednesday, July 4, 2018 at 5:08:51 AM UTC-7, David Fishburn wrote:
> On Tue, Jul 3, 2018 at 11:55 PM 'Ameesh Oza' via vim_use <vim...@googlegroups.com> wrote:
> On Tuesday, July 3, 2018 at 7:21:27 PM UTC-7, David Fishburn wrote:
> 
> > On Tue, Jul 3, 2018 at 8:59 PM 'Ameesh Oza' via vim_use <vim...@googlegroups.com> wrote:
> 
> > I am trying to use syntax completion for two separate languages on Linux, say A & B. I have these directories
> 
> > 
> 
> > 
> 
> > ...
> 
> >  Syntax highlighting works for both languages without problems. But syntax completion (^X^O) works for only one, even though the ftdetect vim files for both look 
> 
> > 
> 
> > 
> 
> > 
> 
> > ...
> 
> > When you indicate it works for only one what does that exactly mean?
> 
> > Does the completion window open for only 1 language?
> 
> Yes only for 1 language
> 
> > Does the completion window open for both, but have the same values for both languages? 
> 
> > 
> 
> > 
> 
> > Can you be a bit more descriptive.
> 
> > 
> 
> > 
> 
> > Also, what commands did you execute to setup the syntax completion for each buffer?
> 
> > Are you using autocommands to do it?
> 
> 
> 
> Yes. In both ftdetect vim files I have
> 
> 
> 
> if has("autocmd") && exists("+omnifunc")
> 
>   autocmd Filetype *
> 
>           \     if &omnifunc == "" |
> 
>           \             setlocal omnifunc=syntaxcomplete#Complete |
> 
>           \     endif
> 
> endif
> 
> 
> 
> 
> 
> You didn't answer all the questions.
> Also, can you provide the :version output. 
: version output
:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jul 24 2015 02:22:44)
Included patches: 1-207, 209-629
Modified by <bugzilla@redhat.com>
Compiled by <bugzilla@redhat.com>
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl             +dialog_con_gui  +insert_expand   +mouse_sgr       -ruby            +vertsplit
+arabic          +diff            +jumplist        -mouse_sysmouse  +scrollbind      +virtualedit
+autocmd         +digraphs        +keymap          +mouse_urxvt     +signs           +visual
+balloon_eval    +dnd             +langmap         +mouse_xterm     +smartindent     +visualextra
+browse          -ebcdic          +libcall         +multi_byte      -sniff           +viminfo
++builtin_terms  +emacs_tags      +linebreak       +multi_lang      +startuptime     +vreplace
+byte_offset     +eval            +lispindent      -mzscheme        +statusline      +wildignore
+cindent         +ex_extra        +listcmds        +netbeans_intg   -sun_workshop    +wildmenu
+clientserver    +extra_search    +localmap        +path_extra      +syntax          +windows
+clipboard       +farsi           -lua             +perl            +tag_binary      +writebackup
+cmdline_compl   +file_in_path    +menu            +persistent_undo +tag_old_static  +X11
+cmdline_hist    +find_in_path    +mksession       +postscript      -tag_any_white   -xfontset
+cmdline_info    +float           +modify_fname    +printer         -tcl             +xim
+comments        +folding         +mouse           +profile         +terminfo        +xsmp_interact
+conceal         -footer          +mouseshape      +python/dyn      +termresponse    +xterm_clipboard
+cryptv          +fork()          +mouse_dec       -python3         +textobjects     -xterm_save
+cscope          +gettext         +mouse_gpm       +quickfix        +title           +xpm
+cursorbind      -hangul_input    -mouse_jsbterm   +reltime         +toolbar
+cursorshape     +iconv           +mouse_netterm   +rightleft       +user_commands
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "/etc/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/etc"
 f-b for $VIMRUNTIME: "/usr/share/vim/vim74"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/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/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/lib
png12     -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SO
URCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-E -Wl,-rpath,/usr/lib64/perl5/CORE   -L/usr/local/lib -Wl,--as-needed -o vim   -pthread -lgtk-x
11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfre
etype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -lSM -lICE -lXpm -lXt -lX11 -lSM -lI
CE  -lm -lnsl  -lselinux  -ltinfo -lacl -lattr -lgpm   -Wl,-E -Wl,-rpath,/usr/lib64/perl5/CORE  -fstack-protector
-L/usr/lib64/perl5/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
My completion window opens for only one language. For other language. I get message  -- Omni completion (^O^N^P) Pattern not found. But syntax highlighting works for second language.
-- 
-- 
You received this message from the "vim_use" 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
--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thursday, July 5, 2018
Subscribe to:
Post Comments (Atom)
 
No comments:
Post a Comment