summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/.vim/ftplugin/c.vim3
-rw-r--r--vim/.vimrc2
2 files changed, 3 insertions, 2 deletions
diff --git a/vim/.vim/ftplugin/c.vim b/vim/.vim/ftplugin/c.vim
index 26ceca4..ce42c00 100644
--- a/vim/.vim/ftplugin/c.vim
+++ b/vim/.vim/ftplugin/c.vim
@@ -1 +1,2 @@
-set syntax=c.doxygen
+setlocal foldmethod=syntax
+setlocal syntax=c.doxygen
diff --git a/vim/.vimrc b/vim/.vimrc
index 3f8afce..137b697 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -43,7 +43,7 @@ function TrimWhiteSpace()
nnoremap <F2> :call TrimWhiteSpace()<CR>
" Fold
-set foldmethod=syntax
+set foldmethod=indent
set foldlevelstart=99
" HighLight search and map CarrierReturn to remove highlight