Hi,
I am using vim 7.0.42 on a Linux system.
I want copy a complete line of text *without+ the final LF at the
end, so it is possible to insert it elsewhere in the midth of text.
With
Shift-V
I get the line *with* the LF at the end -- so I can not use that.
With
Hi,
Meino Christian Cramer schrieb:
I am using vim 7.0.42 on a Linux system.
I want copy a complete line of text *without+ the final LF at the
end, so it is possible to insert it elsewhere in the midth of text.
[snip]
just use
y$
Regards,
Jürgen
--
Sometimes I think the surest
From: Jürgen Krämer [EMAIL PROTECTED]
Subject: Re: Copy a line of text without the LF
Date: Tue, 08 Aug 2006 10:56:24 +0200
Hi,
Meino Christian Cramer schrieb:
I am using vim 7.0.42 on a Linux system.
I want copy a complete line of text *without+ the final LF at the
end, so
From: Georg Dahn [EMAIL PROTECTED]
Subject: Re: Copy a line of text without the LF
Date: Tue, 8 Aug 2006 10:05:45 +0100 (BST)
Hi Georg,
thanks a lot for your reply! :)
Good to know, that there are special commands to just copy a line
completly without the LF.
But why I do need a
Hi!
But why I do need a specialised command ?
That's no specialised command, but the syntax of y. You type y and then a
motion. $ moves to the end of the line.
Why does
y/$
y/[pattern] moves to the first occurance of the pattern. The cursor is
positioned on the first character
Hi,
Meino Christian Cramer wrote:
From: Jürgen Krämer [EMAIL PROTECTED]
Subject: Re: Copy a line of text without the LF
Date: Tue, 08 Aug 2006 10:56:24 +0200
Meino Christian Cramer schrieb:
I am using vim 7.0.42 on a Linux system.
I want copy a complete line of text *without+
Jürgen Krämer wrote:
Meino Christian Cramer schrieb:
I am using vim 7.0.42 on a Linux system.
I want copy a complete line of text *without+ the final LF at the
end, so it is possible to insert it elsewhere in the midth of text.
[snip]
just use
y$
For the entire line, try
Meino Christian Cramer wrote:
Hi,
I am using vim 7.0.42 on a Linux system.
I want copy a complete line of text *without+ the final LF at the
end, so it is possible to insert it elsewhere in the midth of text.
With
Shift-V
I get the line *with* the LF at the end -- so