{
    "url": "https://delaparra-services.nl/knowledge-hub/yy-yank-line",
    "locale": "en",
    "title": "yy (yank line): Knowledge hub | DeLaParra Services",
    "description": "Vim: copy (\"yank\") the current line into the register.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/yy-yank-line",
        "nl": "https://delaparra-services.nl/nl/kennisbank/yy-yank-line"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.md",
        "json": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.csv",
            "encodingFormat": "text/csv",
            "name": "yy-yank-line.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.json",
            "encodingFormat": "application/json",
            "name": "yy-yank-line.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.md",
            "encodingFormat": "text/markdown",
            "name": "yy-yank-line.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.pdf",
            "encodingFormat": "application/pdf",
            "name": "yy-yank-line.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.zip",
            "encodingFormat": "application/zip",
            "name": "yy-yank-line.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [yy (yank line)](<https://delaparra-services.nl/knowledge-hub/yy-yank-line>)\n\n  \n\nCategory: Keyboard shortcuts \n\n# yy (yank line)\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is yy (yank line)?\n\n \n\nyy (yank line): Vim: copy (\"yank\") the current line into the register. In Vim, ` yy ` yanks, or copies, the current line into a register. Paste it with ` p ` below the cursor or ` P ` above it. A number in front copies several lines: ` 5yy ` copies five. Like other Vim commands, ` y ` combines with motions. ` yw ` copies a word, ` y$ ` copies to the end of the line, and ` yi\" ` copies everything inside quotes.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about yy (yank line)\n\n  \n\n### What should you keep in mind with yy (yank line)?\n\n \n\nYanked text goes into Vim's own registers, not the system clipboard, unless you use the ` + ` register, as in ` \"+yy `, or set ` clipboard=unnamedplus `. That is the usual reason copying in Vim seems not to work in other applications. Knowing ` yy `, ` dd ` and ` p ` already covers most of the copying and moving you need when editing a config file on a server.\n\n \n\n## At a glance\n\n   CategoryKeyboard shortcuts Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More Keyboard shortcuts terms\n\n \n\n- [Step Out](<https://delaparra-services.nl/knowledge-hub/step-out>) \n- [Step Over](<https://delaparra-services.nl/knowledge-hub/step-over>) \n- [Toggle Breakpoint](<https://delaparra-services.nl/knowledge-hub/toggle-breakpoint>) \n- [Toggle Integrated Terminal](<https://delaparra-services.nl/knowledge-hub/toggle-integrated-terminal>) \n- [Toggle Line Comment](<https://delaparra-services.nl/knowledge-hub/toggle-line-comment>) \n- [Toggle Sidebar](<https://delaparra-services.nl/knowledge-hub/toggle-sidebar>)\n\n \n\n[All terms starting with Y](<https://delaparra-services.nl/knowledge-hub#letter-y>)\n\n \n\n## Skills\n\n \n\n- ### Editor shortcuts (VS Code / Cursor and Vim)\n\n \n\nUse when a user asks how to do something faster in VS Code (or Cursor) or Vim, asks what a keyboard shortcut does (e.g. Ctrl+D, Ctrl+Shift+P, F12, gg, dd, yy, ciw, :wq), wants to customise keybindings, or is stuck in Vim. Gives the correct shortcut for their operating system and can write keybindings.json entries.\n\n [View skill](<https://delaparra-services.nl/skills/editor-shortcuts>) [Download zip](<https://delaparra-services.nl/skills/editor-shortcuts/download>)\n\n \n\n## Manuals\n\n \n\n- [Keyboard shortcuts in VS Code and the terminal](<https://delaparra-services.nl/manuals/sneltoetsen-in-vs-code>) \n- [Installing Visual Studio Code](<https://delaparra-services.nl/manuals/visual-studio-code-installeren>)\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/yy-yank-line)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/yy-yank-line#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/yy-yank-line",
                "name": "yy (yank line): Knowledge hub | DeLaParra Services",
                "description": "Vim: copy (\"yank\") the current line into the register.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/yy-yank-line#term",
                    "name": "yy (yank line)",
                    "description": "Vim: copy (\"yank\") the current line into the register.",
                    "termCode": "yy-yank-line",
                    "url": "https://delaparra-services.nl/knowledge-hub/yy-yank-line",
                    "inLanguage": "en",
                    "keywords": "Keyboard shortcuts",
                    "dateModified": "2026-11-25T17:46:31+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/yy-yank-line#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/yy-yank-line#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/yy-yank-line#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is yy (yank line)?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Vim: copy (\"yank\") the current line into the register. In Vim, yy yanks, or copies, the current line into a register. Paste it with p below the cursor or P above it. A number in front copies several lines: 5yy copies five. Like other Vim commands, y combines with motions. yw copies a word, y$ copies to the end of the line, and yi\" copies everything inside quotes."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with yy (yank line)?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Yanked text goes into Vim's own registers, not the system clipboard, unless you use the + register, as in \"+yy, or set clipboard=unnamedplus. That is the usual reason copying in Vim seems not to work in other applications. Knowing yy, dd and p already covers most of the copying and moving you need when editing a config file on a server."
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/editor-shortcuts#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/sneltoetsen-in-vs-code#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/visual-studio-code-installeren#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/yy-yank-line#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "yy (yank line)"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/yy-yank-line#dataset",
                "name": "yy (yank line)",
                "description": "Vim: copy (\"yank\") the current line into the register.",
                "url": "https://delaparra-services.nl/knowledge-hub/yy-yank-line",
                "identifier": "https://delaparra-services.nl/knowledge-hub/yy-yank-line#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/yy-yank-line#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "Keyboard shortcuts",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:31+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "yy-yank-line.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "yy-yank-line.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "yy-yank-line.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "yy-yank-line.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "yy-yank-line.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/yy-yank-line.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}