diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-07-08 23:24:22 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-07-08 23:24:22 +0800 |
commit | 7a98c89f22253177d9f5a0f83c9dbaa297eb54b0 (patch) | |
tree | 566f70c7c7777bd1983708f9bf6e285d28c93639 /vim/init/special_highlight.vim | |
parent | d834d6da82ba20e32699380d335a65936bad16f9 (diff) |
Update
Diffstat (limited to 'vim/init/special_highlight.vim')
-rw-r--r-- | vim/init/special_highlight.vim | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/vim/init/special_highlight.vim b/vim/init/special_highlight.vim deleted file mode 100644 index 26d2787..0000000 --- a/vim/init/special_highlight.vim +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | "---------------------------------------------------------------------- | ||
2 | " SYNTAX_HIGHLIGHT | ||
3 | "---------------------------------------------------------------------- | ||
4 | |||
5 | syntax enable | ||
6 | |||
7 | function! GetHighlightGroupName() | ||
8 | let l:syntaxID = synID(line('.'), col('.'), 1) | ||
9 | let l:groupName = synIDattr(l:syntaxID, 'name') | ||
10 | echo "Highlight Group Name: " . l:groupName | ||
11 | endfunction | ||
12 | |||
13 | " Defualt highlight for matched parenthesis is so weird in many colorscheme | ||
14 | " Why the background color is lighter than my caret !? | ||
15 | " highlight MatchParen ctermfg=NONE ctermbg=darkgrey cterm=NONE | ||
16 | highlight LuaParen ctermfg=NONE ctermbg=darkgrey cterm=NONE | ||
17 | |||
18 | " Show trailing spaces | ||
19 | highlight ExtraWhitespace ctermbg=red guibg=red | ||
20 | match ExtraWhitespace /\s\+$/ | ||
21 | |||
22 | " Persist visualized lines | ||
23 | " define line highlight color | ||
24 | highlight MultiLineHighlight ctermbg=LightYellow guibg=LightYellow ctermfg=Black guifg=Black | ||
25 | " highlight the current line | ||
26 | nnoremap <silent> <leader>gh :call matchadd('MultiLineHighlight', '\%'.line('.').'l')<CR> | ||
27 | " clear all the highlighted lines | ||
28 | nnoremap <silent> <leader>gH :call clearmatches()<CR> | ||