aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/init/special_highlight.vim
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-07-04 16:39:23 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-07-04 16:39:23 +0800
commit464d830c38d6c11258c60782ef9b4fb9de406957 (patch)
tree9cd8e5783781b29a5085c1bc03525daab561e7bc /vim/init/special_highlight.vim
parent1f0628b62d42d9a450157b0956b9df3cadff5177 (diff)
Update
Diffstat (limited to 'vim/init/special_highlight.vim')
-rw-r--r--vim/init/special_highlight.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/init/special_highlight.vim b/vim/init/special_highlight.vim
index 50e4dc3..9729183 100644
--- a/vim/init/special_highlight.vim
+++ b/vim/init/special_highlight.vim
@@ -12,7 +12,7 @@ endfunction
12 12
13" Defualt highlight for matched parenthesis is so weird in many colorscheme 13" Defualt highlight for matched parenthesis is so weird in many colorscheme
14" Why the background color is lighter than my caret !? 14" Why the background color is lighter than my caret !?
15highlight MatchParen ctermfg=NONE ctermbg=darkgrey cterm=NONE 15" highlight MatchParen ctermfg=NONE ctermbg=darkgrey cterm=NONE
16highlight LuaParen ctermfg=NONE ctermbg=darkgrey cterm=NONE 16highlight LuaParen ctermfg=NONE ctermbg=darkgrey cterm=NONE
17 17
18" Show trailing spaces 18" Show trailing spaces
@@ -23,6 +23,6 @@ match ExtraWhitespace /\s\+$/
23" define line highlight color 23" define line highlight color
24highlight MultiLineHighlight ctermbg=LightYellow guibg=LightYellow ctermfg=Black guifg=Black 24highlight MultiLineHighlight ctermbg=LightYellow guibg=LightYellow ctermfg=Black guifg=Black
25" highlight the current line 25" highlight the current line
26nnoremap <silent> <leader><leader>h :call matchadd('MultiLineHighlight', '\%'.line('.').'l')<CR> 26nnoremap <silent> <leader>gh :call matchadd('MultiLineHighlight', '\%'.line('.').'l')<CR>
27" clear all the highlighted lines 27" clear all the highlighted lines
28nnoremap <silent> <leader><leader>H :call clearmatches()<CR> 28nnoremap <silent> <leader>gH :call clearmatches()<CR>