Go to last file in vimWhy argdo applies changes only to the last file?How to edit the next file when VI doesn't have buffer support?How to quit one file and simultaneously open another file in vim?“Next” behavior and “E165: Cannot go beyond last file”How can I open the next/previous file alphabetically?How can I easily open two similar files?From one split, how can I get the filename of the file in another split?Cycle between filenames

How did Arecibo detect methane lakes on Titan, and image Saturn's rings?

NRPE script for monitoring load average

Is there a fallacy about "appeal to 'big words'"?

Does fossil fuels use since 1990 account for half of all the fossil fuels used in history?

Are employers legally allowed to pay employees in goods and services equal to or greater than the minimum wage?

Why is the result of ('b'+'a'+ + 'a' + 'a').toLowerCase() 'banana'?

How would armour (and combat) change if the fighter didn't need to actually wear it?

How can God warn people of the upcoming rapture without disrupting society?

Doesn't the speed of light limit imply the same electron can be annihilated twice?

Go to last file in vim

Help, I cannot decide when to start the story

What unique challenges/limitations will I face if I start a career as a pilot at 45 years old?

An array battle with odd secret powers

Escape Velocity - Won't the orbital path just become larger with higher initial velocity?

Swap (and hibernation) on SSD in 2019?

Would the USA be eligible to join the European Union?

Identifying My Main Water Shutoff Valve / Setup

Word for an event that will likely never happen again

Do beef farmed pastures net remove carbon emissions?

Luggage Storage at Szechenyi Baths

Boss wants me to ignore a software API license

Should I leave building the database for the end?

How can I find an old paper when the usual methods fail?

Why aren’t there water shutoff valves for each room?



Go to last file in vim


Why argdo applies changes only to the last file?How to edit the next file when VI doesn't have buffer support?How to quit one file and simultaneously open another file in vim?“Next” behavior and “E165: Cannot go beyond last file”How can I open the next/previous file alphabetically?How can I easily open two similar files?From one split, how can I get the filename of the file in another split?Cycle between filenames






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















Many text files can be opened at once using



vim *txt


I know I can use :<int>n to move forward <int> files, but I don't know how to get to the last opened file. So far I've tried :1000n to intentionally overshoot but that gives the error




E165: Cannot go beyond last file




From there I just resort to a binary search trying to get to the end, which takes a while, i.e., :500n, :250n, 125n, ...



How can I get to the last opened file in vim?










share|improve this question






























    4















    Many text files can be opened at once using



    vim *txt


    I know I can use :<int>n to move forward <int> files, but I don't know how to get to the last opened file. So far I've tried :1000n to intentionally overshoot but that gives the error




    E165: Cannot go beyond last file




    From there I just resort to a binary search trying to get to the end, which takes a while, i.e., :500n, :250n, 125n, ...



    How can I get to the last opened file in vim?










    share|improve this question


























      4












      4








      4








      Many text files can be opened at once using



      vim *txt


      I know I can use :<int>n to move forward <int> files, but I don't know how to get to the last opened file. So far I've tried :1000n to intentionally overshoot but that gives the error




      E165: Cannot go beyond last file




      From there I just resort to a binary search trying to get to the end, which takes a while, i.e., :500n, :250n, 125n, ...



      How can I get to the last opened file in vim?










      share|improve this question














      Many text files can be opened at once using



      vim *txt


      I know I can use :<int>n to move forward <int> files, but I don't know how to get to the last opened file. So far I've tried :1000n to intentionally overshoot but that gives the error




      E165: Cannot go beyond last file




      From there I just resort to a binary search trying to get to the end, which takes a while, i.e., :500n, :250n, 125n, ...



      How can I get to the last opened file in vim?







      multiple-files






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 9 hours ago









      user1717828user1717828

      2271 silver badge6 bronze badges




      2271 silver badge6 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          6














          You can use :last.



          See :help :last for more details. You might be interested in the other commands around it for managing files in :args as well.






          share|improve this answer



























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "599"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fvi.stackexchange.com%2fquestions%2f20898%2fgo-to-last-file-in-vim%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            6














            You can use :last.



            See :help :last for more details. You might be interested in the other commands around it for managing files in :args as well.






            share|improve this answer





























              6














              You can use :last.



              See :help :last for more details. You might be interested in the other commands around it for managing files in :args as well.






              share|improve this answer



























                6












                6








                6







                You can use :last.



                See :help :last for more details. You might be interested in the other commands around it for managing files in :args as well.






                share|improve this answer













                You can use :last.



                See :help :last for more details. You might be interested in the other commands around it for managing files in :args as well.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 9 hours ago









                filbrandenfilbranden

                1,9653 silver badges14 bronze badges




                1,9653 silver badges14 bronze badges






























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Vi and Vim Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fvi.stackexchange.com%2fquestions%2f20898%2fgo-to-last-file-in-vim%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                    Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                    In Tikz, how to set a node's label alignment to the left?Rotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ/ERD: node (=Entity) label on the insideLine up nested tikz enviroments or how to get rid of themVertically align a tikzpicture and forestDrawing tikz line in the margin for multiple pagesLongtable, contained tikz, padding, custom columns, and an alignment issueTikZ: define arrow starting position based on style and format node labelAlign node name in Tikz