aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/vim.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-19 15:24:01 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-19 15:24:01 +1200
commit352e2b820167ff2377350683a88a69af803be78c (patch)
treedd579c6f2170b8dcb5191101c69f97e0d6e12206 /vim/after/ftplugin/vim.vim
parentInline option resets and undos in Vim C ftplugin (diff)
downloaddotfiles-352e2b820167ff2377350683a88a69af803be78c.tar.gz
dotfiles-352e2b820167ff2377350683a88a69af803be78c.zip
Move 'foldmethod' definitions out to filetypes
Diffstat (limited to 'vim/after/ftplugin/vim.vim')
-rw-r--r--vim/after/ftplugin/vim.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/after/ftplugin/vim.vim b/vim/after/ftplugin/vim.vim
index 30182bba..01f971b9 100644
--- a/vim/after/ftplugin/vim.vim
+++ b/vim/after/ftplugin/vim.vim
@@ -9,6 +9,10 @@ endif
let b:regex_escape_flavor = 'vim'
let b:undo_ftplugin .= '|unlet b:regex_escape_flavor'
+" Fold based on indent level
+setlocal foldmethod=indent
+let b:undo_ftplugin .= '|setlocal foldmethod<'
+
" Use :help as 'keywordprg' if not already set; this is the default since Vim
" v8.1.1290
if &keywordprg !=# ':help'