{
    "url": "https://delaparra-services.nl/knowledge-hub/dd-delete-line",
    "locale": "en",
    "title": "dd (delete line): Knowledge hub | DeLaParra Services",
    "description": "Vim: delete the current line. Press twice — d then d.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/dd-delete-line",
        "nl": "https://delaparra-services.nl/nl/kennisbank/dd-delete-line"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.md",
        "json": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.csv",
            "encodingFormat": "text/csv",
            "name": "dd-delete-line.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.json",
            "encodingFormat": "application/json",
            "name": "dd-delete-line.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.md",
            "encodingFormat": "text/markdown",
            "name": "dd-delete-line.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.pdf",
            "encodingFormat": "application/pdf",
            "name": "dd-delete-line.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.zip",
            "encodingFormat": "application/zip",
            "name": "dd-delete-line.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [dd (delete line)](<https://delaparra-services.nl/knowledge-hub/dd-delete-line>)\n\n  \n\nCategory: Keyboard shortcuts \n\n# dd (delete line)\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is dd (delete line)?\n\n \n\ndd (delete line): Vim: delete the current line. Press twice — d then d. In Vim, ` dd ` deletes the current line. Press ` d ` twice in normal mode. The deleted line goes into a register, so you can paste it elsewhere with ` p `, which makes ` dd ` and ` p ` the Vim way to move a line.\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 dd (delete line)\n\n  \n\n### How is dd (delete line) used in practice?\n\n \n\nIt follows Vim's pattern of operators and motions. ` d ` means delete, and doubling an operator applies it to the whole line. A number in front repeats it: ` 5dd ` deletes five lines. ` u ` undoes the last change if you went too far.\n\n    \n\n### What should you keep in mind with dd (delete line)?\n\n \n\nIt is worth knowing even if Vim is not your main editor. You will meet it on servers, in Git commit messages and in tools with Vim key bindings. A handful of commands like ` dd `, ` u `, ` i ` and ` :wq ` already make those moments much less stressful.\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- [Clear Screen](<https://delaparra-services.nl/knowledge-hub/clear-screen>) \n- [Command Palette](<https://delaparra-services.nl/knowledge-hub/command-palette>) \n- [Copy Line Up / Down](<https://delaparra-services.nl/knowledge-hub/copy-line-up-down>) \n- [Delete Line](<https://delaparra-services.nl/knowledge-hub/delete-line>) \n- [Delete Previous Word](<https://delaparra-services.nl/knowledge-hub/delete-previous-word>) \n- [Extract Method / Variable](<https://delaparra-services.nl/knowledge-hub/extract-method-variable>)\n\n \n\n[All terms starting with D](<https://delaparra-services.nl/knowledge-hub#letter-d>)\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/dd-delete-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/dd-delete-line#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/dd-delete-line",
                "name": "dd (delete line): Knowledge hub | DeLaParra Services",
                "description": "Vim: delete the current line. Press twice — d then d.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/dd-delete-line#term",
                    "name": "dd (delete line)",
                    "description": "Vim: delete the current line. Press twice — d then d.",
                    "termCode": "dd-delete-line",
                    "url": "https://delaparra-services.nl/knowledge-hub/dd-delete-line",
                    "inLanguage": "en",
                    "keywords": "Keyboard shortcuts",
                    "dateModified": "2026-11-25T17:46:26+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/dd-delete-line#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/dd-delete-line#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/dd-delete-line#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is dd (delete line)?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Vim: delete the current line. Press twice — d then d. In Vim, dd deletes the current line. Press d twice in normal mode. The deleted line goes into a register, so you can paste it elsewhere with p, which makes dd and p the Vim way to move a line."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "How is dd (delete line) used in practice?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "It follows Vim's pattern of operators and motions. d means delete, and doubling an operator applies it to the whole line. A number in front repeats it: 5dd deletes five lines. u undoes the last change if you went too far."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with dd (delete line)?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "It is worth knowing even if Vim is not your main editor. You will meet it on servers, in Git commit messages and in tools with Vim key bindings. A handful of commands like dd, u, i and :wq already make those moments much less stressful."
                        }
                    }
                ],
                "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/dd-delete-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": "dd (delete 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/dd-delete-line#dataset",
                "name": "dd (delete line)",
                "description": "Vim: delete the current line. Press twice — d then d.",
                "url": "https://delaparra-services.nl/knowledge-hub/dd-delete-line",
                "identifier": "https://delaparra-services.nl/knowledge-hub/dd-delete-line#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/dd-delete-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:26+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": "dd-delete-line.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "dd-delete-line.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "dd-delete-line.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "dd-delete-line.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "dd-delete-line.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/dd-delete-line.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}