Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8419599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:39:30+00:00 2026-06-10T02:39:30+00:00

Ive been trying to get the VIM auto completion working, but am running into

  • 0

Ive been trying to get the VIM auto completion working, but am running into issues unfortunately.

Right now I tried just starting with the basics. trying to get the auto completion to work on HTML documents first. But even this is becoming an issue.

I set the correct DOCTYPE, and have even specified different ones to see if it will work on Transitional, or Strict, or even XHTML or HTML5, but none are seeming to work.

The htmlcomplete.vim file is indeed in the “autoload” directory.

In my vimrc file, the correct setting is applied:

filetype plugin indent on

But still this isn’t working, and no amount of research is helping me, because the only relevant results are issues with C++ auto completion, in VIM. (which vim does not fully support at this time, but it DOES support HTML auto completion, as I know because I have had it work on multiple instances of different systems before.)

What do you guys think I should do next? Im not sure where I should go from here..

No matter what, when I use the “omni completion” option. AKA (Ctrl+X, Ctrl+O), it always says:

Omni Completion (^O^N^P) Pattern not found

The syntax highlighting works by default without even using:

:syntax on/:syntax enable

it just recognizes by the filetype as it should. so that works.
The indentation has started working ever since I uncommented the “filetype plugin indent on”. but I just cant get this to work correctly.

But maybe, I am missing the point here, and thinking about this the wrong way. So please correct me if I am wrong.
What function I am looking for, is when I type “<” it will automatically bring up a drop down list with all the tags it could be, and say I type “<” it will further refine to “div”, etc. This is the functionality I am used to in Vim, without any configuring, just by default.

When I use the command “Ctrl+N” or “Ctrl+P” I get a very small (12 tags) list of possible tags, but that is manual, and not automatically detecting the typed “<“.

Am I looking at the wrong thing? Is Omni Completion not the right option I should be looking at configuring? Or was this a different plugin to provide this functionality?

Whenever I look into it, it always refers to “Ctrl+X + Ctrl+O” as the syntax auto completion, so I assumed this is the feature I have come to know. but maybe I am wrong.

So can someone help to explain this better to me, point me in the right direction. Or let me know I am on the right path (if I am) and help me fix this issue?

Thank you guys.
Take care.

As requested here is the information:

The vimrc file is here: http://pastebin.com/QfUDVvdP

My version is 7.3 (aka vim73)

I am using the CLI version, as I find GVIM actually more confusing. but I have both. and they use the same vim runtime.

I have not added any more plugins or extra feautres, as this is a fresh install on Ubuntu 12.04, which is also a fresh install. The only thing that has been altered or added is “smali.vim” syntax highlighting to syntax folder, as well as opa.vim, and opajs.vim. also opacomplete.vim to autoload.

there is vimrc, and vimrc.tiny, as well as gvimrc in /etc/vim/ folder.

and all the files for vim are located in the default directory, /usr/share/vim/vim73/ and /usr/share/vim/. None of the files are moved, changed, or altered besides what was already specified.

hope that helps.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:39:32+00:00Added an answer on June 10, 2026 at 2:39 am

    First of all, Omni Completion never worked (or works) automatically. You said popup should appear when you insert ‘<‘ – this is not working in Vim by default. You have to press Ctrl X O combination. At least it is not working for me.

    http://vimdoc.sourceforge.net/htmldoc/version7.html#new-omni-completion

    I guess you have a plugin for that or something. It’s not hard to implement it. Start Vim without loading any plugins to check it out. Anyway, to the question.

    Many folks do not know, that Vim 7+ has decent support for XML/XHTML/HTML languages (no plugins needed!) with possibilities to extend it with any XML-based language you want. What you can do is to use DTD/RNG converters that prepares Vim definition which is used to give you omni completion.

    For example, my Vim installation contains support for HTML4 and XHTML languages by default:

    $ rpm -ql vim vim-common | grep xml
    /usr/share/vim/vim73/autoload/xml
    /usr/share/vim/vim73/autoload/xml/html32.vim
    /usr/share/vim/vim73/autoload/xml/html401f.vim
    /usr/share/vim/vim73/autoload/xml/html401s.vim
    /usr/share/vim/vim73/autoload/xml/html401t.vim
    /usr/share/vim/vim73/autoload/xml/html40f.vim
    /usr/share/vim/vim73/autoload/xml/html40s.vim
    /usr/share/vim/vim73/autoload/xml/html40t.vim
    /usr/share/vim/vim73/autoload/xml/xhtml10f.vim
    /usr/share/vim/vim73/autoload/xml/xhtml10s.vim
    /usr/share/vim/vim73/autoload/xml/xhtml10t.vim
    /usr/share/vim/vim73/autoload/xml/xhtml11.vim
    /usr/share/vim/vim73/autoload/xml/xsd.vim
    /usr/share/vim/vim73/autoload/xml/xsl.vim
    /usr/share/vim/vim73/autoload/xmlcomplete.vim
    /usr/share/vim/vim73/compiler/xmllint.vim
    /usr/share/vim/vim73/compiler/xmlwf.vim
    /usr/share/vim/vim73/ftplugin/xml.vim
    /usr/share/vim/vim73/indent/xml.vim
    /usr/share/vim/vim73/syntax/docbkxml.vim
    /usr/share/vim/vim73/syntax/xml.vim
    

    The trick is Vim’s autoloading feature. You need to make sure the file you are opening has the proper DOCTYPE definition which is correct. So use that for HTML and XHTML files, then Vim 7+ will automatically enable XML/HTML omni completion for you. Example for HTML4:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                          "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    </html>
    

    Now try to insert body tag, type “bo” and hit Ctrl X O. Bang. Try to add an attribute, type “on” and hit it again. Bingo.

    You can use Ctrl X O and other features:

    • after “<” complete the tag name, depending on context
    • inside of a tag complete proper attributes
    • when an attribute has a limited number of possible values help to complete
      them
    • complete names of entities (defined in |xml-omni-datafile| and in the
      current file with ”
    • when used after ”

    More info (and possible user customization with own XML definitioins) here:

    http://vimdoc.sourceforge.net/htmldoc/insert.html#ft-xml-omni

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ive been trying for a while now to get a rich textbox to populate
Ive been trying unsuccessfully for a few days now to get a button to
I've been trying to get styling working on site uncookedblog.com for hours now. I
I've been trying to get this working for a while now and am just
Ive been trying to get this solved for quite a few hours, but I
Ive been trying to get a listview working within a fragment all day. I
Ive been trying to get an example Web Service working using SpringWS and Tomcat5.5
Hi guys ive been trying to get smooth scrolling working on my anchors for
Ive been trying to get this to work but it keeps giving me an
Ive been trying to debug this for hours but I was unable to get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.