Wow, very sad to hear about Bram, and so young (62). I did quite a lot of
work on vim more than 30 years ago. At first I didn't even have my own
computer. Sometimes I'd print out code at work, take it home, write new
code on paper, then try it out after hours at uni or work. Now I barely
have t
2019-03-27, Robert Webb wrote:
> > Wow, that did the trick somehow.
> >
> > Using "h,c,cpp" as the file pattern works, but not "*.h,*.c,*.cpp" as
> per the
> > examples in the docs, and as I've been using for years up till now.
> >
> &g
t; match ANY file containing a "c" or an "h"?
Surely there's something wrong here.
Rob.
On Tue, 26 Mar 2019 at 00:35, Christian Brabandt wrote:
>
> On Di, 26 Mär 2019, Robert Webb wrote:
>
> > On Fri, 15 Mar 2019 at 02:44, Gary Johnson
On Fri, 15 Mar 2019 at 02:44, Gary Johnson wrote:
> On 2019-03-14, Robert Webb wrote:
> > Ah, thanks Gary,
> >
> > Actually I already set 'fo' in my vimrc, but I set it with "autocmd
> BufRead".
> > I suppose the file-type commands happen after
But I don't suppose
there's an option for that?
Thanks,
Rob.
On Sun, 10 Mar 2019 at 16:12, Gary Johnson wrote:
> On 2019-03-10, Robert Webb wrote:
> > I noticed a change in behaviour when moving from 7.3 to 8.1, when
> opening a
> > line after or before a "// b
I noticed a change in behaviour when moving from 7.3 to 8.1, when opening a
line after or before a "// blah" style comment.
With the cursor on the comment line, it used to be that opening a line
above (with "O") would not insert a comment leader at the start, and same
with opening a line below (wi
ght > 1)
wp->w_fraction = ((long)wp->w_wrow * FRACTION_MULT
-+ wp->w_height / 2) / (long)wp->w_height;
++ FRACTION_MULT / 2) / (long)wp->w_height;
}
/*
--
2.19.1.windows.1
On Mon, 25 Feb 2019 at 18:49, Christian Brabandt wrote:
>
FRACTION_MULT
- + wp->w_height / 2) / (long)wp->w_height;
+ + FRACTION_MULT / 2) / (long)wp->w_height;
}
/*
--
2.19.1.windows.1
On Mon, 25 Feb 2019 at 03:44, Christian Brabandt wrote:
>
> On So, 24 Feb 2019
p, lnum, (long)(wp->w_cursor.col)) - 1;
sline = wp->w_wrow - line_size;
--
2.19.1.windows.1
On Sun, 24 Feb 2019 at 17:55, Robert Webb wrote:
>
> On Thu, 21 Feb 2019 at 23:28, Bram Moolenaar wrote:
>
>>
>> > After finally upgrading for the first time in 9 or s
On Thu, 21 Feb 2019 at 23:28, Bram Moolenaar wrote:
>
> > After finally upgrading for the first time in 9 or so years, I notice
> just
> > a couple of minor issues:
> >
> > * When files have been changed externally, and vim regains focus, it
> still
> > only asks whether to load or ignore them on
After finally upgrading for the first time in 9 or so years, I notice just
a couple of minor issues:
* When files have been changed externally, and vim regains focus, it still
only asks whether to load or ignore them one at a time. I often have lots
of changes at once, eg I switch to another bran
ight forward to compile.
I'd be interested in C++ and C#
Do such things exist?
Thanks,
Rob.
On Wed, 13 Feb 2019 at 01:44, Yegappan Lakshmanan
wrote:
> Hi Rob,
>
> On Tue, Feb 12, 2019 at 5:11 AM Robert Webb wrote:
> >
> > Thanks guys, looks like sometime I need to do
Andy,
No longer crashes, but doesn't seem to work at all. Either that or how it
works has changed since I wrote my scripts.
Simple test:
=
fun! TestFunc(pattern, flags)
return taglist(a:pattern)
endfunc
:set tagfunc=TestFunc
=
Trying to jump to a tag under the curs
Thanks guys, looks like sometime I need to download the latest code (after
9 years!) and see if I can apply this patch.
Agreed it's not an ideal solution. Something like Visual Studio's
Intellisense would be much nicer. I don't know how close cscope comes to
that, having not used it.
Also I mos
Hi Christian,
I was the one who originally asked for the tagfunc feature, which I needed
for my smarttag scripts.
I'm still using vim version 7.3 from 8 or 9 years ago because I had a
patched version that included it.
I rely on tagfunc now, and don't have time to try integrating an 8-year-old
pa
ght
now, but will let you know if I figure it out. Otherwise, let me know if
you figure it out :-)
Rob.
--
Robert Webb ,
Software developer
http://www.software3d.com
--
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
Hey Scott,
> I'm trying to debug another anomaly, but Vim crashes when I call
> SmartTag#SmartTag("debug").
I haven't looked into this, but I presume that any crash is a bug in vim
itself rather than my plugin (or at worst, they both have a bug).
Rob.
--
Robert W
hing tags.
Send me your .cpp file (and .h file if required) and tags file, in case mine
generates differently. And I'll see what I can see, though it's been a
while since I looked at this.
Thanks,
Rob.
--
Robert Webb ,
Want to make polyhedra?
http://www.software3d.com/Stella.php
--
Y
e
> registry under HKLM\Software\Vim\Gvim, named
> DisableEditWithExisting, and with
> any value.
Even so, few people will know it's there. How about putting an option in
the installer?
Thanks,
Rob.
--
Robert Webb ,
Want to make polyhedra?
http://www.software3d.com/Stella.php
--
e script would probably fix it.
I suspect it must be keeping the list of tags between :tn etc, but
updates the list when reaching the end and fetching the next entry in
'tags'.
I figured if it was a local variable, then I could save the time spent
getting tags, but meh, maybe it s
lso works,
finding real tags. But :trew doesn't get back to the local var. That now
seems lost from the list of tags. In fact, shouldn't :tselect show my local
var tag first? I don't see it. I think it loses it when it goes to the next
tags file in 'tags', but it should
changes yourself.
I'll have to look into this another time. Is it not possible to submit changes
via a web interface? That is, without installing git?
I'm only making very minor changes occasionally when I encounter problems. For
now I'll just send you any new versions.
> endfunc
> > set tagfunc=MyTagFunc
>
> I haven't looked into it yet, but I was thinking whether this could be
> related to the fact that you change the position of the cursor while
> preparing a tag list.
Well, I wonder that too, and it's possible. It
at your end.
Thanks re git, that was much easier. However, now I can't
get it to compile with Visual Studio 6 :-/
I think I need to get the Platform SDK first.
Thanks,
Rob.
--
Robert Webb ,
Want to make polyhedra?
http://www.software3d.com/Stella.php
--
You received this message from the
at the end-comment instead of
the slash.
Minor I know, but it could break existing scripts (like the one I'm
writing now).
Thanks,
Rob.
--
Robert Webb <[EMAIL PROTECTED]>,
MineSweeper3D - Take Minesweeper to a whole new dimension!
http://www.s
Bram replied:
> Robert Webb wrote:
>
> > If I use ":set tags = tags,../tags", and the tags file in the parent
> > folder includes all the tags in the local folder (plus more from other
> > folders), then I get tag matches repeated. Using taglist() the only
>
OfWord()
call search('.\>', 'cWs')
call search('\<', 'cWb')
endfunc
Rob.
--
Robert Webb <[EMAIL PROTECTED]>,
Want to make polyhedra?
http://www.software3d.com/Stella.php
--~--~-~--~~~---~--~~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---
ch has a different relative path
> due to the ctags file being created one level higher. Shouldn't the
> duplicates be removed?
That should say "filename" rather than "file".
Rob.
--
Robert Webb <[EMAIL PROTECT
:p" only works after "%" etc.
If it makes it any easier, it's actually the current file name I want to
compare with, ie something like:
if (expand("%:p") == expand("path/file:p"))
Except that the second part won't expand.
Thanks,
Rob.
tive path
due to the ctags file being created one level higher. Shouldn't the
duplicates be removed?
Thanks,
Rob.
--
Robert Webb <[EMAIL PROTECTED]>,
MineSweeper3D - Take Minesweeper to a whole new dimension!
http://www.software3d.com/Mines3D
--~--~-~--~~~---
riefly flashes with
":silent ! start". It would make script-writing for this sort of thing
easier, and portable without having to think about it.
Rob.
--
Robert Webb <[EMAIL PROTECTED]>,
Want to make polyhedra?
http://www.software3d.com/Stella.php
--~--~-~--~~
c! Sow()
if (getline(".")[col(".") - 1] =~ '\k')
normal wb
else
call search('\<', 'sW')
endif
endfunc
Except that it may search onto the next line if there are no more words,
and won't find a non-word sequence at the
same on all systems. qsort() just compares the sign.
Maybe it should say:
The function is invoked with two items as argument and must return
an integer: zero if they are equal, positive if the first one
should sort after the second, or negative if the first one should sort
before
i2)
return a:il - a:i2
endfunc
I think the docs should be updated if this is how it behaves. And if
not, the docs and the code should be updated so it does :-)
Rob.
--
Robert Webb <[EMAIL PROTECTED]>,
MineSweeper3D - Take Minesweeper to a whole new dimens
Bram Moolenaar wrote:
> Robert Webb wrote:
>
> > This appears to be a bug. Consider this test function.
> >
> > func! Test()
> > let oldCursor = winsaveview()
> > normal G
> > call winrestview(oldCursor)
> > split
> >
e problem as above. If it wasn't for the space under the cursor I could
just use wb which works very well provided the cursor is already on the
actual word.
Thanks,
Rob.
--
Robert Webb <[EMAIL PROTECTED]>,
MineSweeper3D - Take Minesweeper to a whole new dimension!
http://www.softw
word.
*# - OK, I guess this should work, but seems inefficient to do a search.
I'm trying to avoid a more complicated piece of script for such a simple
operation.
Thanks, and sorry if it is a stupid question with an obvious answer :-)
Rob.
--
Robert Webb <[EMAIL PROTECTED]>,
Want to m
ptimised to only read one line at a time this way.
Anyone know? If it just reads the file once at the start of the loop then this
Searchfile() function isn't any more efficient than readfile(). My point was
that it would be nice to have a function that doesn't read the whole fil
;s the space after the "!" that makes it work as I needed!
Weird.
I've used this to make K jump to help for PHP commands, inspired by a tip to
do the same thing on unix:
http://dailyvim.blogspot.com/2008/08/making-k-useful.html
My version for Windows is attached an
d a scripting function to open a given file however the OS
> sees fit.
For that matter, what about the best way to launch a URL from a script?
Should use whatever is the default browser.
Rob.
--
Robert Webb <[EMAIL PROTECTED]>,
MineSweeper3D - Take Minesweeper to a whole new dimens
attern to search for, and maybe the
maximum number of matches, and a list of matching lines is returned.
That way if the match is found early and you only ask for one, then
vim wouldn't bother reading the rest of the file.
Rob.
--
Robert Webb <[EMAIL PROTECTED]>,
Software deve
way seems to be ":!start cmd /c %", but now the script will
only work on Windows. There's also an annoying DOS window hanging
around in the background. Any way to get rid of that?
I can't find a scripting function to open a given file however the OS
sees fit.
Thanks,
Rob.
ed info won't always be in the tags file, but some
simple cases may be doable.
The script's going quite well, but really needs 'tagfunc' to be fully
operational.
Rob.
--
Robert Webb <[EMAIL PROTECTED]>,
MineSweeper3D - Take Minesweeper to a whole new dimension!
are any
> untoward side effects. I don't think there will be any, though, with
> this particular change.
Looks good. Only problem I see is that the year in the file is given as
20088!
And what's "astro-only" mean?
Thanks,
Rob.
--
Robert Webb <[EMAIL PROTECTED]>,
"""""""""""
call AddDir("path", "F:/Program Files/Microsoft Platform SDK/VC/include")
"""""""""""""""""""""""
45 matches
Mail list logo