set commentstring=
set shiftwidth=2
set textwidth=79
set fillchars+=fold:─
set foldtext=unobtrusive_fold#text()
syntax enable
filetype plugin indent on
autocmd FileType * UnobtrusiveFoldComment
autocmd FileType markdown UnobtrusiveFoldChar #
function! Demo(file) abort
set background=dark
highlight! Comment term=NONE cterm=NONE gui=NONE ctermbg=NONE guibg=NONE ctermfg=Grey guifg=Grey
highlight! link Folded Comment
execute 'args' a:file
nnoremap gz :redraw \| sleep 1<CR>
normal ggzMgz
if a:file ==# '~/.vim/vimrc'
normal 5jgz
normal zagz
normal 10jgz
normal zagz
normal gz
normal zcgz
normal zcgz
endif
if a:file ==# '~/projects/ansible/playbook/desktop/desktop.yml'
normal 12jgz
normal zagz
normal 7jgz
normal zagz
normal gz
normal zcgz
normal zcgz
endif
qall!
endfunction
|