" " Options " set nocompatible set filetype=present set expandtab set textwidth=72 set nohlsearch set comments=f:- set formatoptions+=o set scrolloff=0 set laststatus=0 set noruler set bs=2 set foldenable set foldmethod=marker set foldcolumn=0 set foldminlines=1 set foldtext=substitute(getline(v:foldstart+1),'{{{','\ \ \ ','') set fillchars+=fold:\ " " MAPS " nnoremap \K1 zoj[zztj:map K \K2:redraw! nnoremap \K2 zcgg'':map K \K1:redraw! nmap K \K1 " " SYNTAX (must be the last entry) " if version < 600 syntax clear elseif exists("b:current_syntax") finish endif syn match presIgnore '^-.*' syn match presIgnore '^+' syn match presIgnore '[{}]\{3,}' syn match presIgnore '[{}]\{3,}$' syn match presHeader '^\s*[{}]\{3,}.*\n\%( \{8}\S.*\)\?' contains=presIgnore syn match presSpecial '\<\%(options\|commands\=\):' " Define the default highlighting. " For version 5.7 and earlier: only when not done already " For version 5.8 and later: only when an item doesn't have highlighting yet if version >= 508 || !exists("did_present_syntax_inits") if version < 508 let did_present_syntax_inits = 1 command! -nargs=+ HiLink hi link else command! -nargs=+ HiLink hi def link endif hi presIgnore ctermbg=8 ctermfg=7 guifg=LightGrey guibg=NONE HiLink presHeader Folded HiLink presSpecial Special hi Folded term=standout ctermfg=4 ctermbg=8 guifg=Blue guibg=NONE hi Todo ctermbg=6 ctermfg=0 delcommand HiLink endif let b:current_syntax = "present" "EOF vim: ts=8 noet tw=100 sw=8 sts=0