aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-01-15 08:39:48 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-01-15 08:39:48 +1300
commit1e8d70e452355c092ef19a8a70117caa427b72d4 (patch)
tree5eb9e12bd1b4b46af7aae37a7b5bfc5e7385f955 /vim/after
parentTry to use ed -v (diff)
downloaddotfiles-1e8d70e452355c092ef19a8a70117caa427b72d4.tar.gz
dotfiles-1e8d70e452355c092ef19a8a70117caa427b72d4.zip
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.
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/indent/php.vim5
1 files changed, 5 insertions, 0 deletions
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=
+