Skip to content

Instantly share code, notes, and snippets.

@kballenegger
Created February 5, 2015 10:28
Show Gist options
  • Save kballenegger/f3003b6f12d0a4ad389c to your computer and use it in GitHub Desktop.
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
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