/bat.vim

Vim colour scheme based on the bat command-line tool

Primary LanguageVim ScriptMIT LicenseMIT

bat.vim

Syntax highlighting for Vim, inspired by the default highlighting of the bat command-line tool.

Example of Bat highlighting a Go file

Most effort has gone into highlighting Go well. To that end, I've added special rules which will make highlighting even nicer when vim-go and/or nvim-treesitter's Go parsers are enabled.

Requirements

A terminal emulator which supports true colour - see here for a list. Most modern ones do.

Installation

With Vim 8, simply:

git clone git@github.com:SmylerMC/bat.vim.git ~/.vim/pack/plugins/start/bat.vim

Alternatively, use a package manager in the normal way.

Then add this to your .vimrc:

set termguicolors
colorscheme bat