From 37ec2b0206db340993d43289e97b0ac7ca3c2c39 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 8 May 2014 16:08:16 -0400 Subject: vimrc: add settings for Indent Guides * Remap toggle to ts * Set column size to 1 * Set colours of guides to blend better with the background and be less distracting --- vimrc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 8ce3a7a..5e11d64 100644 --- a/vimrc +++ b/vimrc @@ -108,6 +108,9 @@ " " 2014.05.08: " * Add Indent Guides plugin to show tab stops +" * Remap Indent Guides toggle command to ts +" * Set Indent Guides size to 1 column (only works for expandtab) +" * Set custom colours for Indent Guides that are a little less intrusive " @@ -291,6 +294,23 @@ let g:EasyGrepIgnoreCase = 1 let g:EasyGrepReplaceAllPerFile = 1 +" Indent Guides +let g:indent_guides_guide_size = 1 " Set guide size to 1 column +let g:indent_guides_default_mapping = 0 " Remove default ig mapping + +" Set mapping to ts for "Tab Stop" +nnoremap ts :IndentGuidesToggle + +" Set colours for indent guides +if exists('g:colors_name') && g:colors_name ==# 'twilight256' + " Turn off automatic colours + let g:indent_guides_auto_colors = 0 + + autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd ctermbg=238 + autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=238 +endif + + " Mappings " ======== -- cgit v1.2.3