Skip to content

Instantly share code, notes, and snippets.

@chirvo
Created October 18, 2015 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chirvo/8c3634fffe378e6c8d49 to your computer and use it in GitHub Desktop.
Save chirvo/8c3634fffe378e6c8d49 to your computer and use it in GitHub Desktop.
Fixes vim selection range by removing certain symbols from isk when using coloresque.vim.
diff --git a/after/syntax/css/vim-coloresque.vim b/after/syntax/css/vim-coloresque.vim
index c80a9a5..a0a6cdf 100644
--- a/after/syntax/css/vim-coloresque.vim
+++ b/after/syntax/css/vim-coloresque.vim
@@ -128,6 +128,9 @@ function! s:VimCssInit(update)
if len(keys(b:color_pattern))>0
call s:RestoreColors()
+ :set isk-=-
+ :set isk-=#
+ :set isk-=.
return
endif
@@ -139,6 +142,9 @@ function! s:VimCssInit(update)
call s:PreviewCSSColor(join(getline(1,'$'), "\n"))
"endfor
+ :set isk-=-
+ :set isk-=#
+ :set isk-=.
endfunction
function! s:AdditionalColors()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment