瀏覽代碼

Update vim configuration: add code folding parameters

Emmanuel Bouthenot 13 年之前
父節點
當前提交
9432c8d534
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      .vim/vimrc

+ 9 - 0
.vim/vimrc

@@ -167,6 +167,15 @@ set incsearch "incremental searches
 set ignorecase "ignore case in search patterns
 set infercase "smart case support
 
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" Code folding
+"
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+set foldmethod=indent   "fold based on indent
+set foldnestmax=10      "deepest fold is 10 levels
+set nofoldenable        "dont fold by default
+set foldlevel=1
+
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " Email Settings
 "