From 29afa295aed083d9ad214028efb8c7c60bdd0a57 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 1 Jan 2013 01:34:27 -0500 Subject: [PATCH] Add : replacement Both Ruby and Clojure use :keywords, so I'm considering this general enough to make a default. --- plugin/surround.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/surround.vim b/plugin/surround.vim index 0ec6427..825d90c 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -162,6 +162,9 @@ function! s:wrap(string,char,type,...) elseif newchar ==# 's' let before = ' ' let after = '' + elseif newchar ==# ':' + let before = ':' + let after = '' elseif newchar =~# "[tT\<,]" let dounmapp = 0 let dounmapb = 0