From 6a95db6af6a4af28c2189227938d42eeb75da9d0 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 29 Oct 2017 00:50:04 +1300 Subject: Merge `filetype indent` with `filetype plugin` While it would be ideal to keep the indentation-related configuration in the config/indent.vim file, that approach ends up double-loading filetype.vim from the core, so we'll merge them into a single call in config/file.vim instead. --- vim/config/file.vim | 2 +- vim/config/indent.vim | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'vim/config') diff --git a/vim/config/file.vim b/vim/config/file.vim index 0e2f2e96..07c20cd5 100644 --- a/vim/config/file.vim +++ b/vim/config/file.vim @@ -1,6 +1,6 @@ " Load plugins for file types if has('autocmd') - filetype plugin on + filetype plugin indent on endif " Use all ancestors of current directory for :find diff --git a/vim/config/indent.vim b/vim/config/indent.vim index de6b154d..f6dfd416 100644 --- a/vim/config/indent.vim +++ b/vim/config/indent.vim @@ -1,8 +1,3 @@ -" Load indentation for file types -if has('autocmd') - filetype indent on -endif - " Adopt the indent of the last line on new lines; interestingly, plugins that " do clever things with indenting will often assume this is set set autoindent -- cgit v1.2.3