spam in the Vim scripts section

2007-05-26 Thread Yegappan Lakshmanan

Hi all,

The following spam html file has been recently uploaded to the
Vim online scripts section:

http://vim.sourceforge.net/scripts/script.php?script_id=1907

Can someone with admin privileges remove this?

- Yegappan


Re: spam in subject

2007-04-29 Thread Bram Moolenaar

The subject of this message was:

 Subject: Re: ***SPAM*** Re: Re: ***SPAM***_Vim70's hignlighting

You are very lucky it got through.  You have to remove ***SPAM*** from
the subject line, otherwise it has a high probability to be marked as
spam.

I'm getting so much spam lately that my spam-filtering rules are quite
agressive.  So don't write a message that looks more or less like spam.

-- 
A fool must search for a greater fool to find admiration.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///


***SPAM*** Re: Vim70's highlighting

2007-04-10 Thread panshizhu

李长青 [EMAIL PROTECTED] 写于 2007-04-10 10:14:07:
 hi,all:
   thank you.
   I install vim70 as a new software ,not update from other version.
   And there is not a file named vimrc_example.vim at the path
 /usr/share/vim/vim70,just a file named debian.vim.And when I install
 vim70 completely,Thers is only one file like *.vim,and only one file
 named vimrc vimrc.tiny.

How do you installed vim70? By make install from source or by apt-get
install or something else?

What's the version? type :version inside vim will tell you the exact
version, maybe you had a tiny version of vim which has no highlighting
features?

If you compiled from source, then the default will be installed into
/usr/local instead of /usr.

--
Sincerely, Pan, Shi Zhu. ext: 2606

Re: ***SPAM*** Re: Re: ***SPAM***_Vim70's hignlighting

2007-04-10 Thread Zhaojun WU

Hi,

Seems you are using Debian? Which package do you choose (I suppose you
installed vim-tiny not vim)? If so, replace the vim-tiny with
vim via apt-get or aptitude.

Best,
Zhaojun

On 4/10/07, 李长青 [EMAIL PROTECTED] wrote:

hi,all:
thank you.
I install vim70 as a new software ,not update from other 
version.
And there is not a file named vimrc_example.vim at the path 
/usr/share/vim/vim70,just a file named debian.vim.And when I install vim70 completely,Thers is only 
one file like *.vim,and only one file named vimrc vimrc.tiny.


=== 2007-04-10 10:02:48 您在来信中写道:===

If you updated vim to 7.0 using apt-get, perhpas you could check if the
runtimepath also be old in your vimrc.

for example, replaced /usr/share/vim/vim64 to /usr/share/vim/vim70

李长青 wrote:
 hi,all:
I am new to Vim,I am using Vim7.0 now,and it has no Syntax even when I set 
Syntax on,It stell has no syntax hignlighting,why?  Please help me. On Vim6.4 ,It 
has syntax hignlighting, but now (vim7.0) it doesn't.

 Thanks.

 yhntgbty
 [EMAIL PROTECTED]
 2007-04-10


= = = = = = = = = = = = = = = = = = = =


致
礼!


李长青
[EMAIL PROTECTED]
2007-04-10




***SPAM*** Re: Vim70's hignlighting -- Has been solved! thanks all! :)

2007-04-10 Thread yhntgbty
Hi,all:
Sorry to trouble you all to help me.
I have install a complete Version of Vim7.0,and it has been solved.
Thank you again.

Happy vimming.

yhntgbty


- Original Message - 
From: Zhaojun WU [EMAIL PROTECTED]
To: yhntgbty [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2007 2:42 PM
Subject: Re: Vim70's hignlighting


 Hi,
 
 That's good. :)
 
 Next time, try to reply or CC to vim@vim.org so that others will
 know your problem has been solved and they will not spend time on it
 any more.
 
 Happy vimming.
 
 Zhaojun
 
 On 4/10/07, yhntgbty [EMAIL PROTECTED] wrote:
 Hi,
 thanks,Zhaojun. I just install a new Ubuntu6.10, the default version of 
 vim is Vim-7.0-tiny. I have install Vim70 by apt-get
 Thank you again. :)
 - Original Message -
 From: Zhaojun WU [EMAIL PROTECTED]
 To: 李长青 [EMAIL PROTECTED]
 Cc: vim@vim.org
 Sent: Tuesday, April 10, 2007 2:11 PM
 Subject: Re: ***SPAM*** Re: Re: ***SPAM***_Vim70's hignlighting


  Hi,
 
  Seems you are using Debian? Which package do you choose (I suppose you
  installed vim-tiny not vim)? If so, replace the vim-tiny with
  vim via apt-get or aptitude.
 
  Best,
  Zhaojun
 
  On 4/10/07, 李长青 [EMAIL PROTECTED] wrote:
  hi,all:
  thank you.
  I install vim70 as a new software ,not update from other 
  version.
  And there is not a file named vimrc_example.vim at the 
  path /usr/share/vim/vim70,just a file named debian.vim.And when I install 
  vim70 completely,Thers is only one file like *.vim,and only one file 
  named vimrc vimrc.tiny.
 
 
  === 2007-04-10 10:02:48 您在来信中写道:===
 
  If you updated vim to 7.0 using apt-get, perhpas you could check if the
  runtimepath also be old in your vimrc.
  
  for example, replaced /usr/share/vim/vim64 to /usr/share/vim/vim70
  
  李长青 wrote:
   hi,all:
  I am new to Vim,I am using Vim7.0 now,and it has no Syntax even 
   when I set Syntax on,It stell has no syntax hignlighting,why?  
   Please help me. On Vim6.4 ,It has syntax hignlighting, but now 
   (vim7.0) it doesn't.
  
   Thanks.
  
   yhntgbty
   [EMAIL PROTECTED]
   2007-04-10
  
 
  = = = = = = = = = = = = = = = = = = = =
 
 
  致
  礼!
 
 
  李长青
  [EMAIL PROTECTED]
  2007-04-10
 
 
 
 
 
 -- 
 Best,
 Zhaojun (Joseph)


***SPAM***

2007-04-09 Thread 李长青
hi,all:
   I am new to Vim,I am using Vim7.0 now,and it has no Syntax even when I 
set Syntax on,It stell has no syntax hignlighting,why?  Please help me. On 
Vim6.4 ,It has syntax hignlighting, but now (vim7.0) it doesn't.

Thanks.

yhntgbty
[EMAIL PROTECTED]
  2007-04-10


Re: ***SPAM***

2007-04-09 Thread Steven Woody

On 4/10/07, 李长青 [EMAIL PROTECTED] wrote:

hi,all:
   I am new to Vim,I am using Vim7.0 now,and it has no Syntax even when I set 
Syntax on,It stell has no syntax hignlighting,why?  Please help me. On Vim6.4 
,It has syntax hignlighting, but now (vim7.0) it doesn't.

Thanks.

yhntgbty
[EMAIL PROTECTED]
2007-04-10



i just copy the /usr/share/vim/vim70/vimrc_example.vim to
/usr/share/vim/vimrc and everything works fine then.

--
woody

