Matchit support + small fix by Aaron

This commit is contained in:
Holger Rapp 2012-08-21 12:48:06 +02:00
commit a916c607b5
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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")