aboutsummaryrefslogtreecommitdiff
path: root/vimrc-custom-statusline
diff options
context:
space:
mode:
authorMax Christian Pohle2018-05-08 00:35:11 +0200
committerMax Christian Pohle2018-05-08 00:35:11 +0200
commit8caea9124e170fbf475b4e38b8f9fe74549eb847 (patch)
tree30d73b0f12b1ca1213e43a909f88dd90cd6c24dd /vimrc-custom-statusline
parentd17b7d981e567ce650a2f940436ea8f5217f0e8c (diff)
downloadvim-karlmarks-8caea9124e170fbf475b4e38b8f9fe74549eb847.tar.bz2
vim-karlmarks-8caea9124e170fbf475b4e38b8f9fe74549eb847.zip
Custom Statusline has basic functionality
Diffstat (limited to 'vimrc-custom-statusline')
-rw-r--r--vimrc-custom-statusline22
1 files changed, 14 insertions, 8 deletions
diff --git a/vimrc-custom-statusline b/vimrc-custom-statusline
index e57c697..19942cd 100644
--- a/vimrc-custom-statusline
+++ b/vimrc-custom-statusline
@@ -1104,16 +1104,22 @@ function! ExtendColorTheme()
1104 1104
1105 highlight! link Convention Error 1105 highlight! link Convention Error
1106 1106
1107 " highlight! StatusLineHighlight gui=inverse 1107 let g:status_fg=synIDattr(hlID('Cursor'), 'fg#')
1108 " " highlight! StatusLineInverse gui=NONE 1108 let g:status_bg=synIDattr(hlID('Cursor'), 'bg#')
1109 " highlight! link StatusLineHighlight StatusLineNC 1109 let g:status_sel=synIDattr(hlID('StatusLine'), 'fg#')
1110 " highlight! link StatusLineInverse StatusLine 1110
1111 execute 'highlight! StatusLine'
1112 \ .' guibg='.g:status_sel
1113 \ .' guifg=NONE'
1114
1115 execute 'highlight! User1 guibg='.g:status_bg
1116 execute 'highlight! User1 guifg='.g:status_fg
1117
1118 execute 'highlight! User2 guibg='.g:status_sel
1119 execute 'highlight! User2 guifg='.g:status_bg
1120
1111 1121
1112 highlight! StatusLine gui=NONE guibg=#000000 guifg=#ffffaa
1113 " highlight! StatusLineNC gui=NONE
1114 1122
1115 highlight! User1 guibg=#00000f guifg=#ffffaa gui=NONE
1116 highlight! User2 guibg=NONE guifg=#00000f gui=NONE
1117 " autocmd InsertLeave * call matchadd('Conceal', ' \+$', -1, 101, { 'conceal': '⟶' }) 1123 " autocmd InsertLeave * call matchadd('Conceal', ' \+$', -1, 101, { 'conceal': '⟶' })
1118 autocmd InsertEnter * silent! call matchdelete(101) 1124 autocmd InsertEnter * silent! call matchdelete(101)
1119 autocmd InsertLeave * call matchadd('Convention', ' \+$', -1, 101, { 'conceal': '⟶' }) 1125 autocmd InsertLeave * call matchadd('Convention', ' \+$', -1, 101, { 'conceal': '⟶' })
..