diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-19 15:24:01 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-19 15:24:01 +1200 |
commit | 352e2b820167ff2377350683a88a69af803be78c (patch) | |
tree | dd579c6f2170b8dcb5191101c69f97e0d6e12206 /vim/after/ftplugin/sh.vim | |
parent | Inline option resets and undos in Vim C ftplugin (diff) | |
download | dotfiles-352e2b820167ff2377350683a88a69af803be78c.tar.gz dotfiles-352e2b820167ff2377350683a88a69af803be78c.zip |
Move 'foldmethod' definitions out to filetypes
Diffstat (limited to 'vim/after/ftplugin/sh.vim')
-rw-r--r-- | vim/after/ftplugin/sh.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/after/ftplugin/sh.vim b/vim/after/ftplugin/sh.vim index 8468b133..2c68d83a 100644 --- a/vim/after/ftplugin/sh.vim +++ b/vim/after/ftplugin/sh.vim @@ -3,6 +3,10 @@ setlocal comments=:# setlocal formatoptions+=or let b:undo_ftplugin .= '|setlocal comments< formatoptions<' +" Fold based on indent level +setlocal foldmethod=indent +let b:undo_ftplugin .= '|setlocal foldmethod<' + " If subtype is Bash, set 'keywordprg' to han(1df) if exists('b:is_bash') setlocal keywordprg=han |