sponsor Vim development Vim logo Vim Book Ad

i3config.vim : Vim syntax highlighting for i3 config

 script karma  Rating 0/0, Downloaded by 48  Comments, bugs, improvements  Vim wiki

created by
Mohamed Boughaba
script type
i3config.vim - vim i3 config syntax highlighting

This file contains 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 build this based on the current specification provided (as of Sat 12 Mar 2016) in:

i3config does what a syntax highlighting would do and additionally provide 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:

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
:set filetype=i3config
install details
Follow one of the steps below and reload vim afterwards.


Instal 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

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
i3config.vim-0.3.0.zip 0.3.0 2017-12-07 7.0 Mohamed Boughaba Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo