From 565f9d9e52df93c936c0608912723e240ccab6b2 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 25 Nov 2015 05:14:27 +0100 Subject: nvim/init: Move *.h filetype setting to filetype.vim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nvim/filetype.vim | 1 + nvim/init.vim | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/nvim/filetype.vim b/nvim/filetype.vim index 9b5f5f3..d9d6196 100644 --- a/nvim/filetype.vim +++ b/nvim/filetype.vim @@ -1,5 +1,6 @@ augroup filetypedetect " Mail autocmd BufRead,BufNewFile *mutt-* setfiletype mail + autocmd BufRead,BufNewFile *.h setfiletype c au BufReadPost PKGBUILD set syntax=PKGBUILD augroup END diff --git a/nvim/init.vim b/nvim/init.vim index 4f2f73a..06b8478 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -160,12 +160,6 @@ autocmd BufWinLeave * call clearmatches() -" Why does vim set the filetype of .h files as C++? -augroup filetypes - autocmd! - autocmd BufRead,BufNewFile *.h set filetype=c -augroup END - augroup indentation autocmd! autocmd FileType yaml setlocal ts=2 sts=2 sw=2 noet -- cgit v1.2.3-70-g09d2