aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin
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/ftplugin
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/ftplugin')
-rw-r--r--vim/ftplugin/awk.vim4
-rw-r--r--vim/ftplugin/sed.vim4
2 files changed, 8 insertions, 0 deletions
diff --git a/vim/ftplugin/awk.vim b/vim/ftplugin/awk.vim
index 663ba810..310534ac 100644
--- a/vim/ftplugin/awk.vim
+++ b/vim/ftplugin/awk.vim
@@ -9,6 +9,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<'
+
" Specify ERE flavor for regex_escape.vim
let b:regex_escape_flavor = 'ere'
let b:undo_ftplugin .= '|unlet b:regex_escape_flavor'
diff --git a/vim/ftplugin/sed.vim b/vim/ftplugin/sed.vim
index 9627941d..b154eadf 100644
--- a/vim/ftplugin/sed.vim
+++ b/vim/ftplugin/sed.vim
@@ -8,3 +8,7 @@ let b:did_ftplugin = 1
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<'