All Projects â†’ mboughaba â†’ I3config.vim

mboughaba / I3config.vim

Licence: mit
Vim syntax highlighting for i3 config 👈

Projects that are alternatives of or similar to I3config.vim

Atsynedit
Multi-line editor control, with syntax highlighting, for Lazarus
Stars: ✭ 92 (-20.69%)
Mutual labels:  syntax-highlighting
I3 Autodisplay
i3wm multiple monitors auto configuration
Stars: ✭ 104 (-10.34%)
Mutual labels:  i3
Rdf.sh
A multi-tool shell script for doing Semantic Web jobs on the command line.
Stars: ✭ 109 (-6.03%)
Mutual labels:  syntax-highlighting
Pythonimproved
The best Python language definition for Sublime Text - ever. Includes full support for Unicode, as well as both Python 2 and Python 3 syntax. Check out the Neon Color Scheme for highlighting.
Stars: ✭ 95 (-18.1%)
Mutual labels:  syntax-highlighting
I3lock Fancy Rapid
A faster implementation of i3lock-fancy.
Stars: ✭ 102 (-12.07%)
Mutual labels:  i3
I3wsr
Change i3-wm workspace names based on content
Stars: ✭ 107 (-7.76%)
Mutual labels:  i3
Connmap
connmap is an X11 desktop widget that shows location of your current network peers on a world map (tested only with i3wm). Made with C and libcairo.
Stars: ✭ 90 (-22.41%)
Mutual labels:  i3
Dotfiles
If there is a shell, there is a way!
Stars: ✭ 112 (-3.45%)
Mutual labels:  i3
Delphi Preview Handler
Preview handler for multiple source code extensions
Stars: ✭ 103 (-11.21%)
Mutual labels:  syntax-highlighting
Splash
A fast, lightweight and flexible Swift syntax highlighter for blogs, tools and fun!
Stars: ✭ 1,529 (+1218.1%)
Mutual labels:  syntax-highlighting
Litecli
CLI for SQLite Databases with auto-completion and syntax highlighting
Stars: ✭ 1,334 (+1050%)
Mutual labels:  syntax-highlighting
Mycli
A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
Stars: ✭ 10,059 (+8571.55%)
Mutual labels:  syntax-highlighting
Base2tone Vim
Base2Tone - duotone - Themes for Vim
Stars: ✭ 108 (-6.9%)
Mutual labels:  syntax-highlighting
Plugin.wordpress
📦 Official WordPress Plugin of EnlighterJS
Stars: ✭ 93 (-19.83%)
Mutual labels:  syntax-highlighting
Nord Sublime Text
An arctic, north-bluish clean and elegant Sublime Text theme.
Stars: ✭ 109 (-6.03%)
Mutual labels:  syntax-highlighting
Docpht
With DocPHT you can take notes and quickly document anything and without the use of any database.
Stars: ✭ 90 (-22.41%)
Mutual labels:  syntax-highlighting
Syntax Highlighting
collection of syntax highlighting colorschemes
Stars: ✭ 105 (-9.48%)
Mutual labels:  syntax-highlighting
Babel Plugin Prismjs
A babel plugin to use PrismJS with standard bundlers.
Stars: ✭ 114 (-1.72%)
Mutual labels:  syntax-highlighting
Sgtk Menu
GTK launchers for sway & other WMs w/ menu, dmenu, application grid and button bar
Stars: ✭ 112 (-3.45%)
Mutual labels:  i3
I3 Wm Config
I3 tiling window manager configuration
Stars: ✭ 109 (-6.03%)
Mutual labels:  i3

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

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

or you can add this line your .vimrc file

aug i3config_ft_detection
  au!
  au BufNewFile,BufRead ~/.config/i3/config set filetype=i3config
aug end

Additonally, you an add # vim: filetype=i3config anywhere in your config file, as suggested by the original plugin (see below).

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.

vim-plug

Install using vim-plug. Similar than the installation for Vundle, just change Plugin to Plug:

Add

Plug 'mboughaba/i3config.vim'

to .vimrc and run :PlugInstall.

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].