Wednesday, September 8, 2010

Re: E255 on sign command

On 7 Sep 2010, at 15:57, Andrew Long wrote:

>
> On 7 Sep 2010, at 03:54, Vincent B. wrote:
>
>> Hi,
>>
>> I made the patch for graphical file loading in MacVim, the
>> implementation rely directly in Cocoa for image loading, and I don't
>> think xpm is supported by cocoa. You may try to convert your xpm files
>> to png files which would load without any problem. GVim win32 (not the
>> cygwin one) doesn't support .xpm either, it only support .ico files,
>> so the xpm file format is not ubiquitous for graphical sign loading.
>>
>> Sorry, I didn't update the documentation files which might have
>> mislead you
>>
>> Regards
>
> AH, right. Thanks for the update.
>
> Regards, Andy
I've converted the XPM file to a PNG and the sign now places OK. Thanks again.

Regards, Andy

>
>>
>> Vincent B.
>>
>> On 6 sep, 18:19, Andrew Long <andrew.l...@mac.com> wrote:
>>> On 6 Sep 2010, at 23:12, Andrew Long wrote:
>>>
>>>> I'm having some troubles using the 'sign define' command. I'm running macvim stable 53 (using vim 7.3, as at bottom)
>>>
>>>> In my .vimrc I have the following lines to set up the sign
>>>> "
>>>> " Place a sign in the file
>>>> "
>>>> sign define information text=!> linehl=Warning texthl=Error icon=/usr/share/emacs/22.1/etc/images/right-arrow.xpm
>>>> map <F3> :exe ":sign place 123 line=" . line(".") . " name=information file=" . expand("%:p")<CR>
>>>> map <C-S-F3> :sign unplace<CR>
>>>
>>>> When vim is loading, and on attempts to place a sign, I get an error E255: Couldn't read in sign data!. Vim falls back to displaying the two-character 'text' field.
>>>
>>>> The file at /usr/share/emacs/22.1/etc/images/right-arrow.xpm is a valid pixmap, dimensions 24x24; The :he on 'sign' says that the pixmap must fit in the space of 2 characters; my guifont is set to monaco:w18, so I mangled the original pixmap to generate a shorter character (24x18), although pointing at this file didn't make any difference.
>>>
>>> Sorry, that font should be monaco:h18
>>>
>>>
>>>
>>>> I *believe* that at work, where I use gvim under cygwin, the sign displays properly; I'll check that in the morning. Unfortunately, the version of gvim that I have on my Mac is built with -signs, so I can't check it here.
>>>
>>>> Can anyone point me in the right direction for a fix on this, please?
>>>
>>>> Regards, Andy
>>>
>>>> VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 15 2010 22:03:01)
>>>> MacOS X (unix) version
>>>> Compiled by Bjorn Winckler <bjorn.winck...@gmail.com>
>>>> Huge version with MacVim GUI. Features included (+) or not (-):
>>>> +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
>>>> +cmdline_info +comments +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags
>>>> +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding -footer +fork() +fullscreen -gettext -hangul_input
>>>> +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap -lua +menu +mksession
>>>> +modify_fname +mouse +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte
>>>> +multi_lang -mzscheme +netbeans_intg +odbeditor -osfiletype +path_extra +perl +persistent_undo +postscript +printer +profile
>>>> +python -python3 +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop
>>>> +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title +toolbar +transparency
>>>> +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -X11
>>>> -xfontset +xim -xsmp -xterm_clipboard -xterm_save
>>>> system vimrc file: "$VIM/vimrc"
>>>> user vimrc file: "$HOME/.vimrc"
>>>> user exrc file: "$HOME/.exrc"
>>>> system gvimrc file: "$VIM/gvimrc"
>>>> user gvimrc file: "$HOME/.gvimrc"
>>>> system menu file: "$VIMRUNTIME/menu.vim"
>>>> fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
>>>> Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -DMACOS_X_UNIX -no-cpp-precomp -g -O2 -arch i386 -arch x86_64 -D_FORTIFY_SOURCE=1
>>>> Linking: gcc -L. -L. -arch i386 -arch x86_64 -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon -lncurses -liconv -framework Cocoa -L/usr/local/lib -L/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc -framework Python -framework Ruby
>>>> --
>>>> Andrew Long
>>>> andrew dot long at mac dot com
>>>
>>>> --
>>>> You received this message from the "vim_use" maillist.
>>>> Do not top-post! Type your reply below the text you are replying to.
>>>> For more information, visithttp://www.vim.org/maillist.php
>>>
>>> --
>>> Andrew Long
>>> andrew dot long at mac dot com
>>>
>>> PGP.sig
>>> < 1 000AfficherTélécharger
>>
>> --
>> You received this message from the "vim_use" 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
>
> --
> Andrew Long
> andrew dot long at mac dot com
>
>
>
>
>
> --
> You received this message from the "vim_use" 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

--
Andrew Long
andrew dot long at mac dot com

--
You received this message from the "vim_use" 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

No comments: