From 352e2b820167ff2377350683a88a69af803be78c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 19 Jun 2019 15:24:01 +1200 Subject: Move 'foldmethod' definitions out to filetypes --- vim/after/ftplugin/c.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vim/after/ftplugin/c.vim') diff --git a/vim/after/ftplugin/c.vim b/vim/after/ftplugin/c.vim index dd99e81f..ea220e65 100644 --- a/vim/after/ftplugin/c.vim +++ b/vim/after/ftplugin/c.vim @@ -6,6 +6,10 @@ let b:undo_ftplugin .= '|setlocal commentstring< define< include<' setlocal complete+=d let b:undo_ftplugin .= '|setlocal complete<' +" Fold based on indent level +setlocal foldmethod=indent +let b:undo_ftplugin .= '|setlocal foldmethod<' + " Include system headers on UNIX if has('unix') setlocal path+=/usr/include -- cgit v1.2.3