From f703015dc0137d79379492ae61e78efbb7ecf512 Mon Sep 17 00:00:00 2001 From: José Luis Lafuente Date: Sat, 4 Nov 2017 14:31:00 +0100 Subject: Make local customization easier --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 9ac8016..c9a634d 100644 --- a/README.md +++ b/README.md @@ -55,3 +55,17 @@ If your Vim looks like the above image you are using a 256 terminal theme withou ![blue line numbers screenshot](https://raw.github.com/chriskempson/base16-vim/master/with-base16colorspace-256-without-base16-shell.png) If your Vim looks like the above image you are setting `let base16colorspace=256` in your `~/.vimrc` but either not running [Base16 Shell](https://github.com/chriskempson/base16-shell) or [Base16 Shell](https://github.com/chriskempson/base16-shell) is not working for your terminal. Either ensure [Base16 Shell](https://github.com/chriskempson/base16-shell) is working by running the `colortest` available in the [Base16 Shell](https://github.com/chriskempson/base16-shell) repository or not setting `let base16colorspace=256` in your `~/.vimrc`. + +## Customization +If you want to do some local customization, you can add something like this to your `~/.vimrc`: + +```vim +function! s:base16_customize() abort + call Base16hi("MatchParen", g:base16_gui05, g:base16_gui03, g:base16_cterm05, g:base16_cterm03, "bold,italic", "") +endfunction + +augroup on_change_colorschema + autocmd! + autocmd ColorScheme * call s:base16_customize() +augroup END +``` -- cgit v1.2.3