Skip to content

kibook/vim-s1000d-omnicomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

These are a set of OmniComplete dictionaries and scripts for Vim to enable schema-aware auto-complete for S1000D XML. They are generated automatically from the official S1000D XML schemas.

Screenshot

Installing

This repository includes pre-built Omnicomplete dictionaries for S1000D Issue 2.3 thru 6. To install them, copy the contents of the vim directory to your Vim configuration directory (e.g., ~/.vim).

For example, after installation, your Vim directory would look like this:

...
~/.vim/autoload/xml/S1000D_[...]_[...].vim
...
~/.vim/ftdetect/S1000D.vim
...

Using

Omnicomplete demo

To enable Omni completion in Vim, refer to https://vim.fandom.com/wiki/Omni_completion. The default method of activating Omnicomplete is using ^X^O (Ctrl-X Ctrl-O) in Insert mode.

Building

Requirements:

  • S1000D XML schemas
  • xsltproc (part of libxml2)

To rebuild the Omnicomplete dictionaries from the S1000D XML schemas:

  1. Download the required S1000D XML schemas from http://s1000d.org/Downloads/Pages/S1000DDownloads.aspx

  2. Copy the S1000D XML schemas to the provided schemas directory, using the following path structure:

    schemas/S1000D_[major]-[minor]/xml_schema_flat/[schema].xsd
    

    For example:

    schemas/S1000D_6/xml_schema_flat/comrep.xsd
    schemas/S1000D_5-0/xml_schema_flat/proced.xsd
    schemas/S1000D_4-1/xml_schema_flat/descript.xsd
    schemas/S1000D_3-0/xml_schema_flat/fault.xsd
    
  3. Run ./build.sh

About

Vim Omnicomplete dictionaries for S1000D

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published