From cc395803824394b997197d7a6568bafb1d36709a Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 2 Feb 2020 00:04:00 +0100 Subject: [PATCH] Fast fold --- after/plugin/plugin_settings.vim | 20 ++++++++++++++++++++ vimrc | 1 + 2 files changed, 21 insertions(+) diff --git a/after/plugin/plugin_settings.vim b/after/plugin/plugin_settings.vim index 04f87ca..342a3a8 100644 --- a/after/plugin/plugin_settings.vim +++ b/after/plugin/plugin_settings.vim @@ -178,3 +178,23 @@ endfunction command! -nargs=* Rag \ call fzf#vim#ag(, WithGitRoot()) + +" fastfold +nmap zuz (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 diff --git a/vimrc b/vimrc index f023d68..824fdfb 100644 --- a/vimrc +++ b/vimrc @@ -43,6 +43,7 @@ Plug 'vimwiki/vimwiki' Plug 'vmchale/dhall-vim' Plug 'Shougo/echodoc.vim' Plug 'tpope/vim-scriptease' +Plug 'Konfekt/FastFold' " scm