Re: Inadequate functionality for sign related commands
- Hari Krishna Dara wrote:
> While using signs for my breakpts.vim script that I recently postedThe sign funcionality has been designed to be used by a program or
> (which can be used to set breakpoints in vim functions), I have observed
> lack of functions/commands for doing certain things:
script. It's not something you type manually.
> - There are no functions to check if a sign is set. I had to searchYou are supposed to keep a list of the placed signs yourself. This
> the output of "sign place" for the current line with the sign name
> for this. This is how I did it, if anyone is interested:
should not be too difficult, using a buffer-local variable.
> - There are no commands to clear all the signs in a buffer/file orIf you remember which signs have been placed, you know how to remove
> defined with a particular type. "sing unplace *" removes all signs
> and it doesn't take a buffer=<nr> option. I will have to get the
> output of "sign place" and unplace them individually, by searching
> for the appropriate signs, which is a pain.
them. This does require using a loop, but that should not be too
> - In general I was puzzled by the fact that only the sign placeThe sign placement isn't simple, that is true. It was designed to be
> command accepts name where as others don't. Is this a design flaw?
used by Sun Workshop and Netbeans. It's a little bit of puzzling, but I
haven't found something useful that is not possible.
GUARD #1: What, ridden on a horse?
GUARD #1: You're using coconuts!
GUARD #1: You've got two empty halves of coconut and you're bangin' 'em
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///