then sun rose thinly from the sea and the old man could see the other
boats, low on the water and well in toward the shore, spread out
across the current.


Re: ***SPAM***

2007-04-09 Thread Xi Juanjie
If you updated vim to 7.0 using apt-get, perhpas you could check if the
runtimepath also be old in your vimrc.

for example, replaced /usr/share/vim/vim64 to /usr/share/vim/vim70

李长青 wrote:
 hi,all:
I am new to Vim,I am using Vim7.0 now,and it has no Syntax even when I 
 set Syntax on,It stell has no syntax hignlighting,why?  Please help me. On 
 Vim6.4 ,It has syntax hignlighting, but now (vim7.0) it doesn't.
 
 Thanks.
 
 yhntgbty
 [EMAIL PROTECTED]
   2007-04-10


***SPAM*** Re: Re: ***SPAM***_Vim70's hignlighting

2007-04-09 Thread 李长青
hi,all:
thank you.
I install vim70 as a new software ,not update from other 
version.
And there is not a file named vimrc_example.vim at the path 
/usr/share/vim/vim70,just a file named debian.vim.And when I install vim70 
completely,Thers is only one file like *.vim,and only one file named vimrc 
vimrc.tiny.


=== 2007-04-10 10:02:48 您在来信中写道:===

If you updated vim to 7.0 using apt-get, perhpas you could check if the
runtimepath also be old in your vimrc.

for example, replaced /usr/share/vim/vim64 to /usr/share/vim/vim70

李长青 wrote:
 hi,all:
I am new to Vim,I am using Vim7.0 now,and it has no Syntax even when 
 I set Syntax on,It stell has no syntax hignlighting,why?  Please help me. 
 On Vim6.4 ,It has syntax hignlighting, but now (vim7.0) it doesn't.
 
 Thanks.
 
 yhntgbty
 [EMAIL PROTECTED]
   2007-04-10


= = = = = = = = = = = = = = = = = = = =


致
礼!
 
 
李长青
[EMAIL PROTECTED]
  2007-04-10



VimTips spam protection - ideal case ? free hosting vs vim community driven own solution

2007-02-27 Thread Marc Weber
I've followed some of the emails of the thread Google Wiki Usefulness.

One big point was: How to protect against spammers?
=  ===

I do not know that much about that topic so I'd like to ask you 

a) who does spam
b) how to protect against it.

Am I right that we don't have to discuss about manuall spammers. This
spam content can be deleted/ reverted manually again, right?

The main problem are spam bots which try to publish their links to get
more users/ google ranking points whatsoever
But bots aren't smart. They will never be.
Their target is always attacking wikis using the most common protection
strategy (eg need login with confirmation mail, no login at all etc)..
captchas will be defeated within the next month? I don't know.

But do you think those spammers would be willing to train some kind of
artificial intelligence which can answer questions like:
Which color do you get when mixing red and blue? (choose one of purple,
red, black etc ) .. Sure this would be easy. Take a dictionary and fill
in all words.. One will work occasionally for spammers.

So another not so common approach:

From

'Press on the buttons below and complete the calculation 

[ 5 ] [ 7 ]
__ + ___  = ___

After pressing [5] and [7] and entering 12 it will look like 


[ 5 ] [ 7 ]
_5 + __7  = _12

and you're ready to take off.

I think everyone who wants to learn vim can do this. (If not he / she
can't contribute much useful content anyway ;)

All I want to ask is:
Can spam protection be done at all?
I think spam protection is a hot topic and we all like writing vim
scripts more than reverting / deleting spam pages (I haven't done this
anyway)

Lacking some experience I believe that a individual solution (like the
given one above) will give best results as not much spammers will take
the time to attack a single target. Do you have different experiences?


Vim community driven own system ?
=  ===
Has anyone elaborated the pro cons of
a) using a dedicated server* and our own or adjusted system, funded by
   vim community (* or something like that)
b) a free hosting like Google Wiki
c) extend the already existing vim.org to support wiki like features?

Do we already know what we really want/ need?
=  ===
a)
I've read about some people fearing loosing initial authorship of tips
causing those authors to not mantain their tips any longer?

b)
On the other hand we need some pages gathering all the important nice
peaces of code shaping a a kind of cookbook having headlines such as 

Editing HTML files with vim
* link to template systems for vim
* link to tip x ( opening file in different browser by pressing
  F x)
* link to tip y (superseds tip z) (html tidy interface)
* link to editing Javascript with html (read about javascript here)
* extra syntax files
completion scripts
| script name  |   features |
* commands you just have to know:
  text object at it
Editing C with vim
* completion 
* tagging
* what about clewn?
  pro / cons = matter of taste ( bother clewn people
  with clewn problems)
* gdb debugging
* 
Editing Large Files
* switch syntax of
 
Editing hex files
Vim and encryption
VIMRC useful initial settings

I don't think that you have to modify a)
but b). b) can also contain merges of different tips honoring the
original authors by linking against there original version.

Of course a wiki can fulfill needs of a) b).

All I want to say is: I think there can be more benefits than copying
tips. Does my imagination match yours?

Any comments? 
(References to discussions I've obviously missed is
welcome, too)

Marc


Re: VimTips spam protection - ideal case ? free hosting vs vim community driven own solution

2007-02-27 Thread Tom Purl
 I've followed some of the emails of the thread Google Wiki Usefulness.
. ..
 One big point was: How to protect against spammers?
 =  ===

Actually, I found a really good reference on this today:

* http://www.wikia.com/wiki/Help:Spam

It echoes a lot of what you said.  They combine blacklists, captchas,
and simple iq tests to help block edits that are most likely to contain
spam.  It seems like a pretty good strategy to me if you're going to let
anonymous users contribute to your wiki.

 Vim community driven own system ?
 =  ===
 Has anyone elaborated the pro cons of
 a) using a dedicated server* and our own or adjusted system, funded by
vim community (* or something like that)

Yes, and it wasn't well-received.

 b) a free hosting like Google Wiki

Problems with this wiki are the reason that we're looking for other
possible solutions.

 c) extend the already existing vim.org to support wiki like features?

This hasn't gained much traction.

 Do we already know what we really want/ need?
 =  ===
 a)
 I've read about some people fearing loosing initial authorship of tips
 causing those authors to not mantain their tips any longer?

I don't think that this will be a problem.

 b)
 On the other hand we need some pages gathering all the important nice
 peaces of code shaping a a kind of cookbook having headlines...
 ...
 All I want to say is: I think there can be more benefits than copying
 tips. Does my imagination match yours?

I'm all in favor of refactoring the tips some day if we find a better
design that the Vim community prefers.  But in the mean time, let's move
the stuff over and strive to achieve 100% data fidelity in the process.




Re: [SPAM?]Re: Vim 7 performance notes

2007-02-05 Thread Robert Cussons

George V. Reilly wrote:

Yakov Lerner wrote:


On 2/4/07, Yakov Lerner [EMAIL PROTECTED] wrote:


