slides.vim

Des slides dans votre vim - retour accueil

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

commit 3379f1a5b148ce2afacfcf8be0fc0685e90a122e
Auterice: Marc Chantreux <marc.chantreux@biblibre.com>
Date:   Mon, 18 Oct 2010 12:01:09 +0200

initial version

Diffstat:
Ademo.slides | 70++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aslides.vim | 29+++++++++++++++++++++++++++++
2 files changed, 99 insertions(+), 0 deletions(-)

diff --git a/demo.slides b/demo.slides @@ -0,0 +1,70 @@ + Slides.vim + +  spreading my world domination plan +  with no effort + + + So I need +  Fast edition +  vim: fold, bind, map, script... +  git revision +  autofolding: quick rearange +  WYSIWYG +  +  live +  interaction +  live demo +  "what if ... ?" +  +  fixing +  real live beamer frustration +  i don't fix slides because of *YOU* +  +  multimedia +  images +  animation +  +  easy theming and resize +  + + System requirement + +  a fullscreen terminal +  vim +  ~/.vim/ftplugin/slides.vim +  your *.slides + + + ~/.vim/ftplugin/slides.vim + +  written in few minutes +  11 lines of code +  WIP (syntax highlight, ...) +  ideas and patches are welcome + + + Use it + +  ,, to create a new slide +  or a subslide +  or a subsubslide +  ... + Endless ? +  +  +  +  +  this file is a good example +  everything else is vim ( zj, zk, ...) +  ~/.vim/ftplugin/slides.vim comments +  the awesome vim documentation +  :h fold.txt +  :h digraphs + + + Thank you + +  questions ? +  fork me! http://github.com/eiro + + diff --git a/slides.vim b/slides.vim @@ -0,0 +1,29 @@ +" digraphs +"  = ", +"  = "( +"  = "" + +" :h fold.txt is a must but you'll basically use zj and zk +" + +setlocal nonu cursorline so=999 + \ laststatus=0 fdm=marker + \ foldmarker=, + \ foldtext=substitute(getline(v:foldstart),'.\\v(.*)','\\1\ \ \','') + +" in normal and insert mode ,, to add a slide +inoremap ,, <c-k>",<cr><cr><c-t><c-k>"( <cr><c-d><cr><c-k>""<c-o>4k<space><space> +nmap ,, o,, + +" ,z pipe a line to zsh +nnoremap ,z :.w !zsh<cr><cr> +" ,v show images from qiv -f +nnoremap ,v :.w !xargs qiv -f<cr><cr> + +" Presentation mode open and close folders automatically +command -nargs=0 Presentation set fdo=all fcl=all +Presentation + +" Edition mode reset default folding behavior +command -nargs=0 Edition set fcl= fdo=block,hor,mark,percent,quickfix,search,tag,undo +