From ebc5941b52d673d4e2d067f7e5a96df82da253e2 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 6 Jul 2016 20:48:14 +0100 Subject: [PATCH] Improve vmap 0 to play nice with comments --- after/ftplugin/c.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/after/ftplugin/c.vim b/after/ftplugin/c.vim index b329168..6f3c734 100644 --- a/after/ftplugin/c.vim +++ b/after/ftplugin/c.vim @@ -1,5 +1,5 @@ " Surround visual block in #if 0 block -vmap 0 V''>o#endif +vmap 0 V'<[ ki#if 0'>o#endif " Set 'comments' to format dashed lists in comments. setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,:// " Set 'commentstring' to single line comment style.