Skip to content

Commit

Permalink
Updated slide presentation tool
Browse files Browse the repository at this point in the history
  • Loading branch information
tisnik committed Sep 19, 2023
1 parent 1ebb48c commit 9915302
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion JBug/clojure/slides/_.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
" Slideshow tool v1.1
" Pavel Tisnovsky 2012, 2013, 2014
" Pavel Tisnovsky 2012, 2013, 2014, 2015, 2016, 2017, 2023

let g:slides=readfile("list.txt")
let g:index=0
Expand Down Expand Up @@ -48,6 +48,9 @@ endfunction

function! ShowActualSlide()
execute "edit" g:slides[g:index]
" move cursor at the very beginning of line
normal gg
normal 0
endfunction

function! StatusLine()
Expand All @@ -57,6 +60,7 @@ endfunction
" Hot keys
map <PageUp> :call ShowPrevSlide()<cr>
map <PageDown> :call ShowNextSlide()<cr>
map <Space> :call ShowNextSlide()<cr>
map <Home> :call ShowFirstSlide()<cr>
map <End> :call ShowLastSlide()<cr>
Expand Down

0 comments on commit 9915302

Please sign in to comment.