Re: Where is Bram?

2023-08-20 Fir de Conversatie Robert Webb
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

Re: Changed behaviour with comments

2019-03-26 Fir de Conversatie Robert Webb
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

Re: Changed behaviour with comments

2019-03-26 Fir de Conversatie Robert Webb
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

Re: Changed behaviour with comments

2019-03-25 Fir de Conversatie Robert Webb
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

Re: Changed behaviour with comments

2019-03-14 Fir de Conversatie Robert Webb
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

Changed behaviour with comments

2019-03-09 Fir de Conversatie Robert Webb
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

Re: Issues in vim 8.1, patches 1-897

2019-02-25 Fir de Conversatie Robert Webb
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: >

Re: Issues in vim 8.1, patches 1-897

2019-02-24 Fir de Conversatie Robert Webb
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

Re: Issues in vim 8.1, patches 1-897

2019-02-24 Fir de Conversatie Robert Webb
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

Re: Issues in vim 8.1, patches 1-897

2019-02-23 Fir de Conversatie Robert Webb
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

Issues in vim 8.1, patches 1-897

2019-02-21 Fir de Conversatie Robert Webb
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

Re: Patch to add functions for manipulating the tag stack of a window

2019-02-19 Fir de Conversatie Robert Webb
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

Re: Patch to add functions for manipulating the tag stack of a window

2019-02-17 Fir de Conversatie Robert Webb
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

Re: Patch to add functions for manipulating the tag stack of a window

2019-02-12 Fir de Conversatie Robert Webb
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

Re: Patch to add functions for manipulating the tag stack of a window

2019-02-06 Fir de Conversatie Robert Webb
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

RE: Setting up SmartTag plugin

2011-11-25 Fir de Conversatie Robert Webb
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

RE: Setting up SmartTag plugin

2011-11-25 Fir de Conversatie Robert Webb
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

RE: Setting up SmartTag plugin

2011-11-23 Fir de Conversatie Robert Webb
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

RE: Patch 7.3.258

2011-07-22 Fir de Conversatie Robert Webb
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 --

RE: New script: SmartTag (resolves ambiguous C++ tags etc)

2010-05-24 Fir de Conversatie Robert Webb
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

RE: New script: SmartTag (resolves ambiguous C++ tags etc)

2010-05-20 Fir de Conversatie Robert Webb
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

RE: New script: SmartTag (resolves ambiguous C++ tags etc)

2010-05-19 Fir de Conversatie Robert Webb
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.

RE: New script: SmartTag (resolves ambiguous C++ tags etc)

2010-05-07 Fir de Conversatie Robert Webb
> 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&#x

RE: New script: SmartTag (resolves ambiguous C++ tags etc)

2010-04-29 Fir de Conversatie Robert Webb
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

matchit bug

2008-09-15 Fir de Conversatie Robert Webb
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

RE: Duplicate tags

2008-08-27 Fir de Conversatie Robert Webb
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 >

RE: Moving cursor to start of current word

2008-08-26 Fir de Conversatie Robert Webb
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 -~--~~~~--~~--~--~---

RE: Duplicate tags

2008-08-25 Fir de Conversatie Robert Webb
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

Comparing file names

2008-08-25 Fir de Conversatie Robert Webb
: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.

Duplicate tags

2008-08-25 Fir de Conversatie Robert Webb
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 --~--~-~--~~~---

RE: Opening a file as the OS would

2008-08-25 Fir de Conversatie Robert Webb
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 --~--~-~--~~

RE: Moving cursor to start of current word

2008-08-25 Fir de Conversatie Robert Webb
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

RE: sort()'s function reference arg

2008-08-25 Fir de Conversatie Robert Webb
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

sort()'s function reference arg

2008-08-24 Fir de Conversatie Robert Webb
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

RE: Can't restore window state.

2008-08-24 Fir de Conversatie Robert Webb
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 > >

RE: Moving cursor to start of current word

2008-08-23 Fir de Conversatie Robert Webb
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

Moving cursor to start of current word

2008-08-23 Fir de Conversatie Robert Webb
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

RE: Reading a file from a script?

2008-08-21 Fir de Conversatie Robert Webb
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

RE: Opening a file as the OS would

2008-08-21 Fir de Conversatie Robert Webb
;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

RE: Opening a file as the OS would

2008-08-20 Fir de Conversatie Robert Webb
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

Reading a file from a script?

2008-08-20 Fir de Conversatie Robert Webb
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

Opening a file as the OS would

2008-08-20 Fir de Conversatie Robert Webb
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.

RE: settaglist()? And improved tagging

2008-08-18 Fir de Conversatie Robert Webb
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!

RE: Vim script highlighting issues

2008-08-18 Fir de Conversatie Robert Webb
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]>,

RE: Vim version 7.2b ready for BETA testing

2008-07-25 Fir de Conversatie Robert Webb
""""""""""" call AddDir("path", "F:/Program Files/Microsoft Platform SDK/VC/include") """""""""""""""""""""""