Des slides dans votre vim - retour accueil
git clone git://bebou.netlib.re/slides.vim
Log | Files | Refs |
commit 221cae1468ce2b7da46636a296f51dec6938e395 parent c3ba6f1a0bb3793c863f84fa7934124d4d256efa Auterice: Marc Chantreux <mc@unistra.fr> Date: Fri, 13 Oct 2023 11:13:55 +0200 add a Hook system eval arbitrary viml code placed before the slide leader Diffstat:
M | ftplugin/slides.vim | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ftplugin/slides.vim b/ftplugin/slides.vim @@ -31,11 +31,14 @@ nnoremap ,x :Record<cr> " presentation command nnoremap <buffer> <PageUp> zkzt - nnoremap <buffer> <PageDown> zjzt + nnoremap <buffer> <PageDown> zjzt:Hook<cr> + +command Hook exec matchstr(getline("."),"^\\v^[^›]+") " Theme: highlight Slidetitle cterm=bold ctermfg=white ctermbg=blue highlight Emphasize cterm=bold ctermfg=darkred ctermbg=none + highlight Hook ctermfg=darkred ctermbg=none highlight Folded cterm=none ctermbg=none ctermfg=white setlocal fcs=fold:\ ,diff:\ setlocal noshowmode noruler noshowcmd nolist nonu