aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/init/special_highlight.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/init/special_highlight.vim')
-rw-r--r--vim/init/special_highlight.vim28
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
5syntax enable
6
7function! GetHighlightGroupName()
8 let l:syntaxID = synID(line('.'), col('.'), 1)
9 let l:groupName = synIDattr(l:syntaxID, 'name')
10 echo "Highlight Group Name: " . l:groupName
11endfunction
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
16highlight LuaParen ctermfg=NONE ctermbg=darkgrey cterm=NONE
17
18" Show trailing spaces
19highlight ExtraWhitespace ctermbg=red guibg=red
20match ExtraWhitespace /\s\+$/
21
22" Persist visualized lines
23" define line highlight color
24highlight MultiLineHighlight ctermbg=LightYellow guibg=LightYellow ctermfg=Black guifg=Black
25" highlight the current line
26nnoremap <silent> <leader>gh :call matchadd('MultiLineHighlight', '\%'.line('.').'l')<CR>
27" clear all the highlighted lines
28nnoremap <silent> <leader>gH :call clearmatches()<CR>