Hi Bram! On Fr, 22 Apr 2016, Bram Moolenaar wrote:
> > Dominique Pelle wrote: > > > Nikolay Aleksandrovich Pavlov <zyx....@gmail.com> wrote: > > > > > 2016-04-21 22:39 GMT+03:00 Kent Sibilev <ksibi...@gmail.com>: > > >> On Thursday, April 21, 2016 at 3:11:42 PM UTC-4, Bram Moolenaar wrote: > > >>> Patch 7.4.1770 > > >>> Problem: Cannot use true color in the terminal. > > >>> Solution: Add the 'guicolors' option. (Nikolai Pavlov) > > >>> Files: runtime/doc/options.txt, runtime/doc/term.txt, > > >>> runtime/doc/various.txt, src/auto/configure, > > >>> src/config.h.in, > > >>> src/configure.in, src/eval.c, src/globals.h, src/hardcopy.c, > > >>> src/option.c, src/option.h, src/proto/term.pro, > > >>> src/screen.c, > > >>> src/structs.h, src/syntax.c, src/term.c, src/term.h, > > >>> src/version.c, src/vim.h > > >>> > > >> > > >> That's great, but how do I set it? > > >> > > >> :set guicolors? > > >> E519: Option not supported: guicolors? > > >> :echo &guicolors > > >> 0 > > >> :set guicolors > > >> :echo &guicolors > > >> 0 > > >> > > >> Also now when running 'make install' I get the following error at the > > >> end: > > >> > > >> if test -d /usr/local/share/applications -a -w > > >> /usr/local/share/applications; then \ > > >> cp ../runtime/vim.desktop \ > > >> ../runtime/gvim.desktop \ > > >> /usr/local/share/applications; \ > > >> if test -z "" -a -x ; then \ > > >> -q /usr/local/share/applications; \ > > >> fi \ > > >> fi > > >> /bin/sh: line 0: test: argument expected > > > > > > To get &guicolors you should use --enable-termtruecolor at configure > > > stage. Not sure why you get that error at `make install`, AFAIR I did > > > not edit anything that should affect installation process. > > > > Hi Nikolay > > > > I just tried it on xubuntu-14.04.4 (xfce4-terminal, TERM=xterm-256color) > > but it does not work yet for me and there are compilation warnings: > > I can fix the obvious problems, but it appears some part of the patch > went missing. I had to merge manually. I see you just fixed the obvious warnings. However there still exists a problem. If you enable guicolors, you should have the rgb.txt file in your $VIMRUNTIME directory, since vim tries to open that file and parse the color names from there (termtrue_mch_get_color()). This fails if the file is not available. Unfortunately, the unix make install part, does not install it and when executing e.g. the following command: highlight MatchParen term=reverse ctermbg=7 guibg=cornsilk Vim errors with E254: Cannot allocate color cornsilk perhaps this patch fixes it: diff --git a/src/Makefile b/src/Makefile index 716dae7..152e69e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1076,6 +1076,9 @@ SYS_DELMENU_FILE = $(DESTDIR)$(SCRIPTLOC)/delmenu.vim ### Name of the bugreport file target. SYS_BUGR_FILE = $(DESTDIR)$(SCRIPTLOC)/bugreport.vim +### Name of the rgb.txt file target. +SYS_RGB_FILE = $(DESTDIR)$(SCRIPTLOC)/rgb.txt + ### Name of the file type detection file target. SYS_FILETYPE_FILE = $(DESTDIR)$(SCRIPTLOC)/filetype.vim @@ -2170,6 +2173,9 @@ installrtbase: $(HELPSOURCE)/vim.1 $(DEST_VIM) $(DEST_RT) \ # install the bugreport file $(INSTALL_DATA) $(SCRIPTSOURCE)/bugreport.vim $(SYS_BUGR_FILE) chmod $(VIMSCRIPTMOD) $(SYS_BUGR_FILE) +# install the rgb.txt file + $(INSTALL_DATA) $(SCRIPTSOURCE)/rgb.txt $(SYS_RGB_FILE) + chmod $(VIMSCRIPTMOD) $(SYS_RGB_FILE) # install the example vimrc files $(INSTALL_DATA) $(SCRIPTSOURCE)/vimrc_example.vim $(DEST_SCRIPT) chmod $(VIMSCRIPTMOD) $(DEST_SCRIPT)/vimrc_example.vim Best, Christian -- Den Ahnungslosen schenkt der Herr einen leichten Schlaf. -- Gaius Julius Caesar -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.