aboutsummaryrefslogtreecommitdiff
path: root/vim/indent
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-30 11:37:47 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-30 11:37:47 +1300
commit79101439124340815c5cfa2c5165b362008b662a (patch)
treeceded8be3798d6f8f8be90514fc5567c4fcc7cdd /vim/indent
parentMove vim/after/ftdetect to vim/ftdetect (diff)
downloaddotfiles-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.vim4
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