Thursday, August 29, 2024

Re: Spam Script submissions on vim.org

On Do, 29 Aug 2024, rwmit...@gmail.com wrote:

> https://www.vim.org/scripts/script.php?script_id=6122   Assignment Help, no
> obvious connection to Vim
> https://www.vim.org/scripts/script.php?script_id=6121 VIM CHORE - doesn't tell
> anything about what it does

Say goodbye ;)

Let me know if you notice any more.


Thanks,
Christian
--
Even if you aren't in doubt, consider the mental welfare of the person who
has to maintain the code after you, and who will probably put parens in
the wrong place. -- Larry Wall in the perl man page

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ZtC8kfP38kt/STfK%40256bit.org.

Re: Spam Script submissions on vim.org

https://www.vim.org/scripts/script.php?script_id=6122   Assignment Help, no obvious connection to Vim
https://www.vim.org/scripts/script.php?script_id=6121 VIM CHORE - doesn't tell anything about what it does


Junk.png
On Thursday, August 29, 2024 at 11:23:31 AM UTC-4 Christian Brabandt wrote:

On Do, 29 Aug 2024, rwmit...@gmail.com wrote:

> There are currently two obvious spam scripts submitted to vim.org.  Who has the ability to remove them and require pre-approval for first time submitters?

Please share the links (script id and userid) and I'll take care. I have
just today deleted an obvious spammer and his script. You can always
contact me off-list and I'll take care of it.


Thanks,
Chris
--
When the blind lead the blind they will both fall over the cliff.
-- Chinese proverb

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/821a9d1e-7bee-4f6c-aba6-ee64e07ecf6dn%40googlegroups.com.

Re: Spam Script submissions on vim.org

On Do, 29 Aug 2024, rwmit...@gmail.com wrote:

> There are currently two obvious spam scripts submitted to vim.org.  Who has the ability to remove them and require pre-approval for first time submitters?

Please share the links (script id and userid) and I'll take care. I have
just today deleted an obvious spammer and his script. You can always
contact me off-list and I'll take care of it.


Thanks,
Chris
--
When the blind lead the blind they will both fall over the cliff.
-- Chinese proverb

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ZtCSZrep82zoAbKl%40256bit.org.

Spam Script submissions on vim.org

There are currently two obvious spam scripts submitted to vim.org.  Who has the ability to remove them and require pre-approval for first time submitters?

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/9b55afad-3af3-4a86-b7b7-82e2892121bdn%40googlegroups.com.

Saturday, August 24, 2024

Re: Annoying Vim Problem

I am saving the file before leaving.

This does not happen all the time, but sometimes it happens.

On Sat, Aug 24, 2024 at 4:38 PM Igbanam Ogbuluijah <xigbanam@gmail.com> wrote:
Ensure you're saving the file to disk on BufLeave. Or try :w before you switch buffers.


Igbanam


On Sat, Aug 24, 2024 at 2:22 PM Riza Dindir <riza.dindir@gmail.com> wrote:
Hello

When I switch from one buffer to the other, the buffer that I have switched to is changed so that a previous edit is being replayed. To explain a bit more.

I have a file a.txt and edited that file (changing first 2 characters characters in line 2 to uppercase)

file: a.txt

line 1
LIne 2

I switch to some other buffer (or close the editor and open it again) , do some editing and come back to buffer a.txt. When I do that the first 2 characters on line 2 are lowercase.

This has been bothering me for a while now. Has anybody seen this kind of behavior before? Does this have something to do with the .viminfo file maybe.

Regards

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/f9e5e0fb-a9d0-43d3-994f-a445fc28904cn%40googlegroups.com.

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAOmRJrdNiUOzMrWAWv16OL9NxZxWdm7be4b4bLaEg9BPf5M0-g%40mail.gmail.com.

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CA%2Bek4BFMCttzsTUcAaNKNysdZYuu_KmSGQ1eCa2dH9uLd%3Dx0WQ%40mail.gmail.com.

Re: Annoying Vim Problem

On Sat, Aug 24, 2024 at 3:22 PM Riza Dindir <riza.dindir@gmail.com> wrote:
>
> Hello
>
> When I switch from one buffer to the other, the buffer that I have switched to is changed so that a previous edit is being replayed. To explain a bit more.
>
> I have a file a.txt and edited that file (changing first 2 characters characters in line 2 to uppercase)
>
> file: a.txt
>
> line 1
> LIne 2
>
> I switch to some other buffer (or close the editor and open it again) , do some editing and come back to buffer a.txt. When I do that the first 2 characters on line 2 are lowercase.
>
> This has been bothering me for a while now. Has anybody seen this kind of behavior before? Does this have something to do with the .viminfo file maybe.
>
> Regards

I think it has to do with how you leave a.txt. If either you haven't
set 'autowrite' or 'autowriteall', or you quit it with an exclamation
mark (:q! to quit Vim or :e! b.txt to edit b.txt in the window where
you had edited a.txt) then any changes in a.txt are lost. If you quit
a.txt without an exclamation mark, then Vim may save the contents
depending on the settings of 'autowrite' and 'autowriteall', or else
it will refuse to leave a.txt with a mesage telling you that you want
to abandon the changes (i.e. lose them) you can repeat the command
with an exclamation mark; but beware that if you do, any unsaved
changes in a.txt will be lost.