On 2/4/07, Alexei Alexandrov [EMAIL PROTECTED] wrote:
 
  Gnu malloc (glibc) is exceptionally fast, iirc. It is possible
  to benchmark the malloc speed during  the ./configure  time.
  And auto-select the initital size depending on the results.
 
  The procmail this similar technique in configure: It automatically
  benchmarks  it's own builtin strstr() vs system's strstr() and 
selects

  the one which is faster.
 

 In this particular case the speed of malloc is not the only factor.
 Big fraction of time is spent in memset() while initializing the array
 with zeros.

That's why I thought that it's reasonable to benchmark malloc()
relative to the time it takes to memset() that same area. (When
benchmarking, you need to know what to compare it to). If you
compare time it takes to malloc N bytes to the time it takes
to memset() same N bytes, you can tell the speed of malloc
*relative* to the time of memset()ting same size. So you will
automatically know which one is realtively more expensive,
the memset() or the malloc().



And then maybe the optimal initial size will be size where
memset() time is equal to the malloc() time ? The break-even,
so to say, in which neither of two time dominates the other ?



memset() is an O(N) operation. Its running time has to be proportional 
to N because it has to touch every single byte. If the pagefile gets 
involved, it's still O(N), but with a much larger constant.


malloc()'s running time is much harder to say anything about. Not only 
can it vary widely between different implementations, it also depends 
upon the state of the system. Is the heap fragmented? Is it suffering 
from lock contention? (Not a problem with single-threaded apps like 
Vim.) Is the memory already in the process's working set, or does malloc 
have to ask the OS for more pages? Is the system under intense memory 
pressure and will the malloc() operation cause paging to disk? Finally, 
malloc(N) is probably independent of N. It has to find a free entry of 
size N in its data structures, which is very dependent on both the 
implementation and the preceding factors. Benchmarking malloc() in 
./configure is not likely to tell you very much about its performance in 
a workload you care about.




Sorry to butt in here, but I had a question about all this discussion on 
malloc. If you are talking about the C function malloc which I think you 
are as you referred to glibc, then as far as I am aware, malloc does not 
zero the memory that is allocated, it merely allocates it, so I do not 
see where memset would be used. calloc on the other hand, also zeros the 
memory that it allocates. Sorry if I am completely misguided but just 
interested to know other people's thoughts on it.

Cheers,
Rob.


Re: Tips which are spam

2007-02-05 Thread Andy Wokula

Currently there is much spam in recent comments:
http://vim.sourceforge.net/tips/recent_notes.php

Andy

--
EOF


___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


Re: Tips which are spam

2007-02-05 Thread John Beckett

Andy Wokula wrote:

Currently there is much spam in recent comments:
http://vim.sourceforge.net/tips/recent_notes.php


Last time this was discussed I got the impression that there is a
feeling that if no one reads the spam, then it is not a problem.

But I think the situation is worse than that. The spammers don't
care if anyone reads the tips. They want the optimisation to their
search ranking in Google et al from having links to their site.
Helping these leaches is no longer acceptable IMHO.

Lots of places on the Internet have had to implement a simple
logon or at least a captcha - anonymous posting can't be allowed.

John



Re: Tips which are spam

2007-02-05 Thread Andy Wokula

John Beckett schrieb:

Andy Wokula wrote:

Currently there is much spam in recent comments:
http://vim.sourceforge.net/tips/recent_notes.php


Last time this was discussed I got the impression that there is a
feeling that if no one reads the spam, then it is not a problem.

But I think the situation is worse than that. The spammers don't
care if anyone reads the tips. They want the optimisation to their
search ranking in Google et al from having links to their site.
Helping these leaches is no longer acceptable IMHO.

Lots of places on the Internet have had to implement a simple
logon or at least a captcha - anonymous posting can't be allowed.

John


E.g. posters must either login or solve simple math
(or answer simple Vim questions, even better ;)
next to the Add Note button.

Should be fairly easy to add?

Andy

--
EOF


___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


RE: Tips which are spam

2007-02-05 Thread Halim, Salman
Might be easier on the user to use the 'negative captcha' idea floating
about online:

Put a hidden form field called email, phone, login or some such
that a bot is likely to fill and use CSS to hide it.  A human won't see
it, but a bot will (ignoring CSS).  If the field ends up containing a
value, it must have been filled by a bot; ignore the tip/note
submission.

Not foolproof, but it'll probably work here.

