diff options
author | Max Christian Pohle | 2018-12-02 01:57:50 +0100 |
---|---|---|
committer | Max Christian Pohle | 2018-12-02 01:57:50 +0100 |
commit | c4f024a6aef7661370904b9f0a488b8739ba35c4 (patch) | |
tree | a3ce49c796dcaac368726766016b005761d5b613 /plugin | |
parent | 9e36bdf1a060a2ffcb0172eb42e954c475ec3f70 (diff) | |
download | vim-c4f024a6aef7661370904b9f0a488b8739ba35c4.tar.bz2 vim-c4f024a6aef7661370904b9f0a488b8739ba35c4.zip |
Fixed colorscheme and display problems
- signify sometimes required CTRL-L to display the symbols
- separation between windows looked ugly because of the foldcolumns
background color- fixed.
- added Xresources (can be linked to ~/.Xresources), applies base16
- added xinputrc (can be linked to ~/.xinputrc), makes bash vi-like
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/max-fix-colorschemes.vim | 58 | ||||
-rw-r--r-- | plugin/signify.vim | 10 |
2 files changed, 34 insertions, 34 deletions
diff --git a/plugin/max-fix-colorschemes.vim b/plugin/max-fix-colorschemes.vim index 1624565..abfa11a 100644 --- a/plugin/max-fix-colorschemes.vim +++ b/plugin/max-fix-colorschemes.vim | |||
@@ -2,42 +2,43 @@ | |||
2 | " COLOR SCHEME: | 2 | " COLOR SCHEME: |
3 | "======================================================================================================================= | 3 | "======================================================================================================================= |
4 | function! ExtendColorTheme() | 4 | function! ExtendColorTheme() |
5 | highlight! Bold cterm=bold gui=bold | 5 | highlight! Bold cterm=bold gui=bold |
6 | highlight! Italic cterm=italic gui=italic | 6 | highlight! Italic cterm=italic gui=italic |
7 | highlight! Underline cterm=underline gui=underline | 7 | highlight! Underline cterm=underline gui=underline |
8 | highlight! BoldUnderline cterm=bold,underline gui=bold,underline | 8 | highlight! BoldUnderline cterm=bold,underline gui=bold,underline |
9 | highlight! BoldItalic cterm=bold,Italic gui=Bold,Italic | 9 | highlight! BoldItalic cterm=bold,Italic gui=Bold,Italic |
10 | highlight! Todo cterm=bold gui=bold guibg=#ffffaa guifg=#000000 | 10 | highlight! Todo cterm=bold gui=bold guibg=#ffffaa guifg=#000000 |
11 | highlight! Error guibg=NONE | 11 | highlight! Error cterm=NONE ctermbg=NONE gui=NONE guibg=NONE |
12 | highlight! SpellBad cterm=NONE gui=undercurl guibg=NONE guifg=red | 12 | highlight! SpellBad cterm=NONE gui=undercurl guibg=NONE guifg=red |
13 | 13 | highlight! Ignore cterm=NONE ctermbg=NONE ctermfg=NONE gui=NONE guibg=NONE guifg=NONE | |
14 | 14 | highlight! Folded cterm=NONE ctermbg=NONE | |
15 | highlight! link qfSeparator Normal | " reserve one space | 15 | highlight! EndOfBuffer cterm=NONE ctermbg=255 ctermfg=255 |
16 | highlight! link qfLineNr Normal | " informational line numbers should look different | 16 | |
17 | 17 | ||
18 | highlight! link SpecialKey NonText | " makes tab stop (see listchars) less disturbing | 18 | highlight! link qfSeparator Normal | " reserve one space |
19 | highlight! link EndOfBuffer Ignore | 19 | highlight! link qfLineNr Normal | " informational line numbers should look different |
20 | highlight! link WildMenu Search | 20 | |
21 | highlight! link Convention Error | 21 | highlight! link SpecialKey NonText | " makes tab stop (see listchars) less disturbing |
22 | highlight! link VertSplit NonText | 22 | highlight! link WildMenu Search |
23 | 23 | highlight! link Convention Error | |
24 | highlight! link VertSplit LineNr | 24 | highlight! link VertSplit NonText |
25 | highlight! link Folded LineNr | 25 | |
26 | highlight! link SignColumn LineNr | 26 | highlight! link VertSplit LineNr |
27 | highlight! link FoldColumn LineNr | 27 | highlight! link SignColumn NonText |
28 | 28 | highlight! link FoldColumn NonText | |
29 | highlight! link PmenuSbar Pmenu | 29 | |
30 | highlight! PmenuThumb cterm=inverse | 30 | highlight! link PmenuSbar Pmenu |
31 | highlight! MoreMsg cterm=inverse | 31 | highlight! PmenuThumb cterm=inverse |
32 | highlight! MoreMsg cterm=inverse | ||
32 | 33 | ||
33 | endfunction | 34 | endfunction |
34 | autocmd ColorScheme * call ExtendColorTheme() | 35 | autocmd ColorScheme * call ExtendColorTheme() |
35 | 36 | ||
36 | 37 | ||
38 | set background=light | ||
37 | if filereadable(expand("~/.vimrc_background")) && filereadable(expand("~/.config/base16-shell/colortest")) | 39 | if filereadable(expand("~/.vimrc_background")) && filereadable(expand("~/.config/base16-shell/colortest")) |
38 | let g:base16_shell_path = "~/.config/base16-shell/scripts" | 40 | let g:base16_shell_path = "~/.config/base16-shell/scripts" |
39 | let base16colorspace = 256 | 41 | let base16colorspace = 256 |
40 | set background=dark | ||
41 | source ~/.vimrc_background | 42 | source ~/.vimrc_background |
42 | else | 43 | else |
43 | let g:PaperColor_Theme_Options = { | 44 | let g:PaperColor_Theme_Options = { |
@@ -47,6 +48,5 @@ else | |||
47 | \ } | 48 | \ } |
48 | \ } | 49 | \ } |
49 | \ } | 50 | \ } |
50 | set background=light | ||
51 | colorscheme PaperColor | 51 | colorscheme PaperColor |
52 | endif | 52 | endif |
diff --git a/plugin/signify.vim b/plugin/signify.vim index e60cba5..5eeb2b0 100644 --- a/plugin/signify.vim +++ b/plugin/signify.vim | |||
@@ -13,11 +13,11 @@ augroup SIGNIFY | |||
13 | let g:signify_sign_show_count = 0 | 13 | let g:signify_sign_show_count = 0 |
14 | 14 | ||
15 | if has("multi_byte") && (&enc == 'utf-8' || &enc == 'utf-16' || &enc == 'ucs-4') | 15 | if has("multi_byte") && (&enc == 'utf-8' || &enc == 'utf-16' || &enc == 'ucs-4') |
16 | let g:signify_sign_add = '⊕' | 16 | let g:signify_sign_add = '⊕.' |
17 | let g:signify_sign_delete = '⊖' | 17 | let g:signify_sign_delete = '⊖.' |
18 | let g:signify_sign_delete_first_line = '⊖' | 18 | let g:signify_sign_delete_first_line = '⊖.' |
19 | let g:signify_sign_change = '⊗' | 19 | let g:signify_sign_change = '⊗.' |
20 | let g:signify_sign_changedelete = '⊗' | 20 | let g:signify_sign_changedelete = '⊗.' |
21 | endif | 21 | endif |
22 | 22 | ||
23 | function! SignifyColorScheme() | 23 | function! SignifyColorScheme() |