From 773ef1ccaa2569b088b6d421b3f4b07dacd32686 Mon Sep 17 00:00:00 2001 From: Clemens Buchacher Date: Sun, 16 May 2010 09:04:07 +0200 Subject: [PATCH] fall back to diff filetype --- diffit.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/diffit.vim b/diffit.vim index 68508b6..8541ffe 100644 --- a/diffit.vim +++ b/diffit.vim @@ -155,6 +155,9 @@ function s:Diffit_init() let b:view = view let b:diffit = 1 setf git-diff + if !exists('b:current_syntax') + setf diff + end setlocal noswapfile setlocal buftype=nofile setlocal nowrap -- 2.11.4.GIT