Tuesday, July 3, 2018

Syntax Completion works only for one language

I am trying to use syntax completion for two separate languages on Linux, say A & B. I have these directories

.vim/ftdetect/A.vim
.vim/syntax/A.vim
.vim/ftdetect/B.vm
.vim/syntax/B.vim

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 very similar.

I have no other files or directories in my .vim directory. I also have a .vimrc
file that looks like

:set nocompatible
:filetype on
:filetype plugin on
:cmap Et tabedit
":set viewoptions-=options
":autocmd BufWinLeave *.* mkview
":autocmd BufWinEnter *.* silent loadview
:set tags+=tags,~/.vim/tags
:set foldmethod=indent
:set ts=2 ai ic

Any suggestions are welcome.

--
--
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.

No comments: