diff options
Diffstat (limited to 'runtime/ftplugin/xml.vim')
-rw-r--r-- | runtime/ftplugin/xml.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/ftplugin/xml.vim b/runtime/ftplugin/xml.vim index 7bde8e724..8cff53776 100644 --- a/runtime/ftplugin/xml.vim +++ b/runtime/ftplugin/xml.vim @@ -32,6 +32,15 @@ if exists("loaded_matchit") \ '<\@<=\%([^ \t>/]\+\)\%(\s\+[^/>]*\|$\):/>' endif +" +" For Omni completion, by Mikolaj Machowski. +if exists('&ofu') + setlocal ofu=xmlcomplete#CompleteTags +endif +command! -nargs=+ XMLns call xmlcomplete#CreateConnection(<f-args>) +command! -nargs=? XMLent call xmlcomplete#CreateEntConnection(<f-args>) + + " Change the :browse e filter to primarily show xml-related files. if has("gui_win32") let b:browsefilter="XML Files (*.xml)\t*.xml\n" . |