Salman.

 -Original Message-
 From: Andy Wokula [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 05, 2007 3:35 PM
 To: John Beckett
 Cc: vim
 Subject: Re: Tips which are spam
 
 John Beckett schrieb:
  Andy Wokula wrote:
  Currently there is much spam in recent comments:
  http://vim.sourceforge.net/tips/recent_notes.php
  
  Last time this was discussed I got the impression that there is a 
  feeling that if no one reads the spam, then it is not a problem.
  
  But I think the situation is worse than that. The spammers 
 don't care 
  if anyone reads the tips. They want the optimisation to 
 their search 
  ranking in Google et al from having links to their site.
  Helping these leaches is no longer acceptable IMHO.
  
  Lots of places on the Internet have had to implement a 
 simple logon or 
  at least a captcha - anonymous posting can't be allowed.
  
  John
 
 E.g. posters must either login or solve simple math (or 
 answer simple Vim questions, even better ;) next to the Add 
 Note button.
 
 Should be fairly easy to add?
 
 Andy
 
 --
 EOF
 
   
 ___
 Telefonate ohne weitere Kosten vom PC zum PC: 
 http://messenger.yahoo.de
 


RE: Tips which are spam

2007-02-05 Thread Max Dyckhoff
My suggestion: implement a reverse captcha. There is no additional overhead for 
users, and friends of mine who have implemented it have found that it foils the 
spammers, at least for now, with very little work.

http://damienkatz.net/2007/01/negative_captch.html

Max


 -Original Message-
 From: John Beckett [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 05, 2007 12:15 PM
 To: vim
 Subject: Re: Tips which are spam

 Andy Wokula wrote:
  Currently there is much spam in recent comments:
  http://vim.sourceforge.net/tips/recent_notes.php

 Last time this was discussed I got the impression that there is a
 feeling that if no one reads the spam, then it is not a problem.

 But I think the situation is worse than that. The spammers don't
 care if anyone reads the tips. They want the optimisation to their
 search ranking in Google et al from having links to their site.
 Helping these leaches is no longer acceptable IMHO.

 Lots of places on the Internet have had to implement a simple
 logon or at least a captcha - anonymous posting can't be allowed.

 John



Re: Spam in Tips in Vim's website

2007-01-19 Thread DervishD
Hi Guido :)

 * Guido Van Hoecke [EMAIL PROTECTED] dixit:
 I think I'll follow the advices from Salman Halim and Kim Schulz and
 I'll subscribe to vim tips using the RSS feed and will report the number
 
 I have no problems to add the vim scripts rss feed to my firefox live
 bookmarks by clicking the orange icon in the address bar.
 
 But the tips feed does not work with firefox. When I click the orange
 icon at the right hand of the url in the address field, the page is
 added (as http://www.vim.org/tips/rss2.php) but results in an error
 message stating that it failed to load the live bookmark. I managed to
 subscribe to the tips feed using liferea but would like to stick to
 firefox.

I've had the same problem in the past with other feeds and firefox.
Finally I got tired and, since I was lazy enough to avoid installing a
feed reader, I used Google Reader. Maybe not the best reader out there,
but does the job and I can use it from any computer with Internet
access.

Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!


Re: Spam in Tips in Vim's website

2007-01-18 Thread DervishD
Hi Salman :)

 * Halim, Salman [EMAIL PROTECTED] dixit:
 Spam in comments can also be addressed by moderators as of fairly
 recently.  When you come across such a comment, you can mark the
 comment as spam, leaving the rest of the tip and comments alone.
 While you are correct that you may not be able to catch them all,
 they're only a problem if someone stumbles across them -- in which
 case, they need only mention it and any moderator (yes, I speak for
 you, too!) will happily remove it.

Cool!. Thanks for the information.

Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!


Re: Tips which have spam contained in their comments/notes:

2007-01-18 Thread Charles E Campbell Jr

Yongwei Wu wrote:

On 1/18/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote:  



FYI -- this is a list of my tips that still have link spam added as
comments/notes:

I'm sure that they're not the only ones.



It is really annoying. In the worst case, there are 12 spam notes in a
tip! I needed to click and wait for quite a while because of the
Internet problem caused by the Taiwan earthquake.

At least the spam notes in these tips are eradicated now.

Thank you!  It almost feels like taking a shower after one really needs 
one...


Regards,
Chip Campbell


Re: Spam in Tips in Vim's website

2007-01-18 Thread Guido Van Hoecke

Hi,


I think I'll follow the advices from Salman Halim and Kim Schulz and
I'll subscribe to vim tips using the RSS feed and will report the number


I have no problems to add the vim scripts rss feed to my firefox live
bookmarks by clicking the orange icon in the address bar.

But the tips feed does not work with firefox. When I click the orange
icon at the right hand of the url in the address field, the page is
added (as http://www.vim.org/tips/rss2.php) but results in an error
message stating that it failed to load the live bookmark. I managed to
subscribe to the tips feed using liferea but would like to stick to
firefox.

Anybody any ideas?

Guido.

--
http://vanhoecke.org ... and go2 places!


Spam in Tips in Vim's website

2007-01-17 Thread DervishD
Hi all :)

I've noticed that there are still spam in the Tips comments at the
vim website. Bram, do you need help with that? If you want, I can take a
look at the comments and delete any spam I catch. I don't know how much
spare time I'll have, but even with ~1500 tips, it shouldn't take more
than a week or so.

I've read your post in the Vim page saying that with the help of
moderators, the spam had been eliminated, so probably the spam I've seen
today is new. That's bad :(((

Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!


RE: Spam in Tips in Vim's website

2007-01-17 Thread Halim, Salman
While I'm not in a position to determine who gets to moderate tips, I would 
like to request that if anybody sees spam while looking through a tip and 
decides to mention it, please include the tip number(s) so a moderator can go 
in and address the issue.

Thank you,

Salman. 

 -Original Message-
 From: DervishD [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 17, 2007 2:47 PM
 To: vim
 Subject: Spam in Tips in Vim's website
 
 Hi all :)
 
 I've noticed that there are still spam in the Tips 
 comments at the vim website. Bram, do you need help with 
 that? If you want, I can take a look at the comments and 
 delete any spam I catch. I don't know how much spare time 
 I'll have, but even with ~1500 tips, it shouldn't take more 
 than a week or so.
 
 I've read your post in the Vim page saying that with the 
 help of moderators, the spam had been eliminated, so probably 
 the spam I've seen today is new. That's bad :(((
 
 Raúl Núñez de Arenas Coronado
 
 --
 Linux Registered User 88736 | http://www.dervishd.net It's my 
 PC and I'll cry if I want to... RAmen!
 


Re: Spam in Tips in Vim's website

2007-01-17 Thread Kim Schulz
On Wed, 17 Jan 2007 20:46:30 +0100
DervishD [EMAIL PROTECTED] wrote:

 Hi all :)
 
 I've noticed that there are still spam in the Tips comments at the
 vim website. Bram, do you need help with that? If you want, I can
 take a look at the comments and delete any spam I catch. I don't know
 how much spare time I'll have, but even with ~1500 tips, it shouldn't
 take more than a week or so.
 
 I've read your post in the Vim page saying that with the help of
 moderators, the spam had been eliminated, so probably the spam I've
 seen today is new. That's bad :(((
 
 Raúl Núñez de Arenas Coronado
 

having RSS feeds of the tips being added makes it easy to catch the
spam just after it has been added without having to go to the homepage
all the time. 

-- 
Kim Schulz| Private :  http://www.schulz.dk
[EMAIL PROTECTED] | Business:  http://www.devteam.dk
+45 5190 4262 | Sparetime: http://www.fundanemt.com


Re: Spam in Tips in Vim's website

2007-01-17 Thread Bram Moolenaar

DervishD wrote:

 I've noticed that there are still spam in the Tips comments at the
 vim website. Bram, do you need help with that? If you want, I can take a
 look at the comments and delete any spam I catch. I don't know how much
 spare time I'll have, but even with ~1500 tips, it shouldn't take more
 than a week or so.
 
 I've read your post in the Vim page saying that with the help of
 moderators, the spam had been eliminated, so probably the spam I've seen
 today is new. That's bad :(((

Well, the most obvious spam has been deleted, but it takes time to check
all the tips.  We have a group of moderators working on it.  If you want
to be a moderator let me know your www.vim.org login.

-- 
hundred-and-one symptoms of being an internet addict:
37. You start looking for hot HTML addresses in public restrooms.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///


Re: Spam in Tips in Vim's website

2007-01-17 Thread DervishD
Hi Bram :)

 * Bram Moolenaar [EMAIL PROTECTED] dixit:
 DervishD wrote:
 
  I've noticed that there are still spam in the Tips comments at the
  vim website. Bram, do you need help with that? If you want, I can take a
  look at the comments and delete any spam I catch. I don't know how much
  spare time I'll have, but even with ~1500 tips, it shouldn't take more
  than a week or so.
  
  I've read your post in the Vim page saying that with the help of
  moderators, the spam had been eliminated, so probably the spam I've seen
  today is new. That's bad :(((
 
 Well, the most obvious spam has been deleted, but it takes time to check
 all the tips.  We have a group of moderators working on it.  If you want
 to be a moderator let me know your www.vim.org login.

I think I'll follow the advices from Salman Halim and Kim Schulz and
I'll subscribe to vim tips using the RSS feed and will report the number
of the affected tips. If things get worse and the feed works for me (by
now I'm using Google Reader), I'll happily join vim.org as moderator to
delete the spam.

Thanks a lot :)

Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!


Re: Spam in Tips in Vim's website

2007-01-17 Thread DervishD
Hi Salman :)

 * Halim, Salman [EMAIL PROTECTED] dixit:
 While I'm not in a position to determine who gets to moderate tips, I
 would like to request that if anybody sees spam while looking through
 a tip and decides to mention it, please include the tip number(s) so a
 moderator can go in and address the issue.

I'll follow your advice and will subscribe to the RSS feed. This way
I'll get a list with any new spam that appears in the tips section.

Thanks :)

Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!


