From: Simon Ruderich Date: Sat, 31 Mar 2012 22:52:38 +0000 (+0200) Subject: vimrc: Use local variables in s:CustomSyntaxHighlights(). X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=2d6a55909c7e476b3257444ae248fbc8f7a7ab93 vimrc: Use local variables in s:CustomSyntaxHighlights(). --- 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