Created
April 26, 2012 14:24
-
-
Save rsdy/2499931 to your computer and use it in GitHub Desktop.
vim prezentation macros
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
au! BufRead,BufNewFile *.prez setfiletype prez |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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