Re: Spam in Tips in Vim's website

2007-01-17 Thread DervishD
Hi Kim :)

 * Kim Schulz [EMAIL PROTECTED] dixit:
 On Wed, 17 Jan 2007 20:46:30 +0100
 DervishD [EMAIL PROTECTED] wrote:
  I've noticed that there are still spam in the Tips comments at the
  vim website. Bram, do you need help with that? If you want, I can
  take a look at the comments and delete any spam I catch. I don't know
  how much spare time I'll have, but even with ~1500 tips, it shouldn't
  take more than a week or so.
 
 having RSS feeds of the tips being added makes it easy to catch the
 spam just after it has been added without having to go to the homepage
 all the time. 
 
I've subscribed and I've already picked some of the spam.
Unfortunately, this only solves tips that *are* spam, not spam in
comments (at least I can't catch that from reader without looking at
every tip).

Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!


Tips which are spam

2007-01-17 Thread DervishD
Hi all :))

So far I've picked:

1473,1471,1461,1460,1459,1457,1452. At least some of them have been
already deleted.

About the spam in tips' comments, that's another issue.

Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!


Re: Tips which are spam--clean up author/summary

2007-01-17 Thread Russell Bateman
While (someone) is at it, tip #1472's author and summary need to be 
adjusted. Similarly, #1456's author field.





RE: Tips which are spam--clean up author/summary

