Giter VIP home page Giter VIP logo

vim-xci's Introduction

vim-xci

Vim plugin to support syntax highlighting for the XCI game engine software development kit configuration language for the Commander X16 retro computer.

Installation

  • Vundle

      Plugin 'jestin/vim-xci'
    
  • vim-pathogen

      cd ~/.vim/bundle && \
      git clone https://github.com/jestin/vim-xci --depth 1
    
  • vim-plug

      Plug 'jestin/vim-xci'
      :PlugInstall
    
  • Or manually, clone this plugin to path/to/this_plugin, and add it to rtp in vimrc

      set rtp+=path/to/this_plugin
    

Configuration

Due to issues with different version of vim and different package managers, and different .vimrc files, there may be issues with the filetype detection of the .xci files. A simple way to ensure that vim properly detects .xci files is by use of an autocommand:

	autocmd BufRead,BufNewFile *.xci set filetype=xci

Placing the above code in .vimrc should force the filetype to detect properly.

Features

Not only does this plugin provide typical syntax highlighting, but it also comes with a special hex_tile filetype that will attempt to highlight hexidecimal tile and sprite data as to mimic the colors in the default XCI palette:

To use this feature, simply open a hex file and use the command :setfiletype hex_tile.

To change the colors to use a different palette, you will need to redefine the colors of the highlight groups in vim using the highlight command:

	highlight hexTileCol3 ctermbg=cyan guibg=cyan

There is a separate highlight group for each hex character. They are:

  • hexTileCol0
  • hexTileCol1
  • hexTileCol2
  • hexTileCol3
  • hexTileCol4
  • hexTileCol5
  • hexTileCol6
  • hexTileCol7
  • hexTileCol8
  • hexTileCol9
  • hexTileColA
  • hexTileColB
  • hexTileColC
  • hexTileColD
  • hexTileColE
  • hexTileColF

Screenshots

vim-xci's People

Contributors

jestin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.