Fast fold

This commit is contained in:
Julian Ospald 2020-02-02 00:04:00 +01:00
parent 523dd1ad3a
commit cc39580382
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
2 changed files with 21 additions and 0 deletions

View File

@ -178,3 +178,23 @@ endfunction
command! -nargs=* Rag command! -nargs=* Rag
\ call fzf#vim#ag(<q-args>, WithGitRoot()) \ call fzf#vim#ag(<q-args>, WithGitRoot())
" fastfold
nmap zuz <Plug>(FastFoldUpdate)
let g:fastfold_savehook = 1
let g:fastfold_fold_command_suffixes = ['x','X','a','A','o','O','c','C']
let g:fastfold_fold_movement_commands = [']z', '[z', 'zj', 'zk']
let g:markdown_folding = 1
let g:tex_fold_enabled = 1
let g:vimsyn_folding = 'af'
let g:xml_syntax_folding = 1
let g:html_syntax_folding = 1
let g:javaScript_fold = 1
let g:sh_fold_enabled= 7
let g:ruby_fold = 1
let g:perl_fold = 1
let g:perl_fold_blocks = 1
let g:r_syntax_folding = 1
let g:rust_fold = 1
let g:haskell_fold = 1

1
vimrc
View File

@ -43,6 +43,7 @@ Plug 'vimwiki/vimwiki'
Plug 'vmchale/dhall-vim' Plug 'vmchale/dhall-vim'
Plug 'Shougo/echodoc.vim' Plug 'Shougo/echodoc.vim'
Plug 'tpope/vim-scriptease' Plug 'tpope/vim-scriptease'
Plug 'Konfekt/FastFold'
" scm " scm