From c8d1971c4bcb6ae07ba1f37fa75885b321e8c566 Mon Sep 17 00:00:00 2001 From: Mike Morearty Date: Sat, 26 Jan 2013 08:29:37 -0800 Subject: [PATCH] Set comment string to #%s This allows the TPope's vim-commentary plugin to work with .snippet files; e.g. typing "\\\" will comment out the current line with "# ". --- ftplugin/snippets.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ftplugin/snippets.vim b/ftplugin/snippets.vim index 6c53398..5a8b2bb 100644 --- a/ftplugin/snippets.vim +++ b/ftplugin/snippets.vim @@ -4,6 +4,8 @@ setlocal foldmethod=syntax setlocal foldlevel=99 +setlocal commentstring=#%s + " Define match words for use with matchit plugin " http://www.vim.org/scripts/script.php?script_id=39 if exists("loaded_matchit") && !exists("b:match_words")