Find the answer to your Linux question:
Results 1 to 2 of 2
I do not know how to paste from a text file (opened in Notepad) on my computer desktop to a new file in a directory I am accessing remotely via ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2012
    Posts
    9

    Pasting into vi


    I do not know how to paste from a text file (opened in Notepad) on my computer desktop to a new file in a directory I am accessing remotely via the Terminal.

    The computer I am accessing remotely does not seem to have emacs, only vi, and while I know that V-Y-P can copy and paste text *within* vi, I do not know how to paste into vi text that was copied from Notepad.

    Thank you for any advice; I am not familiar with how to access parts of files between the physical computer I am using and one I am secured shelled into accessing remotely, so if the only solution requires syntax related to movement between the two computer, it would help me greatly if the command included the specific syntax, if possible!!

  2. #2
    Linux Newbie
    Join Date
    Aug 2006
    Posts
    124
    Hi. You can not paste directly in VI running in a terminal something you have copied on your PC, because is does not reside on the same machine. You must type "i" in your terminal to set VI in input mode, and then paste your text in your terminal. The sequence of keys will be sent to VI, and input as a text.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •