summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2023-11-30 10:59:52 -0700
committerJosh Rahm <joshuarahm@gmail.com>2023-11-30 10:59:52 -0700
commit1c027cb7fecc7d9ff817cecd24202b639b8717c3 (patch)
tree57f4b869eda2773598b628b96f8b2851797b8a2e
parent6a037915bb9cc65e6036845fcba52993a211094d (diff)
downloadconfig.vim-1c027cb7fecc7d9ff817cecd24202b639b8717c3.tar.gz
config.vim-1c027cb7fecc7d9ff817cecd24202b639b8717c3.tar.bz2
config.vim-1c027cb7fecc7d9ff817cecd24202b639b8717c3.zip
Fix how the colorcolumn works
-rw-r--r--init.vim12
1 files changed, 3 insertions, 9 deletions
diff --git a/init.vim b/init.vim
index 7affbc5..eec97d3 100644
--- a/init.vim
+++ b/init.vim
@@ -157,15 +157,9 @@ if has('rneovim')
hi MyRedColorColumn guifg=#5a1a1a guibg=none gui=None
endfunction
call HighlightColorColumns()
- " This is my patched version of neovim.
- if has('fancycolorcol')
- " Grey color column right after text width is grey and in the background and
- " a red one after the text width which is red and in the foreground.
- set colorcolumn=+1/│/MyColorColumn/b,+20/│/MyRedColorColumn/f
- else
- hi! link ColorColumn MyColorColumn
- set fillchars+=colorcol:│
- endif
+ " Grey color column right after text width is grey and in the background and
+ " a red one after the text width which is red and in the foreground.
+ set colorcolumn=+1/│/MyColorColumn/b,+20/│/MyRedColorColumn/f
augroup InitVim
au ColorScheme * call HighlightColorColumns()