Giter Site home page Giter Site logo

i3-vim-syntax's Introduction

⚠️ This syntax file is not maintained anymore. Feel free to take over or try some alternative (eg: i3config.vim).


This is a Vim syntax file for i3 config file.

Screenshot

Using it

You can install it using a Vim plugin manager (Vundle, Pathogen, …) or just by putting i3.vim in your ~/.vim/syntax directory.

I recommend you to add # vim:filetype=i3 at the end of your i3 config file, unless you really want to type :set filetype=i3 every time you edit this file.

i3-vim-syntax's People

Contributors

ashinkarov avatar davewongillies avatar dylanwh avatar ericdwang avatar ilpianista avatar jck avatar mvrma avatar olivia5k avatar potatoesmaster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

i3-vim-syntax's Issues

h and v are highlighted out of context

h and v are properly highlighted when used as abbreviations for "horizontal" and "vertical" respectively, but are incorrectly highlighted when used to reference the "h" and "v" keys.

Syntax file rewrite

The syntax file needs a rewrite, for several reasons:

  • The current highlighting does not take account of the context (Are we in the middle of a command? In a binding declaration?). I use syn region for exec commands and string and nextgroup= at several places, but it does not work that well as of now and need to be rethought.
  • client.* keywords are not highlighted, because client itself is a keyword and take precedence.
  • Command scopes are ignored.

i3 generate its syntax from custom files, parsed by a perl script (spec files, script). These files could be used to generate a syntax file.

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.