Des slides dans votre vim - retour accueil
git clone git://bebou.netlib.re/slides.vim
Log | Files | Refs |
commit ea7679f1874e9f42d18a84daeca8f3936f51e27c parent be338dc4ff290f92a4e727cc38252791cd0b4faf Auterice: Marc Chantreux <eiro@phear.org> Date: Thu, 19 Mar 2020 15:42:25 +0100 new SlidesRC and related documentation Diffstat:
M | readme.slides | | | 39 | ++++++++++++++++++++++++++++++++++++++- |
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/readme.slides b/readme.slides @@ -1,3 +1,4 @@ + › slides.vim: simple slides made simple ~ 50 lines of vim config @@ -74,9 +75,10 @@ › insertion mappings + (* ┃ ▶<space> (- ┃ <space> -› (" ┃ <space> + (" ┃ ›<space> (5 ┃ <cr> <cr> <cr> <cr> <cr><esc>5kA " TIP: whenever you want to edit (:h 'fen) @@ -96,6 +98,41 @@ you can use npsp (alt-space) to emphasize them. +› SlidesRC + +the SlideRC command can abitrary vim code in the range + + /^"<vim/,/^"vim>/ + +some examples coming... + +› SlidesRC (define the flag) + +so here is the way to turn a BWR (blue, white, red) +into a french flag + +"<vim +syn match FranceFlagBlue "\vB{4}" +highlight FranceFlagBlue ctermbg=lightblue ctermfg=lightblue +syn match FranceFlagWhite "\vW{4}" +highlight FranceFlagWhite ctermbg=white ctermfg=white +syn match FranceFlagRed "\vR{4}" +highlight FranceFlagRed ctermbg=red ctermfg=red +"vim> + + BBBBWWWWRRRR + BBBBWWWWRRRR + +› SlidesRC (theming) + +theming is basically redefining those 3 highlights: + +"<vim + highlight SlideTitle cterm=bold ctermbg=blue ctermfg=white + highlight emphasize cterm=bold ctermfg=darkred ctermbg=none + highlight Folded cterm=none ctermbg=none ctermfg=white +"vim> + › possible improvements resurect subsections the right way: 2 lines