triofashion.blogg.se

How to copy and paste text in putty
How to copy and paste text in putty













how to copy and paste text in putty

To copy or cut several chunks of text at the same time, you’ll need to use vi’s registers.

  • yaw- copy the current word (including surrounding whitespace).
  • how to copy and paste text in putty

    yiw- copy the current word (excluding surrounding whitespace).y0 - copy from the cursor to the start of the line.y$ - copy from the cursor to the end of the line (excluding the new line character).yy or `Y - copy the whole line (including the new line character).Copying and Cutting with Movement CommandsĪs well as you can copy and cut by selecting the text that you want to, you can also use movement commands to specify what text will be selected. Press p to paste the text after the cursor (or P (capital p) to paste it before the cursor).ģ.Move the cursor where you want to paste the text.Press y to copy the text (or d to cut it).Move the cursor to the end of the text you want to copy.You can also use V (capital v) to select whole lines or Ctrl+v to select rectangular blocks.We’ll start with normal mode and position the cursor at the start of the text that we want to copy. Selecting, Copying (or Cutting) and Pasting Text Keeping this in mind, you may find it easier to memorize the commands. p comes from paste, so nothing new here.y comes from yank, which you usually know as copy.d comes from delete, which you usually know as cut.To remember easily the commands used for copying and cutting in vi, it’s useful to know the words they come from: We’ll also tell you how to copy and cut multiple chunks of text. This will be explained both selecting text as using movement commands.

    #How to copy and paste text in putty how to

    In this article, we’ll show you how to copy, cut and paste in vi.















    How to copy and paste text in putty