Created
February 5, 2015 10:28
-
-
Save kballenegger/f3003b6f12d0a4ad389c to your computer and use it in GitHub Desktop.
Turns vim into a presentation tool for markdown files with lots of empty newlines between sections
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
set colorcolumn=0 | |
set nocursorline | |
set noshowmode | |
set noshowcmd | |
set noruler | |
set laststatus=0 | |
set noswapfile | |
set nomodifiable | |
highlight clear OverLength | |
highlight clear ExtraWhitespace | |
hi! link FoldColumn Normal | |
set foldcolumn=10 | |
set nonumber | |
set norelativenumber | |
set hidden | |
set scrolloff=0 | |
set textwidth=0 | |
au BufEnter * let @/='\v\n{4}^#' | |
au BufEnter * normal n | |
nunmap n | |
nunmap N | |
noremap n 7jnz<CR> | |
noremap N Nz<CR> | |
map <PageUp> N | |
map <Left> N | |
map p N | |
map <PageDown> n | |
map <Right> n | |
map Q :q!<CR> | |
map gg ggn | |
map G GN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment