diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 11:37:47 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 11:37:47 +1300 |
commit | 79101439124340815c5cfa2c5165b362008b662a (patch) | |
tree | ceded8be3798d6f8f8be90514fc5567c4fcc7cdd /vim/indent | |
parent | Move vim/after/ftdetect to vim/ftdetect (diff) | |
download | dotfiles-79101439124340815c5cfa2c5165b362008b662a.tar.gz dotfiles-79101439124340815c5cfa2c5165b362008b662a.zip |
Move PHP indent nixing into ~/.vim/indent
This method short-circuits the unwanted PHP expression-based indenting
configuration completely, rather than running it all and then undoing it
after the fact.
This involves creating a new direction ~/.vim/indent, and a Makefile
target install-vim-indent to copy everything into it.
Diffstat (limited to 'vim/indent')
-rw-r--r-- | vim/indent/php.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/indent/php.vim b/vim/indent/php.vim new file mode 100644 index 00000000..d0fb1f8f --- /dev/null +++ b/vim/indent/php.vim @@ -0,0 +1,4 @@ +" 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 |