Friday, April 4, 2014

How do I yank a whole line, minus the carriage return?

Hi:

in order to yank a line, I know I can go `yy`. The problem is, this copies the carriage return at the end. What I do instead is position the cursor on the first character of the line, then go `v$hy` to select everything except the last character from the right.

Is there a better way to do this? Thanks.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: