Des slides dans votre vim - retour accueil
git clone git://bebou.netlib.re/slides.vim
Log | Files | Refs |
commit 765c6a41752c02f3fe012680ec680ae5da8db8b4 parent 5c6ef7ccb1700f13487ba3ba088b4d716545ea22 Auterice: Marc Chantreux <eiro@phear.org> Date: Sat, 5 Oct 2019 00:24:38 +0200 slcon6 update the symbol seems sexier than the old one, change it everywhere Diffstat:
M | ftplugin/slides.vim | | | 14 | ++++++++++---- |
M | readme.slides | | | 73 | ++++++++++++++++++++++++++++++++++++++----------------------------------- |
M | syntax/slides.vim | | | 4 | +++- |
3 files changed, 51 insertions(+), 40 deletions(-)
diff --git a/ftplugin/slides.vim b/ftplugin/slides.vim @@ -4,6 +4,7 @@ " › = 1> " edition commands: + inoremap <buffer> (' <space><c-o>i inoremap <buffer> (* ▶<space> inoremap <buffer> (- <space> inoremap <buffer> (" ›<space> @@ -14,17 +15,19 @@ nnoremap <buffer> <PageDown> zjzt " Theme: - highlight CursorLine cterm=bold ctermbg=blue ctermfg=white + highlight SlideTitle cterm=bold ctermbg=blue ctermfg=white + highlight SlideTitleTail cterm=bold ctermbg=none ctermfg=blue + " highlight CursorLine cterm=bold ctermbg=blue ctermfg=white highlight emphasize cterm=bold ctermfg=darkred ctermbg=none highlight Folded cterm=none ctermbg=none ctermfg=white - setlocal fcs=fold:\ ,diff:\ cursorline + setlocal fcs=fold:\ ,diff:\ + " setlocal cursorline setlocal noshowmode noruler noshowcmd nolist nonu setlocal so=0 laststatus=0 statusline=0 " use nbsp to emphasize something " see emphasize.slides demo -" every slide starts with a › -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') @@ -42,6 +45,9 @@ if !exists('*AgendaToggle') command -nargs=0 AgendaToggle call AgendaToggle() endif +command -range=% SlidesUpdate <line1>,<line2>s/\v›(.*)/\1 / + + AgendaToggle fun SlidesRC () diff --git a/readme.slides b/readme.slides @@ -1,54 +1,54 @@ -› slides.vim: simple slides made simple + slides.vim: simple slides made simple - 30 lines of vim config + ~ 50 lines of vim config WYSIWYG emphasize/highlighted with non breaking spaces easy mode switching (edition/presentation) :set fen! list! -› when ? + when ? need slides, have no time prototyping remote/collaborative display -› prototyping + prototyping ▶ git revision ▶ lightweight as a text file ▶ autofolding: quick rearange ▶ WYSIWYG -› remote/collaborative display + remote/collaborative display ▶ ssh forced command ▶ slides.vim + ii + tmux + ... -› cons ? + cons ? only text, code, emojis and all unicode but ... vim customization (see emphasize slide) !eog -f ~/slides*(o)& when things get visual -› system requirement + system requirement a fullscreen terminal vim + slides.vim your *.slides -› which term ? (gnome terminal) + which term ? (gnome terminal) 👍 good support of 256 colors term 👍 nice emoji rendering -› which term ? (terminology) + which term ? (terminology) 👍 transparency, background 👍 better look -› which term ? (coolretroterm) + which term ? (coolretroterm) fun old school looking demos :) check the tip to compile into a docker @@ -56,24 +56,24 @@ just read tips.md (https://github.com/eiro/slides.vim/blob/master/tips.md) -› usage + usage # install slides.vim (:h packages) # vim is now aware of .slides file extension $ vim yourtalk.slides -› insertion mappings + insertion mappings (* ┃ ▶<space> (- ┃ <space> - (" ┃ ›<space> + (" ┃ <space> (5 ┃ <cr> <cr> <cr> <cr> <cr><esc>5kA " TIP: whenever you want to edit (:h 'fen) :set fen! -› presentation mappings + presentation mappings in normal mode @@ -81,13 +81,13 @@ last slide ┃ PageUp show/hide agenda ┃ :AgendaToggle<cr> -› emphasize + emphasize because some words are important you can use npsp (alt-space) to emphasize them. -› possible improvements + possible improvements resurect subsections the right way: 2 lines @@ -98,14 +98,14 @@ automatically gnome-screenshot every slide to build a pdf version -› tips: editing + tips: editing toggle numbers and folding (switch to edition mode) :set nu! fen! next slide - /^› + /^ -› tips: digraphs + tips: digraphs :h digraphs @@ -123,7 +123,7 @@ so now <c-k>+1 means 👍 -› drawing with digraphs + drawing with digraphs draw charts and tables can be drawn with digraphs: @@ -138,7 +138,7 @@ and so on ... -› drawing with digraphs: examples + drawing with digraphs: examples ┌│┐ think border box: └┘ @@ -155,7 +155,7 @@ ┃UR UL┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ -› drawing with digraphs: tips + drawing with digraphs: tips use numeral adjectives: 5i<c-k>vv gives you ───── @@ -169,7 +169,7 @@ use upercase to bold: <c-k>vv<c-k>VV gives you │┃ -› maths and digraphs + maths and digraphs ∀ FA and more ... see :digraphs ∈ (- also greek alphabet is available with * @@ -180,6 +180,8 @@ ∑ +Z ∏ *P ∏ *P + maths and digraphs + => ⇒ │ == ⇔ │ FA ∀ │ dP ∂ │ TE ∃ │ /0 ∅ │ DE ∆ │ NB ∇ │ (- ∈ │ -) ∋ │ *P ∏ │ +Z ∑ │ -2 − │ -+ ∓ │ *- ∗ │ Ob ∘ │ Sb ∙ │ @@ -192,11 +194,11 @@ Eh ⌂ │ <7 ⌈ │ >7 ⌉ │ 7< ⌊ │ 7> ⌋ │ NI ⌐ │ (A ⌒ │ TR ⌕ │ Iu ⌠ │ Il ⌡ │ </ 〈│ /> 〉│ Vs ␣ -› example + example ℚ = { (𝑚 ,𝑛) | (𝑚 ,𝑛) ∈ ℤ Χ ( ℤ \ {0} ) } -› tips: emojis + tips: emojis iab :-) ☺️ iab xD 😃 @@ -218,18 +220,19 @@ iab ;-o 🤨 iab _ok 🗸 -› tips: more emojis from gnome + tips: more emojis from gnome if you're using gnome: install gnome-characters and gnome-character-map activate "characters" in gnome search now you can search for "pile of " to get 💩 -› more tips + more tips just read tips.md (https://github.com/eiro/slides.vim/blob/master/tips.md) -› Known bugs + + Known bugs you can't have more than 1 emphasize in a line because (say X is nbsp): @@ -240,7 +243,7 @@ is a region between 2 X so the whole line is highlighted. -› history + history written in 2009 because of a deadline published in 2010 because of a deadline @@ -249,7 +252,7 @@ evolutions and documentation pushed to github because someone wanted to know -› see also + see also i use to use slides.vim when i ran out of time. Nowadays, unicode symbols and emojis are randered @@ -269,7 +272,7 @@ just even test the other ones and the next slides are probably unfair. -› other presentation tools + other presentation tools vroom (the only one i knew about in circa 2010) https://metacpan.org/pod/distribution/Vroom/lib/Vroom.pod @@ -279,19 +282,19 @@ git-slides https://github.com/gelisam/git-slides presenting https://github.com/sotte/presenting.vim pip slides https://pypi.org/project/slides.vim/ -› stuck on slides.vim because + stuck on slides.vim because Probably too │ vimdeck heavy/complicated │ vroom │ pip slides -› stuck on slides.vim because + stuck on slides.vim because renders badly │ presenting according to │ git-slides screenshots │ -› outside of vim + outside of vim pandoc can turn markdown files into a beamer file (latex class) @@ -303,7 +306,7 @@ pip slides https://pypi.org/project/slides.vim/ ▶ impress.js -› Thank you + Thank you questions ? fork me! http://github.com/eiro/slides.vim diff --git a/syntax/slides.vim b/syntax/slides.vim @@ -1 +1,3 @@ -syn match emphasize "\v \zs[^ ]+\ze " +syn match emphasize "\v \zs[^ ]+\ze " +syn match SlideTitle "^ .*\ze$" +syn match SlideTitleTail "$"