Question

At the moment I have to write a lot of HTML stuff (unfortunately). Vim is my favorite editor/IDE for almost everything. I'm using the 'omni completion' plugin for code completion, which works really fine with python and php. It also works with HTML, however it uses upper case HTML tags which is really annoying.

Is there a way to tell vim or omni completion that upper case HTML are completely of limits.

enter image description here

Was it helpful?

Solution

It should only offer uppercase tag names if your typed tag starts with uppercase characters.

There's the following code in $VIMRUNTIME/autoload/htmlcomplete.vim:

if &filetype == 'html' && exists("uppercase_tag")

So one workaround would be switching the filetype to xml (but then it doesn't know about all HTML tags, only existing in the document), or you can modify the script and put your copy to ~/.vim/autoload/htmlcomplete.vim, so that it will override the default one.

OTHER TIPS

I have just found why the same issue has occured in my setup. I used to believe that it must be one of the remote plugins. In fact, it was the ignorecase option. It does not matter if you have enabled smartcase. Simply run se noic or set noignorecase.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top