{
    "url": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom",
    "locale": "en",
    "title": "gg / G (top / bottom): Knowledge hub | DeLaParra Services",
    "description": "Vim: jump to the first line (gg) or the last line (G) of the file.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom",
        "nl": "https://delaparra-services.nl/nl/kennisbank/gg-g-top-bottom"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.md",
        "json": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.csv",
            "encodingFormat": "text/csv",
            "name": "gg-g-top-bottom.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.json",
            "encodingFormat": "application/json",
            "name": "gg-g-top-bottom.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.md",
            "encodingFormat": "text/markdown",
            "name": "gg-g-top-bottom.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.pdf",
            "encodingFormat": "application/pdf",
            "name": "gg-g-top-bottom.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.zip",
            "encodingFormat": "application/zip",
            "name": "gg-g-top-bottom.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [gg / G (top / bottom)](<https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom>)\n\n  \n\nCategory: Keyboard shortcuts \n\n# gg / G (top / bottom)\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is gg / G (top / bottom)?\n\n \n\ngg / G (top / bottom): Vim: jump to the first line (gg) or the last line (G) of the file. In Vim, ` gg ` jumps to the first line of the file and ` G ` jumps to the last. A number before ` G ` jumps to that line, so ` 42G ` goes to line 42. These motions combine with operators like everything else in Vim. ` dG ` deletes from the cursor to the end of the file, ` ggVG ` selects the whole file, and ` gg=G ` re-indents all of it.\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 gg / G (top / bottom)\n\n  \n\n### What should you keep in mind with gg / G (top / bottom)?\n\n \n\nThe same keys work in ` less `, which is what ` man ` pages and ` git log ` use for paging. When you open a long log file in ` less `, ` G ` takes you straight to the newest entries at the bottom, and ` gg ` back to the top. It is a small habit that makes reading logs on a server much quicker than scrolling.\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- [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- [Format Document](<https://delaparra-services.nl/knowledge-hub/format-document>) \n- [Go to Definition](<https://delaparra-services.nl/knowledge-hub/go-to-definition>) \n- [Go to Line](<https://delaparra-services.nl/knowledge-hub/go-to-line>) \n- [Move Line Up / Down](<https://delaparra-services.nl/knowledge-hub/move-line-up-down>)\n\n \n\n[All terms starting with G](<https://delaparra-services.nl/knowledge-hub#letter-g>)\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/gg-g-top-bottom)\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/gg-g-top-bottom#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom",
                "name": "gg / G (top / bottom): Knowledge hub | DeLaParra Services",
                "description": "Vim: jump to the first line (gg) or the last line (G) of the file.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom#term",
                    "name": "gg / G (top / bottom)",
                    "description": "Vim: jump to the first line (gg) or the last line (G) of the file.",
                    "termCode": "gg-g-top-bottom",
                    "url": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom",
                    "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/gg-g-top-bottom#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is gg / G (top / bottom)?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Vim: jump to the first line (gg) or the last line (G) of the file. In Vim, gg jumps to the first line of the file and G jumps to the last. A number before G jumps to that line, so 42G goes to line 42. These motions combine with operators like everything else in Vim. dG deletes from the cursor to the end of the file, ggVG selects the whole file, and gg=G re-indents all of it."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with gg / G (top / bottom)?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "The same keys work in less, which is what man pages and git log use for paging. When you open a long log file in less, G takes you straight to the newest entries at the bottom, and gg back to the top. It is a small habit that makes reading logs on a server much quicker than scrolling."
                        }
                    }
                ],
                "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/gg-g-top-bottom#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": "gg / G (top / bottom)"
                    }
                ]
            },
            {
                "@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/gg-g-top-bottom#dataset",
                "name": "gg / G (top / bottom)",
                "description": "Vim: jump to the first line (gg) or the last line (G) of the file.",
                "url": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom",
                "identifier": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom#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": "gg-g-top-bottom.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "gg-g-top-bottom.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "gg-g-top-bottom.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "gg-g-top-bottom.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "gg-g-top-bottom.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}