From 1c5f02eb8ffcab462f4639687f613996c88d40b6 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sat, 1 Feb 2020 04:03:00 +0100 Subject: [PATCH] Make numbers and booleans stand out in vim --- dotfiles/.config/vim/vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dotfiles/.config/vim/vimrc b/dotfiles/.config/vim/vimrc index eded9ff..cdac902 100644 --- a/dotfiles/.config/vim/vimrc +++ b/dotfiles/.config/vim/vimrc @@ -134,6 +134,13 @@ let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" colorscheme solarized filetype plugin indent on syntax enable + + " Make numbers and booleans stand out, important because of the concealment + " used by vim-json. IMPORTANT: these commands need to come after enabling + " syntax highlighting. + " More info: https://github.com/elzr/vim-json/issues/37#issuecomment-500044818 + highlight Number ctermfg=4 " blue in solarized (see .bashrc) + highlight Boolean ctermfg=5 " magenta in solarized (see .bashrc) " }}} " Functions {{{