tweak pandoc markdown highlighting

This commit is contained in:
Michele Guerini Rocco 2020-06-01 09:22:09 +02:00
parent 1d3b7d6774
commit b8547e29cd
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450
2 changed files with 17 additions and 1 deletions

View File

@ -16,11 +16,21 @@ highlight Identifier ctermfg=13
highlight Constant ctermfg=03
highlight Function ctermfg=02
highlight Include ctermfg=04
highlight Statement ctermfg=05
highlight Statement ctermfg=11
highlight String ctermfg=03
highlight Number ctermfg=04
highlight Conceal ctermfg=none ctermbg=none
" Text
highlight Title ctermfg=04
highlight Special ctermfg=12
highlight Delimiter ctermfg=01
highlight PandocReferenceURL ctermfg=03
highlight PandocCiteKey ctermfg=06
highlight PandocTableDelims ctermfg=08
highlight texBeginEndName ctermfg=02
highlight Error ctermfg=none ctermbg=none cterm=underline
" Editor UI
highlight NonText ctermfg=00
highlight Visual ctermfg=none ctermbg=00

View File

@ -123,6 +123,12 @@ xnoremap <silent> p p:let @+=@0<CR>
" save with sudo
cmap w!! w !sudo tee > /dev/null %
" show highlight group under cursor
map <Leader>g :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<'
\ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<"
\ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>
""
"" Plugin options