diff options
Diffstat (limited to 'vim/macros/indent/spaces.vim')
-rw-r--r-- | vim/macros/indent/spaces.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vim/macros/indent/spaces.vim b/vim/macros/indent/spaces.vim new file mode 100644 index 00000000..d4b36afe --- /dev/null +++ b/vim/macros/indent/spaces.vim @@ -0,0 +1,7 @@ +" Use spaces for current buffer's indentation (set 'shiftwidth' first) +setlocal expandtab +let b:undo_ftplugin .= '|setlocal expandtab< shiftwidth<' +if &l:softtabstop != -1 + let &l:softtabstop = &l:shiftwidth + let b:undo_ftplugin .= '|setlocal softtabstop<' +endif |