ctrlh.vim (754B)
1 " Vim syntax file 2 " Language: CTRL-H (e.g., ASCII manpages) 3 " Maintainer: The Vim Project <https://github.com/vim/vim> 4 " Last Change: 2023 Aug 10 5 " Former Maintainer: Bram Moolenaar <Bram@vim.org> 6 7 " Existing syntax is kept, this file can be used as an addition 8 9 " Recognize underlined text: _^Hx 10 syntax match CtrlHUnderline /_\b./ contains=CtrlHHide 11 12 " Recognize bold text: x^Hx 13 syntax match CtrlHBold /\(.\)\b\1/ contains=CtrlHHide 14 15 " Hide the CTRL-H (backspace) 16 syntax match CtrlHHide /.\b/ contained 17 18 " Define the default highlighting. 19 " Only used when an item doesn't have highlighting yet 20 hi def link CtrlHHide Ignore 21 hi def CtrlHUnderline term=underline cterm=underline gui=underline 22 hi def CtrlHBold term=bold cterm=bold gui=bold 23 24 " vim: ts=8