From ddf74e564339c72bd536d4a3e03d44488710a56e Mon Sep 17 00:00:00 2001 From: Ekaitz Zárraga Date: Fri, 5 Aug 2016 23:34:22 +0200 Subject: foldmethod indent by default syntax for C --- vim/.vim/ftplugin/c.vim | 3 ++- vim/.vimrc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'vim') 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 :call TrimWhiteSpace() " Fold -set foldmethod=syntax +set foldmethod=indent set foldlevelstart=99 " HighLight search and map CarrierReturn to remove highlight -- cgit v1.2.3