Re: Copying from vim to a term

2006-06-20 Thread Wim R. Crols
Jerin Joy wrote: Hi, I have a vim window open with a file in a terminal. I wanted to copy some text to another terminal. FIrst problem is my select. I hit the Ctrl+V to go into visual mode on a line, then hitting the Shift key and moving up and down does not select the lines below or above it.

s?

2006-06-30 Thread Wim R. Crols
Hi, Not really a request for help, but I was wondering if you guys ever use the 's' command. It's just a shortcut for 'cl', which I almost never need. Since I don't assume it was put in to be complete or something, I'm intrigued by it's enigmatic purpose. :) Thanks, Wim

Re: s?

2006-07-03 Thread Wim R. Crols
Thanks for all the explanations everyone. I do see your points, and will try to add 's' to my weaponry :) Wim On 6/30/06, Wim R. Crols [EMAIL PROTECTED] wrote: Hi, Not really a request for help, but I was wondering if you guys ever use the 's' command. It's just a shortcut for 'cl', which

Re: substitute a char with newline

2006-07-12 Thread Wim R. Crols
Jürgen Krämer wrote: Hi, Fabio Rotondo schrieb: 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? \n in the second part of

delete buffers matching pattern

2006-07-17 Thread Wim R. Crols
Is there a way to delete all buffers matching a certain pattern? For example, suppose I just read in all files in a directory and this is my buffer list: 1 a.txt 2 b.txt 3 1.exe 4 2.exe 5 c.txt 6 3.exe 7 d.txt I want to do something like :bdelete *.exe. I don't want to manually enumerate all

Re: :edit {file} question

2006-07-20 Thread Wim R. Crols
[EMAIL PROTECTED] wrote: What is the easiest way to edit a file that is in the same directory as the current file? E.g. I open a file like this: vim /x/y/z/w/file1.c and want to now open /x/y/z/w/file2.c? Occasionally want to open files in the parent directory of current file's directory. It

mapped macro to on multiple lines?

2006-08-22 Thread Wim R. Crols
Hi, How can I apply a macro on a set of selected lines? I have a simple mapping under F4 (aligment of '=' on the same column, but it's not really important) :map F4 0f=60i EscD60Barp and I want to execute it for every line in a Visual Line selection. I tried this :','normal F4 But there

Re: mapped macro to on multiple lines?

2006-08-22 Thread Wim R. Crols
A.J.Mechelynck wrote: Wim R. Crols wrote: Hi, How can I apply a macro on a set of selected lines? I have a simple mapping under F4 (aligment of '=' on the same column, but it's not really important) :map F4 0f=60i EscD60Barp and I want to execute it for every line in a Visual Line

Re: Wron Block-Insert (p)

2006-12-11 Thread Wim R. Crols
Thomas Michael Engelke wrote: Sometimes, I have to align statements in a large assign-statement like this: assign var1 = var2 = . I block-yank a block containing, left-upper, v of var1, right-lower 2 of var2, to insert both variable names after the equal-signs. So my cursor stands in the