diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 15:11:08 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 15:11:08 +1300 |
commit | 29e34f2d4db59a481faa32e51078c3b75bc091b6 (patch) | |
tree | 8cf3daa8efa1db424b260b308b92cbb7d789aa49 /vim/indent/html.vim | |
parent | Move filetype-specific indent options into indent/ (diff) | |
download | dotfiles-29e34f2d4db59a481faa32e51078c3b75bc091b6.tar.gz dotfiles-29e34f2d4db59a481faa32e51078c3b75bc091b6.zip |
Use a common file to restore global indent opts
Remove the duplicated code instated to use the global defaults for
indent-related options and put it into a common file to source with
:runtime.
Diffstat (limited to 'vim/indent/html.vim')
-rw-r--r-- | vim/indent/html.vim | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/vim/indent/html.vim b/vim/indent/html.vim index 654aa407..7b16fb3a 100644 --- a/vim/indent/html.vim +++ b/vim/indent/html.vim @@ -1,9 +1,5 @@ -" Explicitly set indent level; this matches the global default, but it's tidy -" to enforce it in case we changed from a filetype with different value (e.g. -" VimL) -setlocal shiftwidth=4 -setlocal softtabstop=4 -setlocal tabstop=4 +" Restore local indent settings to the global values +runtime indent/_GLOBAL.vim " Run tidy -eq -utf8 on file for the current buffer nnoremap <leader>v :exe "!tidy -eq -utf8 " . shellescape(expand("%"))<CR> |