【update】change iskeyword settings to user global settings

This commit is contained in:
zeayes
2014-11-26 11:23:42 +08:00
parent 0c21b14699
commit 1557c7e1b7

View File

@@ -12,6 +12,12 @@ let s:hex={}
let b:matchescache = {} let b:matchescache = {}
let b:color_pattern = {} let b:color_pattern = {}
" set buffer iskeyword
let b:keywords = exists('g:coloresque_keywords') ? g:coloresque_keywords : []
for keyword in b:keywords
exe printf('set iskeyword+=%s', keyword)
endfor
let w:colorDictRegExp='' let w:colorDictRegExp=''
for i in range(0, 255) for i in range(0, 255)
let s:hex[ printf( '%02x', i ) ] = i let s:hex[ printf( '%02x', i ) ] = i
@@ -122,9 +128,6 @@ function! s:VimCssInit(update)
if a:update==1 if a:update==1
call s:ClearMatches() call s:ClearMatches()
endif endif
:set isk+=-
:set isk+=#
:set isk+=.
if len(keys(b:color_pattern))>0 if len(keys(b:color_pattern))>0
call s:RestoreColors() call s:RestoreColors()