ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexey I. Froloff" <raorn@altlinux.ru>
To: Mailing list for ALT Linux users <community@lists.altlinux.org>
Subject: Re: [Comm] Vim и balloonexpr
Date: Mon, 7 Jul 2008 14:52:46 +0400
Message-ID: <20080707105246.GB14790@hell.fortress> (raw)
In-Reply-To: <d77783290807070309h5c5ac8abl7253da64d24e14a8@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1153 bytes --]

* Денис Черносов <denis0.ru@> [080707 14:11]:
> У меня не завелось. Поиски привели к важному замечанию - vim
> должен быть собран с опцией +balloon_eval
$ vim --version | grep -o .balloon_eval 
+balloon_eval

Ессно, работает это только в gvim.

> Кто-нибудь вообще баловался с этой фичей? Стоит ли она дополнительных танцев
> с бубном? Не порождает ли других проблем?
> Или у меня просто руки кривые и должно работать из коробки?
С простой

fun! BExpr()
  return v:beval_text
endfun

у меня работает.  Тем не менее я бы не рекомендовал тупо
конкатить к имени команды произвольную строку и отдавать это на
system.  Пользуйтесь shellescape().

Попробовал вместо mueller использовать dict:
  return system("dict -d engcom " . shellescape(v:beval_text))
  
Начнём с того, что в beval_text попадают и знаки препинания
(точка, запятая, скобки).  Нормально это заработало только в gtk2
версии gvim (в neXtaw версии не вижу русского).  Иногда
получается простыня такого размера, что с трудом умещается на
экран.  Если при этом курсор попадает на сам тултип, то он
моргает на секунду и сразу пропадает.

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

           reply	other threads:[~2008-07-07 10:52 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <d77783290807070309h5c5ac8abl7253da64d24e14a8@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080707105246.GB14790@hell.fortress \
    --to=raorn@altlinux.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git