Re: [VIM] Re: I have got one ml_get error

2006-08-31 Thread Walter Cazzola

On Thu, 31 Aug 2006, Akria Sheng wrote:


Dear Tony,
I have update the netrw to version 102, but it still happened.
The two line are changed to be 4424  4426.
When I comment the two line again, vim open the fileexplorer success.


just my 2¢, are you using a latin encode? I have noted your address come
from Taiwan so it could be an error linked to your specific encoding
that we cannot replicate because we use a different encoding.

Regards
Walter
--
Walter Cazzola, PhD - Assistant Professor, DICo, University of Milano
E-mail [EMAIL PROTECTED] Ph.: +39 010 353 6637  Fax: +39 010 353 6699
· · · --- · · · --- · · ·
   ... recursive: adjective, see recursive ...
· · · --- · · · --- · · ·

Re: [VIM] Re: [VIM] Re: I have got one ml_get error

2006-08-31 Thread Walter Cazzola

On Thu, 31 Aug 2006, Akria Sheng wrote:


Yes, I am using latin1 encoding. The linux which I use don't install any
function about chinese.
So the environment is english only. But I am not sure there is other strange
configuration to make this mistake. I have tried to change some options
include gui-option or multibyte or fontset to complie again, but it still
doesn't work. Furthermore, I have tried the same compile option with vim64
used, and vim64 is OK, vim70 will crash.


just another try nothing more: have you tried to open a different
directory? maybe some file has in the name characters that make vim
crash.

Walter

--
Walter Cazzola, PhD - Assistant Professor, DICo, University of Milano
E-mail [EMAIL PROTECTED] Ph.: +39 010 353 6637  Fax: +39 010 353 6699
· · · --- · · · --- · · ·
   ... recursive: adjective, see recursive ...
· · · --- · · · --- · · ·

Re: [VIM] Re: search/replace from a given column

2006-08-30 Thread Walter Cazzola

On Tue, 29 Aug 2006, Tim Chase wrote:


:%s/\%15cfoo\%30c/bar/g


will substitute foo with bar only between columns 15 and 30 (adjust for 
the off-by-one that may or not may occur)


great this one is doing exactly what I was looking for, thanks a lot.

I imagine that regular expression are more complicated and powerful than
I was expecting :-D

Walter

--
Walter Cazzola, PhD - Assistant Professor, DICo, University of Milano
E-mail [EMAIL PROTECTED] Ph.: +39 010 353 6637  Fax: +39 010 353 6699
· · · --- · · · --- · · ·
   ... recursive: adjective, see recursive ...
· · · --- · · · --- · · ·

search/replace from a given column

2006-08-29 Thread Walter Cazzola

Dear Vim Experts,
I'm looking for search and replace expressed on columns instead of rows.
Something like:

  :15,$s/foo/bar/gc

where 15 is the first column to consider and $ (in this case) is the
last column (whose value will change from row to row).

I've googled a little and looked in the vim docs but nothing happened
but I don't think (or hope ;-)) that this is impossible.

Any hints?

thanks a lot
Walter

--
Walter Cazzola, PhD - Assistant Professor, DICo, University of Milano
E-mail [EMAIL PROTECTED] Ph.: +39 010 353 6637  Fax: +39 010 353 6699
· · · --- · · · --- · · ·
   ... recursive: adjective, see recursive ...
· · · --- · · · --- · · ·

Re: [VIM] substitute a char with newline

2006-07-12 Thread Walter Cazzola

On Wed, 12 Jul 2006, Fabio Rotondo wrote:


I have a text file with many lines made like this:



[EMAIL PROTECTED]@[EMAIL PROTECTED]@



And I'd like to have them splitted on @ in newlines.



I have tried:



:%s/@/\n/g



but it does not work.
What am I missing?


In my view two things are wrong:
 - instead of 'g' use 'cg' to apply the change to all the occurrence of
   @ in a line;
 - instead of \n use 
(that you can abtain as CTRL-KCTRL-MCTRL-M


I hope this help.

Walter
--
Walter Cazzola, PhD - Assistant Professor, DICo, University of Milano
E-mail [EMAIL PROTECTED] Ph.: +39 010 353 6637  Fax: +39 010 353 6699
· · · --- · · · --- · · ·
   ... recursive: adjective, see recursive ...
· · · --- · · · --- · · ·

Re: [VIM] substitute a char with newline

2006-07-12 Thread Walter Cazzola

On Wed, 12 Jul 2006, Peter Palm wrote:


In my view two things are wrong:
  - instead of 'g' use 'cg' to apply the change to all the occurrence
of @ in a line;



So you have to confirm every substitution? Why?


whoops, I make a mistake, I'm so used to check what I substitute that I
forgot its meaning :-D

Walter

--
Walter Cazzola, PhD - Assistant Professor, DICo, University of Milano
E-mail [EMAIL PROTECTED] Ph.: +39 010 353 6637  Fax: +39 010 353 6699
· · · --- · · · --- · · ·
   ... recursive: adjective, see recursive ...
· · · --- · · · --- · · ·