Skip to content

Instantly share code, notes, and snippets.

@EinfachToll
Created August 25, 2014 13:18
Show Gist options
  • Save EinfachToll/1868b299ce97af614729 to your computer and use it in GitHub Desktop.
Save EinfachToll/1868b299ce97af614729 to your computer and use it in GitHub Desktop.
Vim regression bug demonstration
bla
_S_ bla
set runtimepath=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after
set nocompatible
set listchars=tab:ab
set linebreak
set list
set conceallevel=2
let g:vimwiki_rxItalic = '\%(^\|\s\|[[:punct:]]\)\@<='.
\'_'.
\'\%([^_`[:space:]][^_`]*[^_`[:space:]]\|[^_`[:space:]]\)'.
\'_'.
\'\%([[:punct:]]\|\s\|$\)\@='
syn match VimwikiItalicChar contained /_/ conceal
execute 'syntax match VimwikiItalic /'.g:vimwiki_rxItalic.'/ contains=VimwikiItalicChar'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment