diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 15:11:08 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 15:11:08 +1300 |
commit | 29e34f2d4db59a481faa32e51078c3b75bc091b6 (patch) | |
tree | 8cf3daa8efa1db424b260b308b92cbb7d789aa49 /vim/indent/php.vim | |
parent | Move filetype-specific indent options into indent/ (diff) | |
download | dotfiles-29e34f2d4db59a481faa32e51078c3b75bc091b6.tar.gz dotfiles-29e34f2d4db59a481faa32e51078c3b75bc091b6.zip |
Use a common file to restore global indent opts
Remove the duplicated code instated to use the global defaults for
indent-related options and put it into a common file to source with
:runtime.
Diffstat (limited to 'vim/indent/php.vim')
-rw-r--r-- | vim/indent/php.vim | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/vim/indent/php.vim b/vim/indent/php.vim index 9e084f24..025bf3f1 100644 --- a/vim/indent/php.vim +++ b/vim/indent/php.vim @@ -1,11 +1,7 @@ +" Restore local indent settings to the global values +runtime indent/_GLOBAL.vim + " Lie to the php.vim indent file and tell it that it's already loaded itself, " to stop it processing its ridiculous expression-based indenting that never " seems to do what I want. Just plain autoindent is fine. let b:did_indent = 1 - -" Explicitly set indent level; this matches the global default, but it's tidy -" to enforce it in case we changed from a filetype with different value (e.g. -" VimL) -setlocal shiftwidth=4 -setlocal softtabstop=4 -setlocal tabstop=4 |