From 2d6a55909c7e476b3257444ae248fbc8f7a7ab93 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 1 Apr 2012 00:52:38 +0200 Subject: [PATCH] vimrc: Use local variables in s:CustomSyntaxHighlights(). --- vimrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index 2406b1c..a793d14 100644 --- a/vimrc +++ b/vimrc @@ -517,17 +517,17 @@ if has('syntax') if exists('*matchadd') " Highlight some important keywords in all documents. - for s:x in ['TODO', 'XXX', 'FIXME', + for l:x in ['TODO', 'XXX', 'FIXME', \ 'CHANGED', 'REMOVED', 'DELETED'] - call matchadd('Todo', s:x) + call matchadd('Todo', l:x) endfor " Highlight unicode whitespace which is no normal whitespace (0x20). - for s:x in ['00a0', '1680', '180e', '2000', '2001', '2002', + for l:x in ['00a0', '1680', '180e', '2000', '2001', '2002', \ '2003', '2004', '2005', '2006', '2007', '2008', \ '2009', '200a', '200b', '200c', '200d', '202f', \ '205f', '2060', '3000', 'feff'] - call matchadd('Error', '\%u' . s:x) + call matchadd('Error', '\%u' . l:x) endfor endif endfunction -- 2.44.1