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/filetype.vim | 4 ---- nvim/init.vim | 9 ++++++++- 2 files changed, 8 insertions(+), 5 deletions(-) delete mode 100644 nvim/filetype.vim diff --git a/nvim/filetype.vim b/nvim/filetype.vim deleted file mode 100644 index caf53f7..0000000 --- a/nvim/filetype.vim +++ /dev/null @@ -1,4 +0,0 @@ -augroup filetypedetect - autocmd BufRead,BufNewFile *mutt-* setfiletype mail - autocmd BufRead,BufNewFile *.h setfiletype c -augroup END 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