great, that's what I was looking for. Funny how in visual mode, $ includes the carriage return, but in normal mode it doesn't.
On Fri, Apr 4, 2014 at 10:07 PM, Nikolay Pavlov <[email protected]> wrote: > > On Apr 4, 2014 8:32 PM, "JP Lew" <[email protected]> wrote: > > > > 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. > > 0y$ > > > > > -- > > -- > > 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 [email protected]. > > For more options, visit https://groups.google.com/d/optout. > > -- > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
