From 6a6db2d411340ac8d596f823d3c8cc39d0fb2d31 Mon Sep 17 00:00:00 2001 From: Zhao Cai Date: Fri, 2 Nov 2012 05:32:08 -0400 Subject: [PATCH] set commentstring --- ftplugin/snippet.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ftplugin/snippet.vim b/ftplugin/snippet.vim index 2554bdb..99235a6 100644 --- a/ftplugin/snippet.vim +++ b/ftplugin/snippet.vim @@ -34,9 +34,10 @@ endif setlocal expandtab let &l:shiftwidth=&tabstop let &l:softtabstop=&tabstop +let &l:commentstring="#%s" let b:undo_ftplugin .= ' - \ | setlocal expandtab< shiftwidth< softtabstop< tabstop< + \ | setlocal expandtab< shiftwidth< softtabstop< tabstop< commentstring< \' let &cpo = s:save_cpo