diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-17 00:25:40 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-17 00:25:40 +1200 |
commit | be05e0243b63d52fff66af6d3e39b1818320a665 (patch) | |
tree | 6be6f18f6ecd860844d57502261cfd4e5e098693 /vim/after/indent/vim.vim | |
parent | Merge branch 'release/v4.28.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-46df76c1c220e650407ae0d7d695af8972205d66.tar.gz (sig) dotfiles-46df76c1c220e650407ae0d7d695af8972205d66.zip |
Merge branch 'release/v4.29.0'v4.29.0
* release/v4.29.0:
Bump VERSION
Revert "Dispense with system-dependent files"
Adjust formatting of autocmd
Rearrange filetype and syntax logic
Add note about 'ttymouse' option existence
Restore 'ttymouse' option existence test
Move filetype and syntax logic to end of .vimrc
Remove `a` and `A` flags from 'cpoptions'
Adjust order of 'backspace' flags per docs
Adjust order of some directives
Leverage negative 'softtabstop' value
Dispense with system-dependent files
Diffstat (limited to 'vim/after/indent/vim.vim')
-rw-r--r-- | vim/after/indent/vim.vim | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/vim/after/indent/vim.vim b/vim/after/indent/vim.vim index 6e2eb7f3..0767bca0 100644 --- a/vim/after/indent/vim.vim +++ b/vim/after/indent/vim.vim @@ -1,5 +1,5 @@ -" Remove inapplicable defaults from 'indentkeys' -" Should only need to undo this if the stock plugin didn't +" Remove inapplicable defaults from 'indentkeys'; we should only need to undo +" this if the stock plugin didn't already arrange that (before v7.3.539) setlocal indentkeys-=0#,0{,0},0),: if !exists('b:undo_indent') let b:undo_indent = 'setlocal indentkeys<' @@ -7,5 +7,8 @@ endif " Observe VimL conventions for two-space indents setlocal shiftwidth=2 -setlocal softtabstop=2 -let b:undo_indent .= '|setlocal shiftwidth< softtabstop<' +let b:undo_indent .= '|setlocal shiftwidth<' +if &softtabstop != -1 + let &l:softtabstop = &l:shiftwidth + let b:undo_indent .= '|setlocal softtabstop<' +endif |