From 1e8d70e452355c092ef19a8a70117caa427b72d4 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 15 Jan 2015 08:39:48 +1300 Subject: Discard PHP's indenting It keeps doing things I don't expect, and the code looks hard to change. autoindent should do the job. I might have a go at writing my own later to handle obvious cases like an opening brace or case statement on the previous line. --- vim/after/indent/php.vim | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 vim/after/indent/php.vim (limited to 'vim/after/indent') diff --git a/vim/after/indent/php.vim b/vim/after/indent/php.vim new file mode 100644 index 00000000..c36c7ff1 --- /dev/null +++ b/vim/after/indent/php.vim @@ -0,0 +1,5 @@ +" The PHP syntax file's expression-based indenting behaviour annoys me more +" often than it helps me; turn it off and just use autoindent +setlocal autoindent +setlocal indentexpr= + -- cgit v1.2.3