Skip to main content
added example vimrc lines
Source Link

Going for a highlighting simpler solution, I would use a Vim custom syntax highlighting rule so that, for example, text marked like this:

~~ text ~~

is displayed in a different color (eg. a darker text color if you have a dark background, or as dark reversed colors). Which would be, in vimrc:

au BufRead,BufNewFile *.txt   syntax match StrikeoutMatch /\~\~.*\~\~/   
hi def  StrikeoutColor   ctermbg=darkblue ctermfg=black    guibg=darkblue guifg=blue
hi link StrikeoutMatch StrikeoutColor

(where the au command is used to apply the rule to filetype .txt files only)

Going for a highlighting simpler solution, I would use a Vim custom syntax highlighting rule so that, for example, text marked like this:

~~ text ~~

is displayed in a different color (eg. a darker text color if you have a dark background)

Going for a highlighting simpler solution, I would use a Vim custom syntax highlighting rule so that, for example, text marked like this:

~~ text ~~

is displayed in a different color (eg. a darker text color if you have a dark background, or as dark reversed colors). Which would be, in vimrc:

au BufRead,BufNewFile *.txt   syntax match StrikeoutMatch /\~\~.*\~\~/   
hi def  StrikeoutColor   ctermbg=darkblue ctermfg=black    guibg=darkblue guifg=blue
hi link StrikeoutMatch StrikeoutColor

(where the au command is used to apply the rule to filetype .txt files only)

clarified my reasonings on the light of others' solutions exposed before
Source Link

(Until is) lacking Going for a better stikeouthighlighting simpler solution, I would use a Vim custom syntax highlighting rule so that, for example, text marked like this:

~~ text ~~

is displayed in a different color (eg. a darker text color if you have a dark background)

(Until is) lacking a better stikeout solution, I would use a Vim custom syntax highlighting rule so that, for example, text marked like this:

~~ text ~~

is displayed in a different color (eg. a darker text color if you have a dark background)

Going for a highlighting simpler solution, I would use a Vim custom syntax highlighting rule so that, for example, text marked like this:

~~ text ~~

is displayed in a different color (eg. a darker text color if you have a dark background)

added 59 characters in body
Source Link

(Until is) lacking a better stikeout solution, I would adduse a Vim custom syntax highlighting rule so that, for example, text marked like this:
~~

~~ text ~~
is

is displayed in a different color (eg. a darker text color if you have a dark background)

I would add a custom syntax highlighting rule so that, for example, text marked like this:
~~ text ~~
is displayed in a different color (eg. a darker text color if you have a dark background)

(Until is) lacking a better stikeout solution, I would use a Vim custom syntax highlighting rule so that, for example, text marked like this:

~~ text ~~

is displayed in a different color (eg. a darker text color if you have a dark background)

Source Link
Loading