GithubHelp home page GithubHelp logo

nickchahley / i3config.vim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mboughaba/i3config.vim

0.0 1.0 0.0 1.66 MB

Vim syntax highlighting for i3 config :point_left:

License: MIT License

Vim Script 100.00%

i3config.vim's Introduction

i3config.vim - vim i3 config syntax highlighting

This file contains the syntax highlighting that I use for i3 config in Vim. Compared to the vim standard conf syntax highlighting, i3config adds highlighting of all keywords, types and options as defined in the i3 configuration manual.

I built this based on the current specification provided (as of Sat 12 Mar 2016) in:

http://i3wm.org/docs/userguide.html#configuring

Screenshot using vim color scheme dracula using Powerline font ProFont for Powerline

Features

i3config does what a syntax highlighting would do and additionally provides some sort of syntax checking. If you end up with Bold Red lines in your i3 config file this would mean that your syntax is wrong or there is an issue in the plugin. If that is the case please report the issue and/or make a pull request to cover the case.

File type detection

There is no specific extension for i3 config file. For auto detection, the recommended method is to rename your file to something like:

  • .i3.config
  • i3.config
  • something.i3config
  • something.i3.config

This way you can keep your file clean somewhere in a dotfile repository and have it symlinked to ~/.i3/config

If you don't want to, then you can always do:

:set ft=i3config

or

:set filetype=i3config

Installation instructions

Follow one of the steps below and reload vim afterwards.

Vundle

Install using vundle by adding

Plugin 'mboughaba/i3config.vim'

to .vimrc and run :PluginInstall.

I use Vundle myself, the two steps below may not be fully correct, you need to change them to fit your needs.

Git submodule + Pathogen

If you have pathogen installed, and you prefer to use git submodules, run

cd ~/.vim
git submodule add https://github.com/mboughaba/i3config.vim.git bundle/syntax/

Manual installation

If you don't have either Vundle or Pathogen installed, copy both i3config.vim file to .vim/after/syntax and .vim/after/ftdetect respectively.

git clone https://github.com/mboughaba/i3config.git /tmp/i3config.vim
mkdir -p ~/.vim/after/syntax/
mv /tmp/i3config.vim/after/syntax/i3config.vim ~/.vim/after/syntax/i3config.vim
rm -rf /tmp/i3config.vim

Inspired by

What about PotatoesMaster/i3-vim-syntax

PotatoesMaster/i3-vim-syntax was the one I used in the past. But as the maintainer himself pointed out, there are some issues and a rewrite is needed.

Contribution

Feel free to make a pull request, I will integrate it when time permits. Make sure to add a line to cover your test in the test.i3config.

Background information

Author

Mohamed Boughaba

Development is done at: https://github.com/mboughaba/i3config.vim

License

MIT

i3config.vim's People

Contributors

mboughaba avatar bssb avatar codebork avatar jihbuomj avatar mitchpaulus avatar

Watchers

Nick Chahley 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.