Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do a - CTRL A and a CTRL+C?

Tags:

vi

I need to do a

Ctrl+A, Ctrl+V

on a very long file to paste the file on my windows but i don't found the command.

Thank you.

like image 413
Kvasir Avatar asked Aug 18 '14 13:08

Kvasir


People also ask

What does Ctrl +A do?

Ctrl+A: Select all of the text on the page or in the active window. Ctrl+B: Bold the selected text. Ctrl+I: Italicize the selected text. Ctrl+U: Underline the selected text.

How do you type Ctrl A?

Ctrl+A in Word and other word processors In Microsoft Word and other word processors, pressing Ctrl + A selects all of the text in the document. If you're working with a document with multiple pages, this keyboard shortcut selects all text on all pages.

How do I use Ctrl C to copy?

Select the text you want to copy and press Ctrl+C. Place your cursor where you want to paste the copied text and press Ctrl+V.

Why Ctrl A is not working?

Solution 2: Check your keyboard To check the physical state of your keyboard, you can try to connect an external keyboard on your system or try an on-screen keyboard and check if the Ctrl key is working on it or not. You can also try to connect your keyboard to another system to check if Ctrl key is working or not.


1 Answers

You can do:

ggVGY

and then open another file in vi and paste with P.

  • GG - jump to the beginning of file
  • V - select whole lines in visual mode
  • G - jump to end of file
  • Y - copy (yank) what you selected

However, before posting a question, try to search first. See for example this question.

like image 56
macfij Avatar answered Oct 12 '22 01:10

macfij