1. 通过fdm实现代码折叠:set fdm=xxx有以下6种方式实现折叠:|fold-manual| manual Folds are created manually. |fold-indent| indent Lines with equal indent form a fold. |fold-expr| expr "foldexpr" gives the fold level of a line. |fold-marker| marker Markers are used to specify folds. |fold-syntax| syntax Syntax highlighting items specify folds. |fold-diff| diff Fold text that is not changed. 2. 如下配置set fdm=syntax以语法块实现折叠:[root@~/wade/codeReview/redis-2.8.17/src]# cat ~/.vimrc set nocompatible set nu
"" ctags map <C-F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR> "" taglist let Tlist_Show_One_File=1 let Tlist_Exit_OnlyWindow=1 nnoremap <F8> :TlistToggle<CR>