Re: Searching across a range of lines

2023-01-15 Thread Salman Halim
On Sat, Jan 14, 2023 at 1:55 PM Stan Brown wrote: > > While possibly not quite what you're looking for, if I want such, I > use > > ...> :50,100g/cat/# > > > > Tim, this doesn't do what I'm trying to do, but the bigger problem is > > that :g absolutely moves the cursor, putting it on

Re: Searching across a range of lines

2023-01-15 Thread Salman Halim
On Sat, Jan 14, 2023 at 12:53 PM Owajigbanam Ogbuluijah wrote: > I don't know if you're into completion engines, but coc-java > has an > "Organize Imports" which does exactly what you're trying to do. > > - Igbanam. > > Igbanam, I

Re: How about dropping the MzScheme interface?

2023-01-15 Thread Антон Голубев
Please don't, I also use this. mz works even in the most recent releases of vim, though I haven't updated racket for a long time. пятница, 24 января 2020 г. в 23:22:19 UTC+3, Bram Moolenaar: > > Over time many features have been added to Vim. > Currently I'm looking into making Vim script

Re: [Vim 9 script] Is there a way to get the actual type of an object?

2023-01-15 Thread Lifepillar
On 2023-01-15, Bram Moolenaar wrote: >> Is there a way to distinguish the class of the value returned by >> [a function]? > > Currently not. I have been wondering what would be the best way to > cover this. We already have type(), but this only returns the basic > type. For example for list

Re: [Vim 9 script] Is there a way to get the actual type of an object?

2023-01-15 Thread Bram Moolenaar
> Silly example: > > vim9script > > class Num > this.n = 0 > endclass > > class Even extends Num > def new(this.n) > if this.n % 2 == 1 > throw 'Not even' > endif > enddef > > def IsPrime(): bool > return this.n == 2 >

[Vim 9 script] Is there a way to get the actual type of an object?

2023-01-15 Thread Lifepillar
Silly example: vim9script class Num this.n = 0 endclass class Even extends Num def new(this.n) if this.n % 2 == 1 throw 'Not even' endif enddef def IsPrime(): bool return this.n == 2 enddef endclass class