From 79101439124340815c5cfa2c5165b362008b662a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 30 Oct 2017 11:37:47 +1300 Subject: 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. --- vim/indent/php.vim | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 vim/indent/php.vim (limited to 'vim/indent') 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 -- cgit v1.2.3