Des slides dans votre vim - retour accueil
git clone git://bebou.netlib.re/slides.vim
Log | Files | Refs |
commit 7b65b59efc7211f381308f93e78fadb6582d7d0f parent facb335d41a1e914f5c2f6d3ee27842f25873161 Auterice: Marc Chantreux <mc@unistra.fr> Date: Fri, 21 Jan 2022 15:10:10 +0100 spaces after title symbols are mandatory Diffstat:
M | ftplugin/slides.vim | | | 8 | ++++---- |
M | syntax/slides.vim | | | 4 | ++-- |
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/ftplugin/slides.vim b/ftplugin/slides.vim @@ -15,8 +15,8 @@ nnoremap <buffer> <PageDown> zjzt " Theme: - highlight SlideTitle cterm=bold ctermbg=blue ctermfg=white - highlight emphasize cterm=bold ctermfg=darkred ctermbg=none + highlight Slidetitle cterm=bold ctermfg=white ctermbg=blue + highlight Emphasize cterm=bold ctermfg=darkred ctermbg=none highlight Folded cterm=none ctermbg=none ctermfg=white setlocal fcs=fold:\ ,diff:\ setlocal noshowmode noruler noshowcmd nolist nonu @@ -24,14 +24,14 @@ " use nbsp to emphasize something " see emphasize.slides demo -setlocal fdm=expr fdo=all fcl=all foldexpr=getline(v:lnum)=~'^›'?'>1':1 +setlocal fdm=expr fdo=all fcl=all foldexpr=getline(v:lnum)=~'^›\ '?'>1':1 + let b:show_agenda=v:true if !exists('*AgendaToggle') command -nargs=0 AgendaShow \ let b:show_agenda=v:true \| setlocal foldtext=getline(v:foldstart) - " \| setlocal foldtext=substitute(getline(v:foldstart),'^..\\v(.*)','\\1\ \ \','') command -nargs=0 AgendaHide \ let b:show_agenda=v:false \| setlocal foldtext=substitute(getline(v:foldstart),'.\\v(.*)','','') diff --git a/syntax/slides.vim b/syntax/slides.vim @@ -1,2 +1,2 @@ -syn region emphasize matchgroup=emphasizeConceal start=" " end=" " oneline concealends -syn match SlideTitle "^›.*" +syn region Emphasize matchgroup=emphasizeConceal start=" " end=" " oneline concealends +syn match Slidetitle "^› .*"