Giter Club home page Giter Club logo

vim-s1000d-omnicomplete's Introduction

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 5.0. 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_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 sh build.sh

vim-s1000d-omnicomplete's People

Contributors

kibook avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

vim-s1000d-omnicomplete's Issues

warning: failed to load external entity "schemas/*/xml_schema_flat/*"

Trying to build this on Linux Mint, and I get this error message:

Converting schemas/ * /xml_schema_flat/* to vim/autoload/xml/_.vim...
warning: failed to load external entity "schemas/ * /xml_schema_flat/"
unable to parse schemas/ * /xml_schema_flat/

-:1: parser error : Document is empty

^
unable to parse -

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.