slides.vim

Des slides dans votre vim - retour accueil

git clone git://bebou.netlib.re/slides.vim
Log | Files | Refs |

commit 9b182f69787383a98fa212a62f9b56f4c3144932
parent 93bbc893419c8369032280b1e95b56f72218b64c
Auterice: Marc Chantreux <khatar@phear.org>
Date:   Sat, 19 May 2018 18:52:19 +0200

add emphasize

Diffstat:
Aemphasize.slides | 41+++++++++++++++++++++++++++++++++++++++++
Mftplugin/slides.vim | 6++++++
Mreadme.slides | 34+++++++++++++++++++++++++---------
Asyntax/slides.vim | 1+
4 files changed, 73 insertions(+), 9 deletions(-)

diff --git a/emphasize.slides b/emphasize.slides @@ -0,0 +1,41 @@ +› first + + be sure there is no nbsp entry for listchars. + the easiest way to do it is + + :set listchars= + +› did you spot the 1 ? + + 000 0 0 0 0 0 + 000 0 0 0 0 0 + 000 0 1 0 0 0 + 000 0 0 0 0 0 + 000 0 0 0 0 0 + 000 0 0 0 0 0 + +› did you spot the 1 ? + + 000 0 0 0 0 0 + 000 0 0 0 0 0 + 000 0 1 0 0 0 + 000 0 0 0 0 0 + 000 0 0 0 0 0 + 000 0 0 0 0 0 + +› perl w/o Function::Parameters + + sub hello { + my $who = @_ ? shift : "world"; + say "hello $who"; + } + +› perl with Function::Parameters + +  fun hello ( $who = 'world' ) { +  # my $who = @_ ? shift : "world";  + say "hello $who"; + } + + + diff --git a/ftplugin/slides.vim b/ftplugin/slides.vim @@ -19,6 +19,9 @@ highlight Folded cterm=none ctermbg=none ctermfg=white set statusline=0 noshowmode noruler noshowcmd setlocal nonu cursorline so=0 laststatus=0 + " use nbsp to emphasize something + " see emphasize.slides demo + highlight emphasize ctermfg=red cterm=bold " every slide starts with a › set fdm=expr foldexpr=getline(v:lnum)=~'^\ *›'?'>1':1 @@ -44,6 +47,9 @@ command -nargs=0 Presentation set fdo=all fcl=all Presentation AgendaToggle + + + " Dead code ? ( just toggle foldenable? ) " Edition mode reset default folding behavior " command -nargs=0 Edition set fcl= fdo=block,hor,mark,percent,quickfix,search,tag,undo diff --git a/readme.slides b/readme.slides @@ -72,6 +72,12 @@ last slide ┃ PageUp show/hide agenda ┃ :AgendaToggle<cr> +› emphasize + + because some words are important + you can use npsp (alt-space) to + emphasize them. + › tips: editing  toggle numbers and folding (switch to edition mode) @@ -82,21 +88,31 @@ › tips: digraphs :h digraphs + +› digraphs: tables + VV ┃ vertical HH ┃ horizontal LD ┓ left down RU ┗ right up ... and so on ... -┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃RD LD ┃ -┃Vr Vl ┃ -┣━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ -┃ ┃ -┃ ┃ -┃ ┃ -┃UR UL┃ -┗━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ + ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ + ┃RD LD ┃ + ┃Vr Vl ┃ + ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ + ┃ ┃ + ┃ ┃ + ┃ ┃ + ┃UR UL┃ + ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ + +› digraphs: maths + + ∀ FA forall + ∈ (- + ∞ 00 + ... › tips: emojis diff --git a/syntax/slides.vim b/syntax/slides.vim @@ -0,0 +1 @@ +syn match emphasize "\v [^ ]+ "