From 1f151bea648a7d304a6cc2f4cf12135cb13c49bc Mon Sep 17 00:00:00 2001 From: Aaron Schrab Date: Wed, 15 Aug 2012 23:38:41 -0400 Subject: [PATCH 1/2] Remove obsolete comment Change in b319569 made this comment obsolete. --- test.py | 1 - 1 file changed, 1 deletion(-) diff --git a/test.py b/test.py index 94dad25..1fbbc92 100755 --- a/test.py +++ b/test.py @@ -102,7 +102,6 @@ class VimInterfaceScreen(VimInterface): repl = lambda m: '\\' + m.group(0) s = re.sub( r"[$^#\\']", repl, s ) - # Escape single quotes in command to protect from shell if sys.version_info >= (3,0): s = s.encode("utf-8") From 5f6d281687615f5a5391c55401809dcd22b5df2d Mon Sep 17 00:00:00 2001 From: Aaron Schrab Date: Mon, 20 Aug 2012 13:24:17 -0400 Subject: [PATCH 2/2] Matchit support for snippet files If the matchit (http://www.vim.org/scripts/script.php?script_id=39) plugin is loaded, define pairs to be handled by the % key. --- ftplugin/snippets.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ftplugin/snippets.vim b/ftplugin/snippets.vim index c38464d..6c53398 100644 --- a/ftplugin/snippets.vim +++ b/ftplugin/snippets.vim @@ -3,3 +3,10 @@ " Fold by syntax, but open all folds by default setlocal foldmethod=syntax setlocal foldlevel=99 + +" 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") + let b:match_ignorecase = 0 + let b:match_words = '^snippet\>:^endsnippet\>,^global\>:^endglobal\>,\${:}' +endif