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

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

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

2006-06-15 Thread Eric Arnold
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

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

2006-06-15 Thread Sylvain
] 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

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