2007-01-17 Thread Halim, Salman
Moderators can only mark tips and/or comments as spam.  We can't make
any other changes. 

 -Original Message-
 From: Russell Bateman [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 17, 2007 4:09 PM
 To: vim
 Subject: Re: Tips which are spam--clean up author/summary
 
 While (someone) is at it, tip #1472's author and summary need 
 to be adjusted. Similarly, #1456's author field.
 
 
 


RE: Spam in Tips in Vim's website

2007-01-17 Thread Halim, Salman
 I've subscribed and I've already picked some of the spam.
 Unfortunately, this only solves tips that *are* spam, not 
 spam in comments (at least I can't catch that from reader 
 without looking at every tip).
 
 Raúl Núñez de Arenas Coronado

Spam in comments can also be addressed by moderators as of fairly recently.  
When you come across such a comment, you can mark the comment as spam, leaving 
the rest of the tip and comments alone.  While you are correct that you may not 
be able to catch them all, they're only a problem if someone stumbles across 
them -- in which case, they need only mention it and any moderator (yes, I 
speak for you, too!) will happily remove it.

There is a page (http://vim.sourceforge.net/tips/recent_notes.php) that lists 
the most recently added tip notes.  The nice thing about it is that you can 
mark notes as spam right from here.

Salman.


Tips which have spam contained in their comments/notes:

2007-01-17 Thread Charles E Campbell Jr

Hello!

FYI -- this is a list of my tips that still have link spam added as 
comments/notes:


   126
   139
   147
   150
   152
   167
   200
   411
   573
   588
   607
   622
   744
   862
   895

I'm sure that they're not the only ones.

Regards,
Chip Campbell



Re: Tips which have spam contained in their comments/notes:

2007-01-17 Thread Yongwei Wu

On 1/18/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote:

Hello!

FYI -- this is a list of my tips that still have link spam added as
comments/notes:

126
139
147
150
152
167
200
411
573
588
607
622
744
862
895

I'm sure that they're not the only ones.

Regards,
Chip Campbell


It is really annoying. In the worst case, there are 12 spam notes in a
tip! I needed to click and wait for quite a while because of the
Internet problem caused by the Taiwan earthquake.

At least the spam notes in these tips are eradicated now.

--
Wu Yongwei
URL: http://wyw.dcweb.cn/


***SPAM*** Re: Why vta doesn't work when a is one character away?

2006-11-28 Thread dtsfan
Oh, yes, I am using :behave mswin. Now it is all right when using :behave xterm.
- Original Message -
From: BillMcCarthy[EMAIL PROTECTED]
To: A.J.Mechelynck[EMAIL PROTECTED]
Sent: 2006-11-28 12:04:54
Subject: Re: Why vta doesn't work when a is one character away?

On Mon 27-Nov-06 9:39pm -0600, A.J.Mechelynck wrote:

 [EMAIL PROTECTED] wrote:
 For example, the word
 
 Cat
 
 When the cursor is on C, and I press vta, the cursor doesn't move.
 However, if I press
 vtt, it moves two characters to the right. Is this an intentional design
 decision or a bug?
 
 I've tried this in both vim 6.4 and the latest version of vim 7.0 on the
 download page. 

 Works for me with gvim 7.0.168 with Gnome2 GUI on SuSE Linux 9.3, both in GUI
 mode and in console mode

 With the cursor on the C of Cat in Normal mode

 after vta the cursor is on the C (i.e., one character left of the a), one
 character is visually highlighted as shown at bottom right of the screen. (In
 console mode the highlight color is not noticeable because the only character
 of the Visual selection is at the cursor position.)

 after (Esc to clear Visual mode, then) vtt the cursor is on the a (i.e., one
 character left of the t), two characters (Ca) are visually highlighted.

With typical windows settings, select=exclusive (from
:behave mswin).  With that, vta leaves the cursor to the
left of C and zero is shown in the lower right (vfC produces
identical results).  However vtt highlights Ca and two is
shown in the lower right (vta produces identical results).

-- 
Best regards,
Bill






SPAM problem: How to get modified my email address shown at vim tip discussion web page?

2006-11-25 Thread Tomas MMMMM
  I supplied my email address (in a not spam-proof form) on
the discussion page of vim tip #1386
(http://www.vim.org/tips/tip.php?tip_id=1386).
  It was in my first post, I didn\'t realize the address would
be shown. I assumed it was required for some administration
matters only. 
  Now I receive SPAM messages into my mailbox. Unfortunately,
there is no SPAM filtering in my provider\'s email system.
In spite of it, I really would prefere to keep the address.
It\'s been used for decades. But I am affraid I end up with 20+
spam messages in my mailbox each day.
  So I asked for the address removal or fix at addresses found
via the web site footer: vimonline-support at
lists.sourceforge.net, scrott at users.sourceforge.net
(Scott Johnston) and jmorace at users.sourceforge.net
(Jonathan Morace). But there was no answer :-(
  I know this is not directly related to the vim editor, but
still, it\'s vim community matter, I believe. So, does anybody
know how can I get the web page\'s address entry changed to
something like \me at domain dot org\? Is there some other
webmaster to contact?
  Thanks a lot.

Tom








__
http://www.tahaj.sk - Najnavstevovanejsia stranka slovenskeho downloadu




Spam on vim.org

2006-10-22 Thread Peter Hodge
Hello,

Can the person responsible please remove this spam from vim.org?

http://www.vim.org/tips/tip.php?tip_id=1367

regards,
Peter



 
Do you Yahoo!? 
Yahoo!7 Time Capsule - Make your mark and be a part of history
http://www.yahoo7.com.au/timecapsule


Re: Spam on vim.org

2006-10-22 Thread Yongwei Wu

Removed.

Don't worry, spam won't stay there long. There are more than 10 people
checking for spam in different time zones. Checking the tip list you
will find holes in the sequence numbers, which indicates removed tips.

On 10/23/06, Peter Hodge [EMAIL PROTECTED] wrote:

Hello,

Can the person responsible please remove this spam from vim.org?

http://www.vim.org/tips/tip.php?tip_id=1367

regards,
Peter


--
Wu Yongwei
URL: http://wyw.dcweb.cn/


Re: [SPAM?]Re: VIM as C++ IDE

2006-10-16 Thread Robert Cussons
This is brilliant, I've never used make from inside Vim before, please
surpress your sniggersAs I am working on Linux with a microsoft
ergonomic keyboard, I have an unused windows button or two, how would I
map the right hand one to the same mapping as below, i.e. instead of
F12? As KDE's control centre in the custom shortcuts returns Win for the
windows button, I tried:
map Win+M ESC:wkEnter:makekEnter:copekEnter
but it doesn't seem to do anything, how does Vim interpret the windows key?

Many thanks,
Rob.

[EMAIL PROTECTED] wrote:
 Peng Yu [EMAIL PROTECTED] 写于 2006-10-14 05:59:29:
 
map F12 ESC:wkEnter:makekEnter
Can some body provide some script to satisfy my more general
requirement? I want press F12, then make is called. The error window
will not be closed unless I do so. When I brower the error, the file
where the error is from will be open automatically and the cursor is
put in the error line?

Thanks,
Peng
 
 
 for that simple, don't need any plugin:
 
 map F12 ESC:wkEnter:makekEnter:copekEnter
 
 You see, just add the :cope will do the trick.
 
 Note that the cursor will be in :cope window then, you may need to press an
 enter key to go into the first error. But what to do when there's no error?
 then CR does nothing.
 
 --
 Sincerely, Pan, Shi Zhu. ext: 2606
 
 


Re: [SPAM?]Re: VIM as C++ IDE

2006-10-16 Thread Raimon Grau

On 10/16/06, Robert Cussons [EMAIL PROTECTED] wrote:

This is brilliant, I've never used make from inside Vim before, please
surpress your sniggersAs I am working on Linux with a microsoft
ergonomic keyboard, I have an unused windows button or two, how would I
map the right hand one to the same mapping as below, i.e. instead of
F12? As KDE's control centre in the custom shortcuts returns Win for the
windows button, I tried:
map Win+M ESC:wkEnter:makekEnter:copekEnter
but it doesn't seem to do anything, how does Vim interpret the windows key?


You can map WinKey to Fx (where 12x) , and then map Fx to whatever
wou want in vim.

xev will help you to find the keycode for winkey (usually 115 or 116)
then
xmodmap -e keycode 115 = F30
and you're done. Now windows key sends an F30 and you should be able
to make a map from vim

HTH,
 Ray



Many thanks,
Rob.

[EMAIL PROTECTED] wrote:
 Peng Yu [EMAIL PROTECTED] 写于 2006-10-14 05:59:29:

map F12 ESC:wkEnter:makekEnter
Can some body provide some script to satisfy my more general
requirement? I want press F12, then make is called. The error window
will not be closed unless I do so. When I brower the error, the file
where the error is from will be open automatically and the cursor is
put in the error line?

Thanks,
Peng


 for that simple, don't need any plugin:

 map F12 ESC:wkEnter:makekEnter:copekEnter

 You see, just add the :cope will do the trick.

 Note that the cursor will be in :cope window then, you may need to press an
 enter key to go into the first error. But what to do when there's no error?
 then CR does nothing.

 --
 Sincerely, Pan, Shi Zhu. ext: 2606





Re: [SPAM?]Re: gvimdiff and gvim 7 in windows

2006-08-01 Thread Robert Cussons

[EMAIL PROTECTED] wrote:

Robert Cussons [EMAIL PROTECTED] wrote on 2006.07.21 19:19:56:


because this is the size I want my gvim window to be when it opens,
however as gvimdiff opens at least two buffers I would like it to open
full screen, is there a way of getting this to happen?

gvim 7 in windows part:

I also use gvim at home, but there I use gvim 7 on windows instead of
gvim 6.3 on debian. So I have a few questions:

How do I use gvimdiff in windows?

If I already have a gvim window open how do I launch a new separate
instance of gvim from inside the first window (without having to go to
the desktop and click the icon!)

Sorry this is more of a windows question than gvim: On my linux machine
running KDE I have Ctrl-Shift-G set up to launch gvim, is there a way to
set a keyboard shortcut in Windows XP to do the same?

Many thanks for any help,
Rob.



If you want to maximize the window in Windows, here is the way:

if has(gui_win32)NT Windows
autocmd GUIEnter * :simalt ~x
endif

Note that it should be wrapped inside an autocmd group, if you don't have
any autocmd inside your .vimrc, here is the way:
augroup vimrcEx
autocmd!
 put your autocmd here.
augroup END

About diff mode: I use the following to test for diff mode, but I forget
why it works.
let in_diff_mode = 0
windo let in_diff_mode = in_diff_mode + l:diff
if in_diff_mode == 1
 do something
else
 do something else
endif

About short-cut key for launch gvim? just create a shortcut on desktop or
start menu, then right click to change the properties, the short cut key
could be set there.

--
Sincerely, Pan, Shi Zhu. ext: 2606





A very late reply to this, thanks for the diff mode tip that works great 
on Linux, I will try it on windows later.


The short-cut key works, I had already tried it, but I was trying to 
type in the box rather than press the keys themselves, DOH! The only 
problem is that if you already have a gvim session running all the 
shortcut key does is maximize it, but nevermind, in that case I will 
just use what Tony suggested: !gvim


Thanks,
Rob.


Re: ***SPAM*** Problem with regexp in macro

2006-06-16 Thread Charles E Campbell Jr

Gerald Lai wrote:


On Thu, 15 Jun 2006, Sylvain wrote:

[snip]

I'm using setline() function to replace the line..so I will delete it 
before I add mine, it's not very elegant so if anyone has a better 
way, I will take it also :-)


[snip]

I modified Vimtip#329 some time ago to be able to swap visual
highlighted words. I also modified it into a function form because it
got long.

The code below has an advantage over tip#329 in that it does not pollute
the search history. In addition, it also works for swapping words on
different lines.

It does, however, clobber marks 'y  'z for positioning purposes. You
can code around this if you want.


Sounds like your function does something like what visswap.vim does, which
is mentioned in the notes following tip#329.  It, too, does not pollute 
the search
history, nor does it clobber marks.  Its actually swaps visual blocks, 
not just

words (but, of course, it can swap words, too).  And, its a function!  :)

The procedure:  use visual block to select a block; type ctrl-y(sort 
of a yank)
Then, use visual block to select the other block; type ctrl-x 
(do the swap)


visswap.vim is available at 
http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs,

see Visual Mode Based Swapping.

Regards,
Chip Campbell


Re: ***SPAM*** Problem with regexp in macro

2006-06-15 Thread Sylvain

Thanks for the trick, I love it already :-)
- Original Message - 
From: Eric Arnold [EMAIL PROTECTED]

To: Charles E Campbell Jr [EMAIL PROTECTED]
Cc: Sylvain [EMAIL PROTECTED]; vim@vim.org
Sent: Thursday, June 15, 2006 5:25 PM
Subject: Re: ***SPAM*** Problem with regexp in macro



  let lineString=substitute(lineString, \(\w\+\)\(\s\+\)\(\w\+\),
 \3\2\1, g)


BTW, here's another trick (I've become a \v  convert :-)

