From 9f4c2d084c9f439de142555818683c5ddd132f45 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Mon, 5 Nov 2018 08:44:22 +0000 Subject: [PATCH] fix: cursorline auto group commands --- vim/colors/monotonous-dark.erb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/vim/colors/monotonous-dark.erb b/vim/colors/monotonous-dark.erb index 522397b..09efd4b 100644 --- a/vim/colors/monotonous-dark.erb +++ b/vim/colors/monotonous-dark.erb @@ -91,8 +91,9 @@ # TODO dark should be weak, light should be strong bg_weak1 = ["#1B1C1D", 232, "gray"] - bg_weak2 = ["#1F1F1F", 232, "gray"] + bg_cursorcolumn = ["#1F1F1F", 232, "gray"] bg = ["#202122", 234, "black"] + bg_input = ["#384046", 17, "darkblue"] fg_weak1 = ["#494646", 238, "gray"] fg_comment = ["#5d5d5d", 240, "gray"] fg_weak2 = ["#716c6c", 243, "gray"] @@ -269,7 +270,7 @@ [ "Title", "NONE", fg_strong2, "bold" ], [ "LineNr", bg, ui_fg_weak2, "NONE" ], - [ "CursorLineNr", bg, ui_fg_strong1, "NONE" ], + [ "CursorLineNr", bg, ui_fg_strong1, "bold" ], # [ "helpLeadBlank", "NONE", grayfg, "NONE" ], # [ "helpNormal", "NONE", grayfg, "NONE" ], @@ -309,7 +310,7 @@ [ "WarningMsg", "NONE", ui_fg_warningmsg, "bold" ], [ "Cursor", ui_cursor_bg, ui_cursor_fg, "bold" ], - [ "CursorColumn", bg_weak2, "NONE", "NONE" ], + [ "CursorColumn", bg_cursorcolumn, "NONE", "NONE" ], [ "EndOfBuffer", bg, bg, "NONE" ], @@ -818,8 +819,8 @@ endif augroup cursorlinebg au! - au InsertEnter * hi CursorLine ctermbg=232 ctermfg=NONE cterm=NONE guibg=#384046 guifg=NONE gui=NONE - au InsertLeave * hi CursorLine ctermbg=232 ctermfg=NONE cterm=NONE guibg=#272829 guifg=NONE gui=NONE + au InsertEnter * hi CursorLine ctermbg=<%= bg_input[1] %> ctermfg=NONE cterm=NONE guibg=<%= bg_input[0] %> guifg=NONE + au InsertLeave * hi CursorLine ctermbg=<%= bg_weak1[1] %> ctermfg=NONE cterm=NONE guibg=<%= bg_weak1[0] %> guifg=NONE augroup END