Best regards,
Tony.

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXv3ruY0PjhAaVag9TrryLtfEotp%2BENB3PRQ%3Do5UcqJEiQ%40mail.gmail.com.

Re: Annoying Vim Problem

Ensure you're saving the file to disk on BufLeave. Or try :w before you switch buffers.


Igbanam


On Sat, Aug 24, 2024 at 2:22 PM Riza Dindir <riza.dindir@gmail.com> wrote:
Hello

When I switch from one buffer to the other, the buffer that I have switched to is changed so that a previous edit is being replayed. To explain a bit more.

I have a file a.txt and edited that file (changing first 2 characters characters in line 2 to uppercase)

file: a.txt

line 1
LIne 2

I switch to some other buffer (or close the editor and open it again) , do some editing and come back to buffer a.txt. When I do that the first 2 characters on line 2 are lowercase.

This has been bothering me for a while now. Has anybody seen this kind of behavior before? Does this have something to do with the .viminfo file maybe.

Regards

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/f9e5e0fb-a9d0-43d3-994f-a445fc28904cn%40googlegroups.com.

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAOmRJrdNiUOzMrWAWv16OL9NxZxWdm7be4b4bLaEg9BPf5M0-g%40mail.gmail.com.

Annoying Vim Problem

Hello

When I switch from one buffer to the other, the buffer that I have switched to is changed so that a previous edit is being replayed. To explain a bit more.

I have a file a.txt and edited that file (changing first 2 characters characters in line 2 to uppercase)

file: a.txt

line 1
LIne 2

I switch to some other buffer (or close the editor and open it again) , do some editing and come back to buffer a.txt. When I do that the first 2 characters on line 2 are lowercase.

This has been bothering me for a while now. Has anybody seen this kind of behavior before? Does this have something to do with the .viminfo file maybe.

Regards

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/f9e5e0fb-a9d0-43d3-994f-a445fc28904cn%40googlegroups.com.

Annoying vim problem

Hello

When I switch from one buffer to the other, the buffer that I have switched to is changed so that a previous edit is being replayed. To explain a bit more.

I have a file a.txt and edited that file (changing first 2 characters characters in line 2 to uppercase)

file: a.txt

line 1
LIne 2

I switch to some other buffer (or close the editor and open it again) , do some editing and come back to buffer a.txt. When I do that the first 2 characters on line 2 are lowercase.

This has been bothering me for a while now. Has anybody seen this kind of behavior before? Does this have something to do with the .viminfo file maybe.

Regards

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CA%2Bek4BEUBqt6HvV-weePLS0L3sHnkYzt0VbT8eeb40xakSQEyw%40mail.gmail.com.

Monday, August 12, 2024

Re: How to get matchit to work with heredocs in Perl files

Good morning,

you could try adding

" /usr/local/share/vim/vim91/ftplugin/html.vim (lines 33-43)
" HTML: thanks to Johannes Zellner and Benji Fisher.
if exists("loaded_matchit") && !exists("b:match_words")
  let b:match_ignorecase = 1
  let b:match_words = '<!--:-->,' ..
\       '<:>,' ..
\       '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' ..
\       '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' ..
\       '<\@<=\([^/!][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
  let b:html_set_match_words = 1
  let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words b:html_set_match_words"
endif

to your ~/.vim/ftplugin/perl.vim file (respectively %USERPROFILE%\vimfiles instead of ~/.vim on 
Microsoft Windows).

   Enno
Le samedi 10 août 2024 à 00:21:22 UTC+2, DwigtArmyOfChampions a écrit :
I have matchit loaded and I create a PHP file hello.php that contains the following text:

<?php

$html = <<<"HTML"
<table>
  <tr>
    <td>I AM THE TABLE.</td>
  </tr>
</table>
HTML;

print "$html\n";

exit();


If I put my cursor on the HTMLtags in the heredoc if I hit the percent key(%) I can toggle between the opening and closing tags for table, tr, and td. Cool!

So, if I create a Perl file hello.pl that contains the following text:

#!/usr/bin/perl

use strict;
use warnings;

print "Hello world!\n";

my $html = <<"HTML";
<table>
  <tr>
    <td>I AM THE TABLE.</td>
  </tr>
</table>
HTML

exit();

If I try to toggle the HTML tags similar to what I did in the PHP file, it does NOT work. How do I get the heredo toggling to work with Perl files?

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/cef2f237-8f3f-40ad-9a87-190655e0d303n%40googlegroups.com.

Friday, August 9, 2024

How to get matchit to work with heredocs in Perl files

I have matchit loaded and I create a PHP file hello.php that contains the following text:

<?php

$html = <<<"HTML"
<table>
  <tr>
    <td>I AM THE TABLE.</td>
  </tr>
</table>
HTML;

print "$html\n";

exit();


If I put my cursor on the HTMLtags in the heredoc if I hit the percent key(%) I can toggle between the opening and closing tags for table, tr, and td. Cool!

So, if I create a Perl file hello.pl that contains the following text:

#!/usr/bin/perl

use strict;
use warnings;

print "Hello world!\n";

my $html = <<"HTML";
<table>
  <tr>
    <td>I AM THE TABLE.</td>
  </tr>
</table>
HTML

exit();

If I try to toggle the HTML tags similar to what I did in the PHP file, it does NOT work. How do I get the heredo toggling to work with Perl files?

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/e255684a-b7d5-419d-a9fe-576f8d4cf94en%40googlegroups.com.