diff options
author | Teddy Wing | 2014-05-08 16:08:16 -0400 |
---|---|---|
committer | Teddy Wing | 2014-05-08 16:08:16 -0400 |
commit | 37ec2b0206db340993d43289e97b0ac7ca3c2c39 (patch) | |
tree | 2c27793371c8bea732b2afb94328828ef64f1362 /vimrc | |
parent | 2db173fff7bf049828a1c14ff0b7323f355b7ec9 (diff) | |
download | dotvim-37ec2b0206db340993d43289e97b0ac7ca3c2c39.tar.bz2 |
vimrc: add settings for Indent Guides
* Remap toggle to <leader>ts
* Set column size to 1
* Set colours of guides to blend better with the background and be less
distracting
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -108,6 +108,9 @@ " " 2014.05.08: " * Add Indent Guides plugin to show tab stops +" * Remap Indent Guides toggle command to <leader>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 <leader>ig mapping + +" Set mapping to ts for "Tab Stop" +nnoremap <leader>ts :IndentGuidesToggle<cr> + +" 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 " ======== |