let lineString=substitute(lineString, '\v(\w+)(\s+)(\w+)',



Re: ***SPAM*** Problem with regexp in macro

2006-06-15 Thread Eric Arnold

Vim's line endings are a bit complicated.  Whether a CR or NL is
treated as a literal character or a line break depends on context.

First, what is the value of fileformat?  This will determine whether
\n or \r\n is the standard line break.

Secondly, how are you using the lineString value?  When I use

let lineString=\r.substitute(lineString, 
let @a = lineString
put a

I get a line break at the front.  You don't say if you're using
setline() or what.  Both setline() and append() will use the literal
values for \r and \n.  As far as I know, the only way to get it to use
them as line breaks is to use some form of put (after deleting the
existing text, of course).

If there's a better way, I'd like to hear it, as this has always been
an annoyance for me also.

In Vim7 you have the option of giving a list to   setline()   and
append()   , which solves the line break ambiguity:

call setline(., [ ', lineString ] )

Also, keep in mind that \n is stored as a NULL (which is the ^@) you are seeing.


On 6/15/06, Sylvain [EMAIL PROTECTED] wrote:

Ok, thank you very much, it's works now :-)

But I have another little problem, if, always for example, I put let
lineString=\r.substitute(lineString, '\(\w\+\)\(\s\+\)\(\w\+\)','\3\2\1',
'g') or change the \r by \n or \r\n or \n\r (always between double quote
;-)) Vim add ^M or ^@

Note : always in a function, not a map with a single line
Thanks

- Original Message -
From: Yakov Lerner [EMAIL PROTECTED]
To: Sylvain [EMAIL PROTECTED]
Cc: vim@vim.org
Sent: Thursday, June 15, 2006 3:39 PM
Subject: Re: ***SPAM*** Problem with regexp in macro


 On 6/15/06, Sylvain [EMAIL PROTECTED] wrote:
 For example, consider this regexp :

 s:\(\w\+\)\(\s\+\)\(\w\+\):\3\2\1:

 It swap 2 first words on a line, if we test it, it's works..

 Now I want to make a function to do this job so I put in my .vimrc :

 map F7 :call Swap2Words()CR

 function! Swap2Words()
   let lineNumber=line(.)
   let lineString=getline(lineNumber)
   let lineString=substitute(lineString, \(\w\+\)\(\s\+\)\(\w\+\),
 \3\2\1, g)

 You need single quotes here (apostrophes '...') not double quotes.
 Double quotes srew the backslashes inside. SIngle quotes
 preserve backslashes which is what you want.

 Yakov




Re: ***SPAM*** Problem with regexp in macro

2006-06-15 Thread Sylvain

Vim's line endings are a bit complicated.  Whether a CR or NL is
treated as a literal character or a line break depends on context.

First, what is the value of fileformat?  This will determine whether
\n or \r\n is the standard line break.

It's an unix file format


Secondly, how are you using the lineString value?  When I use

let lineString=\r.substitute(lineString, 
let @a = lineString
put a

I get a line break at the front.  You don't say if you're using
setline() or what.  Both setline() and append() will use the literal
values for \r and \n.  As far as I know, the only way to get it to use
them as line breaks is to use some form of put (after deleting the
existing text, of course).
If there's a better way, I'd like to hear it, as this has always been
an annoyance for me also.

Yes !! You found my problem :-)
I'm using setline() function to replace the line..so I will delete it before 
I add mine, it's not very elegant so if anyone has a better way, I will take 
it also :-)



In Vim7 you have the option of giving a list to   setline()   and
append()   , which solves the line break ambiguity:

call setline(., [ ', lineString ] )

Also, keep in mind that \n is stored as a NULL (which is the ^@) you are 
seeing.
What ? \n stored as a NULL ? I don't understand.. For me \n is 0x0A so what 
you mean ?




On 6/15/06, Sylvain [EMAIL PROTECTED] wrote:

Ok, thank you very much, it's works now :-)

But I have another little problem, if, always for example, I put let
lineString=\r.substitute(lineString, 
'\(\w\+\)\(\s\+\)\(\w\+\)','\3\2\1',

'g') or change the \r by \n or \r\n or \n\r (always between double quote
;-)) Vim add ^M or ^@

Note : always in a function, not a map with a single line
Thanks

- Original Message -
From: Yakov Lerner [EMAIL PROTECTED]
To: Sylvain [EMAIL PROTECTED]
Cc: vim@vim.org
Sent: Thursday, June 15, 2006 3:39 PM
Subject: Re: ***SPAM*** Problem with regexp in macro


 On 6/15/06, Sylvain [EMAIL PROTECTED] wrote:
 For example, consider this regexp :

 s:\(\w\+\)\(\s\+\)\(\w\+\):\3\2\1:

 It swap 2 first words on a line, if we test it, it's works..

 Now I want to make a function to do this job so I put in my .vimrc :

 map F7 :call Swap2Words()CR

 function! Swap2Words()
   let lineNumber=line(.)
   let lineString=getline(lineNumber)
   let lineString=substitute(lineString, \(\w\+\)\(\s\+\)\(\w\+\),
 \3\2\1, g)

 You need single quotes here (apostrophes '...') not double quotes.
 Double quotes srew the backslashes inside. SIngle quotes
 preserve backslashes which is what you want.

 Yakov






Re: ***SPAM*** Problem with regexp in macro

2006-06-15 Thread Gerald Lai

On Thu, 15 Jun 2006, Sylvain wrote:

[snip]
I'm using setline() function to replace the line..so I will delete it before 
I add mine, it's not very elegant so if anyone has a better way, I will take 
it also :-)

[snip]

I modified Vimtip#329 some time ago to be able to swap visual
highlighted words. I also modified it into a function form because it
got long.

The code below has an advantage over tip#329 in that it does not pollute
the search history. In addition, it also works for swapping words on
different lines.

It does, however, clobber marks 'y  'z for positioning purposes. You
can code around this if you want.

===
tested for GVim 6.3  7.0
shift word forward/backward
nnoremap silentA-S-Left  _yiw:cal ShiftWord(0)CR
nnoremap silentA-S-Right _yiw:cal ShiftWord(1)CR
vnoremap silentA-S-Left  EscS-LeftS-Left:cal 
ShiftWord(2)CRmyfC-aaBSEscmzgvg`zog`y
vnoremap silentA-S-Right EscS-RightS-Right:cal 
ShiftWord(3)CR_xmyfC-aaBSEscmzgvg`yog`z

function! ShiftWord(...)
  let delimiter = \C-a
  if a:1 == 0
let @/ = '\w\+\_W\+\%#'
execute normal! ?\CR
let @/ = '\%#\(\w\+\)\(\_W\+\)\(\w\+\)'
silent! s//\3\2\1
execute normal! \C-o
  elseif a:1 == 1
let @/ = '\%#\(\w\+\)\(\_W\+\)\(\w\+\)'
silent! s//\3\2\1
execute normal! \C-o
let @/ = '\%#\w\+\_W\+\zs'
execute normal! /\CR
  elseif a:1 == 2
let t_paste = paste
set paste
execute normal! g`a\C-v.delimiter
execute normal! g`i\C-v.delimiter
let paste = t_paste
let @/ = '\w\+\_W\+\w*\%#'
execute normal! ?\CR
let @/ = 
'\%#\(\w\+\)\(\_W\{-1,}\)\(\w*\)'.delimiter.'\(.\{-1,}'.delimiter.'\)'
silent! s//\4\2\3\1
execute normal! \C-o
  elseif a:1 == 3
let t_paste = paste
set paste
execute normal! g`a\C-v.delimiter
execute normal! g`i\C-v.delimiter
let paste = t_paste
let @/ = '\%#\('.delimiter.'.\{-1,}'.delimiter.'\)\(\w*\)\(\_W\+\)\(\w\+\)'
silent! s//\4\2\3\1
execute normal! \C-o
let @/ = '\%#\w\+\_W\+\zs'.delimiter
execute normal! /\CR
  endif
  nohlsearch
endfunction
===

HTH :)
--
Gerald


***SPAM*** Error detected while processing function SNR1_BMShow

2006-06-13 Thread Cesar Romani
I use vim 7.0 on Windows XP compiled with MS Visual C.
If I do: gvim -u NONE -U NONE -c set verbosefile=C:/vim.log
I get:

--
Error detected while processing function SNR1_BMShow:
line   12:
E329: No menu Buffer
Error detected while processing function SNR1_BMShow:
line   14:
E328: Menu only exists in another mode
Tear off this menu
---

Many thanks in advance,

Andalou



Re: ***SPAM*** Error detected while processing function SNR1_BMShow

2006-06-13 Thread A.J.Mechelynck

Mathias Michaelis wrote:

Hello Andalou

  

I use vim 7.0 on Windows XP compiled with MS Visual C.
If I do: gvim -u NONE -U NONE -c set verbosefile=C:/vim.log
I get:

--
Error detected while processing function SNR1_BMShow:
line   12:
E329: No menu Buffer
Error detected while processing function SNR1_BMShow:
line   14:
E328: Menu only exists in another mode
Tear off this menu
---



I can confirm that behaviour of gvim, but I think it is a feature,
not a bug. Typing

:scriptnames

in the gvim opened like above shows that SNR1_BMShow means the
function BMShow() defined in $VIMRUNTIME\menu.vim. Line 12 and line
14 of that function contain the code

12: silent! unmenu Buffers
14: silent! unmenu! Buffers

Here, the silent! means that it is expected that something could go
wrong, but an error message should not be displayed nor queued in
the message history (shown by :messages). :silent is probably not
designed to suppress verbose messages, although I can't find that
explicitly in the

:help :silent

With best regards

Mathias


  
'verbosefile' says it's analogous to :redir, and the latter (as 
mentioned not very clearly under :help :redir) does not filter away 
silent messages (they are logged but not displayed). I would expect 
silent messages to be logged to the 'verbosefile' (even though not 
displayed) when 'verbosefile' is nonempty.


