From b9aa50816bef14a45083fd2cc4a789bb65d002da Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Thu, 19 Jul 2018 14:09:22 +0200 Subject: nvim: Move filetype.vim into init.vim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's too short for it to make sense to split them up Signed-off-by: Johannes Löthberg --- nvim/init.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'nvim/init.vim') diff --git a/nvim/init.vim b/nvim/init.vim index 76e25df..6a1d295 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -98,7 +98,6 @@ nmap gj nmap gk - """ " CtrlP " @@ -113,6 +112,14 @@ noremap px :Denite buffer file_mru file_rec noremap pg :Denite grep +""" +" Filetypes +" +augroup filetypedetect + autocmd BufRead,BufNewFile *mutt-* setfiletype mail + autocmd BufRead,BufNewFile *.h setfiletype c +augroup END + " Horrible hack to work-around weird corrupted lines on window resize " https://github.com/neovim/neovim/issues/7861 -- cgit v1.2.3-70-g09d2