diff options
author | Ekaitz Zárraga <ekaitz.zarraga@gmail.com> | 2016-08-05 23:34:22 +0200 |
---|---|---|
committer | Ekaitz Zárraga <ekaitz.zarraga@gmail.com> | 2016-08-05 23:34:22 +0200 |
commit | ddf74e564339c72bd536d4a3e03d44488710a56e (patch) | |
tree | 31ff11b74b98f87d4cb4d8b8cc9a0e4856fca7e4 /nvim | |
parent | e430499f676f27526b8ef8b1f17e6f98205168b2 (diff) |
foldmethod indent by default syntax for C
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/nvim/ftplugin/c.vim | 3 | ||||
-rw-r--r-- | nvim/nvim/init.vim | 2 |
2 files changed, 3 insertions, 2 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 |