However, under :help -u it is said that -u NONE disables vimrc, 
gvimrc, and all global plugins. If menu.vim was sourced nevertheless, 
then IIUC the user must have somehow triggered that sourcing.




Best regards,
Tony.


***SPAM*** Vim doesn't open files with chinese file names

2006-06-09 Thread Cesar Romani
If I have a file with a chinese file name, f.e. 感情包袱.txt
It won’t open but it throws the message: E303: Unable to open swap file for
“.txt”, recovery impossible

Instead with notepad I can open the file.

Many thanks in advance,

Andalou



Re: ***SPAM*** bay vim in china

2006-06-06 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote:
 dear

   sir

 Thank you very much for your support.

 I am panasonic corporate information systens company (china).I want to know
 whether vim is free to use.If not i want to bay vim in china.
 please tell me where to bay and how much .

 Thanks  Regards





















 马培佳
 TEL:(010)65582386-855613501032052
 FAX:(010)65832430
 [EMAIL PROTECTED]
 松下电器(中国)有限公司
 Panasonic Corporation Of China
 地址:中国北京市朝阳区光华路甲8号和乔大厦C座7层
 邮编:100026



   
1. Vim can be used freely under the Vim License. It can be downloaded in
source form from the official Vim site ftp://ftp.vim.org/pub/vim/ . Some
binary distributions are also available from the same site but they are
not updated as bugfixes are published. Steve Hall distributes a bugfixed
Windows installer, see http://cream.sourceforge.net/vim.html (I
recommend installing version 7.0.017 which is the current released
version). See also my HowTo pages if you want to compile Vim yourself
(it's not difficult):
http://users.skynet.be/antoine.mechelynck/vim/compile.htm (for Windows)
and http://users.skynet.be/antoine.mechelynck/vim/compunix.htm (for
Unix/Linux).

2. Vim users are encouraged to make a voluntary donation to the Kibaale
Children Centre in Uganda, but that is at the users' discretion, nothing
is required.

3. Users can also help Bram Moolenaar develop Vim by sponsoring/registering.

See (after starting Vim version 7):
:help license
:help sponsor
:help register


Best regards,
Tony.


***SPAM*** bay vim in china

2006-06-05 Thread mapeijia
dear

  sir

Thank you very much for your support.

I am panasonic corporate information systens company (china).I want to know
whether vim is free to use.If not i want to bay vim in china.
please tell me where to bay and how much .

Thanks  Regards





















马培佳
TEL:(010)65582386-855613501032052
FAX:(010)65832430
[EMAIL PROTECTED]
松下电器(中国)有限公司
Panasonic Corporation Of China
地址:中国北京市朝阳区光华路甲8号和乔大厦C座7层
邮编:100026

***SPAM*** GVIM7.0 terminates when tries to delete the quickfix buffer.

2006-05-26 Thread Jimmy Lao

OS: Windows2000
VIM version: GVIM 7.0 from www.vim.org

I used ':vimgrep/pattern/j %' to search for a pattern
in current buffer and listed the matches in the quickfix
window. Then I double-clicked the left button of the mouse
on the items in the quickfix window to jump to the
corresponding locations.

After several double-clicks, I tried to delete the quickfix
buffer with ':bd', then a message box prompted which said
memory 0x0121fc74 accessed by instruction 0x004920e5 can't
be read. After I closed the message box, VIM terminated.

That has happened many times but not always. And when I
used ':cs find' the same thing happened.

Have I done anything wrong? Or it's a problem of the OS or VIM?

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/