Skip to content

Instantly share code, notes, and snippets.

@rsdy
Created April 26, 2012 14:24
Show Gist options
  • Save rsdy/2499931 to your computer and use it in GitHub Desktop.
Save rsdy/2499931 to your computer and use it in GitHub Desktop.
vim prezentation macros
au! BufRead,BufNewFile *.prez setfiletype prez
" this file should be placed under ~/.vim/ftplugin/prez.vim
" press <return> in normal mode to get the next slide
map <cr> zM/}}}<cr>za
" press <leader>n in normal mode to create a new fold block and enter insert mode
map <leader>n o<cr>{{{<cr><cr>}}}<esc>ki
set et sw=4 tw=120 nolist nocursorline foldmethod=marker nonu linebreak noai scrolloff=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment