From 3a7919fdb576a5774b7e3f7aa5fb610c1dd2628b Mon Sep 17 00:00:00 2001 From: Vasily Toropov Date: Sun, 26 Jul 2015 17:39:30 +1000 Subject: [PATCH] Fixed closing apostrophe in clojure files --- autoload/delimitMate.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/delimitMate.vim b/autoload/delimitMate.vim index ec5939a..a769c0c 100644 --- a/autoload/delimitMate.vim +++ b/autoload/delimitMate.vim @@ -384,6 +384,9 @@ function! delimitMate#QuoteDelim(char) "{{{ " If we are in a vim file and it looks like we're starting a comment, do " not add a closing char. return a:char + elseif a:char == "'" && index(split(&ft, '\.'), "clojure") != -1 + " If we are in a clojure file, do not add a closing apostrophe. + return a:char elseif s:is_smart_quote(a:char) " Seems like a smart quote, insert a single char. return a:char