godlygeek / csapprox Goto Github PK
View Code? Open in Web Editor NEWMake gvim-only colorschemes work transparently in terminal vim
Home Page: http://www.vim.org/scripts/script.php?script_id=2390
Make gvim-only colorschemes work transparently in terminal vim
Home Page: http://www.vim.org/scripts/script.php?script_id=2390
Hi,
When using CSApproxSnapshot, the generated colorscheme causes an unwanted loss of syntax highlighting in some cases. Please refer to mhinz/vim-signify#31 for more details.
Hi godlygeek,
As of late I am getting this error every time I start vim or try to set a colorscheme:
Error detected while processing function 20_CSApprox..20_CSApproxImpl..20_FixupGuiInfo:
line 1:
E716: Key not present in Dictionary: 0
E15: Invalid expression: a:highlights[s:hlid_normal].gui.bg == ''
Error detected while processing /home/mitko/config/vimfiles/bundle/csapprox/after/plugin/CSApprox.vim:
line 3:
E171: Missing :endif
Cheers
This is really a duplicate of issue #6, I did not have permission to reopen it so I created a new one.
After installing csapprox I get the following error when I start vim:
Error detected while processing function <SNR>16_CSApprox..<SNR>16_CSApproxImpl..<SNR>16_FixupGuiInfo:
line 1:
E716: Key not present in Dictionary: 0
E15: Invalid expression: a:highlights[s:hlid_normal].gui.bg == ''
Error detected while processing /home/marios/.vim/bundle/csapprox/after/plugin/CSApprox.vim:
line 3:
E171: Missing :endif
Installing gvim (which is proposed as a solution in issue #6) is not an option as I don't want to install all the dependencies that come with it just to make csapprox work.
I just went through all of the colorschemes in this git repo (https://github.com/flazz/vim-colorschemes), and picked one, "badwolf." When I set this colorscheme in my vimrc, it loads about half of the colors, and skips the rest. When I then run :colorscheme badwolf, it sets the remainder. Why is it that not all of the colors of this particular colorscheme are not being set inside my vimrc? I did not have this problem before when I was using the built-in scheme "ron." This issue does not present itself in gvim, either.
I use vim's tabs a lot, but after converting a theme using this, the tabs are always white text on a white background. Any idea how I can get them readable? Any more info I could provide?
Error detected while processing function <SNR>19_CSApprox[46]..<SNR>19_CSApproxImpl[46]..<SNR>19_SetCtermFromGui:
line 34:
E420: BG color unknown
Error detected while processing /Users/name/repos/dotfiles/vi/vim.symlink/bundle/csapprox/after/plugin/CSApprox.vim:
line 28:
E171: Missing :endif
Press ENTER or type command to continue
After recently updating macOS (v10.15.6), Alacritty (v0.5.0) and Vim (v8.2.1456), CSApprox starts emitting a warning about having not enough terminal colours even though I actually have quite a lot:
CSApprox skipped; terminal only has 16777216 colors, not 88/256
So I have too many colours to use csapprox? :)
If you run csapprox on vim where has("gui")==0 it will issue a warning, no problem. But if you run it with has("gui")==0 and CSApprox_loaded==1 then you still get the warning even though you have turned the plugin off.
Check out this commit this dude sent me for my vimfiles repo --> http://github.com/TwP/vimfiles/commit/798d124e795d4bc3b263521acafaa3d53affafc5
I'm getting this error:
Error detected while processing function <SNR>63_CSApprox[46]..<SNR>63_CSApproxImpl[38]..<SNR>63_FixupGuiInfo:
line 1:
E716: Key not present in Dictionary: 93
E15: Invalid expression: a:highlights[s:hlid_normal].gui.bg == ''
Error detected while processing ~/.vim/bundle/csapprox/after/plugin/CSApprox.vim:
line 28:
E171: Missing :endif
I'm using Vim 8.0 (2016 Sep 12, compiled Feb 6 2017 06:58:22) on a zsh terminal, without GUI support.
That error only appears when I reinstall my plugins, but I don't see it again when I open/save files.
This causes weird things to happen. Perhaps this is something weird in syntax/syncolor.vim. I dunno.
I'm getting
CSApprox needs gui support - not loading. See :help |csapprox-+gui| for possible workarounds. Press ENTER or type command to continue
on Fedora 14. I've had this issue before on Debian Squeeze & after following the steps in the :help referenced above, all's been fine. However, although CSApprox does its job perfectly on Fedora (i.e. console colours work great as expected) I can't get rid of the error message even though I've again followed the instructions in :help.
This is stopping me passing commands on the cli to Vim as the process is interrupted before Vim can handle the request.
Any help appreciated...
Hi, I am using vim 8.0 without gui support and it fails on startup when CSApprox is enabled.
I am loading it via Pathogen.
Error detected while processing function <SNR>17_CSApprox[46]..<SNR>17_CSApproxImpl[38]..<SNR>17_FixupGuiInfo: line 1: E716: Key not present in Dictionary: 0 E15: Invalid expression: a:highlights[s:hlid_normal].gui.bg == '' Error detected while processing /home/philipp/.vim/bundle/CSApprox/after/plugin/CSApprox.vim: line 28: E171: Missing :endif
Running on Vim 7.1.138
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.