470 reputation
11026
bio website
location
age
visits member for 3 years, 8 months
seen 15 hours ago

Apr
1
comment How to delete the User Temp folder content in a standard way, rather than manually?
@user2745219, welcome to SuperUser. Having 1 rep, I assume you are new to the StackExchange network. FYI, the standard way of showing appreciation is to up-vote an answer you think that was helpful. If you find an answer to fit your needs better than the other answers, you can check it as the selected answer. It is also recommended to replace your temporary username with something more personal. If you did not have the chance yet, please read the site's Tour, accessible from the Help menu above.
Mar
31
comment How to format a string substitute, or a text line, in Vim?
it was meant to be a little joke, referring to "going out of the Vim realm to the OS shell for doing the task". Note the ";-)". I am a Linux user as well, BTW...
Mar
31
comment How to construct a cell reference from two numbers w/o using text()+indirect()?
Thanks, seems to do the trick. Replace rows and cols with equivalent formulae which evaluate to 0 for the original location, and the ref target is now movable.
Mar
31
comment How to format a string substitute, or a text line, in Vim?
Thanks. It is Windows. +1 - i assume it works on linux, and for thinking "out of the box" ;-)
Mar
25
comment Why is there a difference in the popup dialog from .gvimrc and command line?
A reply to a bug report by Braam Moolenaar confirms that this is an expected behaviour.
Mar
22
comment Why is there a difference in the popup dialog from .gvimrc and command line?
Thanks. You're probably right. Your solution was also suggested by @Heptite. I just wonder if this should be reported as a bug, as he suggested (probably not, as this is expected assuming the GUI really get restarted after the init scripts).
Mar
22
comment Why is there a difference in the popup dialog from .gvimrc and command line?
Thanks for the answer. Putting this on the startup file did not mean to be something permanent, just me playing with the startup files and the newly discovered confirm() function. I was just surprised to see this behaviour. Your solution on Edit Two makes sense (and was confirmed by @IngoKarkat).
Mar
21
comment How to determine what buffer was changed externally with gVim?
Unfortunately, this variation fails either.
Mar
21
comment How to determine what buffer was changed externally with gVim?
tried also edit <afile> but got the same response
Mar
21
comment How to determine what buffer was changed externally with gVim?
I wonder why there is a difference between the two edit forms. The edit (no args) version works when the last active buffer was the one with the changed file.
Mar
21
comment How to determine what buffer was changed externally with gVim?
I used edit MyBn instead of the edit command. But, when selecting the load File button, I get error E811 and the buffer won't update. I think my alternative answer is more direct.
Mar
21
comment How to change the default button on gVim's W11 (“File has changed”) warning popup?
Please see my follow up question here: superuser.com/q/731979/45564 . Thanks.
Mar
21
comment How to block a particular pop-up window from opening?
Out of respect to you answering my question, I will not reply to your last comment. If my intentions were not clear with what said so far, then probably nothing more I'll say won't change it. Thanks again for your help.
Mar
21
comment How to change the default button on gVim's W11 (“File has changed”) warning popup?
@IngoKarkat - Obviously, but I want to change it.
Mar
21
comment How to change the default button on gVim's W11 (“File has changed”) warning popup?
OK, got it. I can do let a=confirm(...
Mar
21
comment How to change the default button on gVim's W11 (“File has changed”) warning popup?
So I wanted to test this thing. Defiend a new group :aug my_test_group. Then, defined an autocmd: au my_test_group FileChangedShell * confirm("TEST","&Y\n&N",2,"W"). Changed the buffered file externally. When returned focus to gVim, I get an error: E492: Not an editor command: confirm(.... I cannot run the confirm() command from the : command prompt either.
Mar
21
comment How to change the default button on gVim's W11 (“File has changed”) warning popup?
Thanks. Vim is just amazing. Every time a semi-advanced question is answered, it opens a Pandora's box... Looking at the suggested help page, there seems to be a whole new world of those events...
Mar
21
comment How to block a particular pop-up window from opening?
I don't understand why you insist on that. I am not accepting an answer until I think it actually answered my question. As I wrote, I am still evaluating the suggested solutions. did upvote the two answers to show that they both work (for now, at least).
Mar
21
comment How to block a particular pop-up window from opening?
I am currently using the NoScript. It has its annoyances, but I am slowly learning to live with it. Then, I'll get back to the add-on one. This will take time, and if I come to a definitive conclusion that one of them remains on my browser, I'll select the answer. Be patient. Thanks.
Mar
20
comment How to embed or link a text file in Excel?
Thanks. please see my self answer. I think it is a much simpler solution.