diff options
-rw-r--r-- | nvim/nvim/ftplugin/c.vim | 3 | ||||
-rw-r--r-- | nvim/nvim/init.vim | 2 | ||||
-rw-r--r-- | vim/.vim/ftplugin/c.vim | 3 | ||||
-rw-r--r-- | vim/.vimrc | 2 |
4 files changed, 6 insertions, 4 deletions
diff --git a/nvim/nvim/ftplugin/c.vim b/nvim/nvim/ftplugin/c.vim index 26ceca4..ce42c00 100644 --- a/nvim/nvim/ftplugin/c.vim +++ b/nvim/nvim/ftplugin/c.vim @@ -1 +1,2 @@ -set syntax=c.doxygen +setlocal foldmethod=syntax +setlocal syntax=c.doxygen diff --git a/nvim/nvim/init.vim b/nvim/nvim/init.vim index 4bbcbea..146effd 100644 --- a/nvim/nvim/init.vim +++ b/nvim/nvim/init.vim @@ -35,7 +35,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 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 @@ -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 |