The implementation of the Linux vim all-choice function has also been found to see if there are any quick methods to select all, but many of them are repeated and incorrect on the Internet, such as: 1, $ y. What is this? If you want to write it, you must also write it as: 1, $ y. But I tell you, if you write it as: 1, $ y, all copies, not all selects dG. This is even more misleading, this is where the content from the row where the cursor is located to the last line (including the content of the row where the cursor is located) is pulled.
The correct command is: ggVG
Explain the above commands
Gg moves the cursor to the first line, which is valid only in vim. In vi, invalid V enters Visual (Visual) mode. G moves the cursor to the last line www.2cto.com and you can perform other operations. For example: d Delete selected content y copy selected content to register 0 "+ y copy selected content to register +, that is, the system clipboard, for other programs to use the column from csh159