Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.editors    |    What? Edlin ain't good enough for you?    |    123,932 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 123,917 of 123,932    |
|    Janis Papanagnou to swapjim    |
|    Re: Vi: is there any way not to yank tex    |
|    16 Feb 26 23:20:46    |
      From: janis_papanagnou+ng@hotmail.com              On 2026-02-16 22:29, swapjim wrote:       > [...]       >       > I then select some text using 'v' and delete it using x. However, this       > also copies the text (yanks it). Same thing happens when I try to delete       > a few lines with 10dd or 10dw.       >       > Is this normal behavior?              This is Vi standard behavior.              > If yes, is there a way to not to yank the text I'm deleting?              There's the elsethread mentioned "black hole register" (but I'm not       sure that was existing in classical Vi that you wrote are intending       to learn).              > [...]              I suppose you want the text not to enter the yank-buffer because you       want to recover (paste) a previously yanked (or deleted) text? - For       that you have also other means to keep and access former stored text.              You can store deleted or yanked text in a named register (a-z) with       the double quotes indicator; instead of, say,               dw you could "a dw (the space is just for readability here!)        yy you could "b yy etc. to enter text contents into a and b              Then you'd paste the stored data for example with "a p or "b P       etc. You can also *accumulate* deleted or yanked text in a register       if you use a capital alpha character, as in "A dw or "B yy etc.              For deleted text there's also the implicit numbered registers "1 "2       "3 etc. where you can access the last, the one before the last, etc.       deleted text and paste it as "2 p or "3 P (for example).              Janis              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca