![]() If you didn’t find what you were looking for, it may be worth checking out the official vim docs. Move to Beginning/End of File The quickest way to get your cursor to the first or last line of the file is pressing Ctrl + Home (Mac: Control + Home ) to go the beginning and Ctrl + End (Mac: Control + End ) to go to the end. This should be everything you need to get started to copy, cut and paste in Vi. ![]() ![]() To learn more about vim registers, check out this Stack Overflow page. For example, you might yank line 50 of the current file to register “a” and yank line 14 of the same file to register “b”, because you intend to paste both line 50 and line 14. Each register is named with a character, which you can use to interact with that register. Yank, delete, and put interact with Vim's notion of “registers”, which are basically Vim -specific clipboards. For example, you can't paste yanked text from Vim into a different application with CMD + V. Vim terms are slightly different from their conceptual counterparts that we mentioned above because these actions by default do not interact with the OS clipboard.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |