Created
October 18, 2015 02:31
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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