From d115ba06a04b0772246da35af8e9dad87933a0d1 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 30 Jun 2018 00:51:23 +1200 Subject: Review vim/ftplugin and vim/indent files --- vim/indent/password.vim | 2 +- vim/indent/php.vim | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'vim/indent') diff --git a/vim/indent/password.vim b/vim/indent/password.vim index e633fe05..e37d0387 100644 --- a/vim/indent/password.vim +++ b/vim/indent/password.vim @@ -4,7 +4,7 @@ if exists('b:did_indent') endif let b:did_indent = 1 -" Manual indenting and literal tabs +" Manual indenting and literal tabs for passwords setlocal noautoindent setlocal noexpandtab setlocal softtabstop=0 diff --git a/vim/indent/php.vim b/vim/indent/php.vim index 6a61f105..7747d77e 100644 --- a/vim/indent/php.vim +++ b/vim/indent/php.vim @@ -1,10 +1,10 @@ -" Replace Vim's stock PHP indent rules. They're very complicated and don't -" work in a predictable way. +" Only do this when not done yet for this buffer if exists('b:did_indent') finish endif let b:did_indent = 1 -" Easier just to use 'autoindent'; not perfect, but predictable. +" Replace Vim's stock PHP indent rules. They're very complicated and don't +" work in a predictable way. Just use 'autoindent'. setlocal autoindent let b:undo_indent = 'setlocal autoindent<' -- cgit v1.2.3