' in command prompt

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












Occasionally when I type : to quit or write my file the prompt already contains the characters :'<,'> without me typing anything. It causes an error if I type w or q. I cannot replicate this problem. It happens at the oddest times and I have not been able to determine what is causing it.



It took me forever to figure out that my accidentally typing q: instead of :q was causing me to have trouble quitting. Now that I know about that little quirk, I'm trying to figure out what causes this other behavior. I can't find anything on it, though I've seen it somewhere in someone's colon command.



Is this an expected behavior? What could be causing it?










share|improve this question



























    up vote
    1
    down vote

    favorite












    Occasionally when I type : to quit or write my file the prompt already contains the characters :'<,'> without me typing anything. It causes an error if I type w or q. I cannot replicate this problem. It happens at the oddest times and I have not been able to determine what is causing it.



    It took me forever to figure out that my accidentally typing q: instead of :q was causing me to have trouble quitting. Now that I know about that little quirk, I'm trying to figure out what causes this other behavior. I can't find anything on it, though I've seen it somewhere in someone's colon command.



    Is this an expected behavior? What could be causing it?










    share|improve this question

























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Occasionally when I type : to quit or write my file the prompt already contains the characters :'<,'> without me typing anything. It causes an error if I type w or q. I cannot replicate this problem. It happens at the oddest times and I have not been able to determine what is causing it.



      It took me forever to figure out that my accidentally typing q: instead of :q was causing me to have trouble quitting. Now that I know about that little quirk, I'm trying to figure out what causes this other behavior. I can't find anything on it, though I've seen it somewhere in someone's colon command.



      Is this an expected behavior? What could be causing it?










      share|improve this question















      Occasionally when I type : to quit or write my file the prompt already contains the characters :'<,'> without me typing anything. It causes an error if I type w or q. I cannot replicate this problem. It happens at the oddest times and I have not been able to determine what is causing it.



      It took me forever to figure out that my accidentally typing q: instead of :q was causing me to have trouble quitting. Now that I know about that little quirk, I'm trying to figure out what causes this other behavior. I can't find anything on it, though I've seen it somewhere in someone's colon command.



      Is this an expected behavior? What could be causing it?







      command-line






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 18 mins ago

























      asked 29 mins ago









      malan

      1294




      1294




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          Seeing '<,'> in the command line when you press : indicates that you currently have a range selected (e. g. with v, V, or Ctrl-v), and vim is helpfully prefixing the markers for 'beginning of selection' through 'end of selection' in order to apply those limitations to the scope of the command you are presumably about to enter.



          Since you can't "quit" only a certain part of a file, that is why you get an Invalid address when you try to :'<,'>q.



          If you do want to run a command not suchly limited, you can press Ctrl-U to erase everything to the left of the cursor before entering q, or simply use the ZZ alias.






          share|improve this answer








          New contributor




          DopeGhoti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.

















            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f17563%2fin-command-prompt%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote



            accepted










            Seeing '<,'> in the command line when you press : indicates that you currently have a range selected (e. g. with v, V, or Ctrl-v), and vim is helpfully prefixing the markers for 'beginning of selection' through 'end of selection' in order to apply those limitations to the scope of the command you are presumably about to enter.



            Since you can't "quit" only a certain part of a file, that is why you get an Invalid address when you try to :'<,'>q.



            If you do want to run a command not suchly limited, you can press Ctrl-U to erase everything to the left of the cursor before entering q, or simply use the ZZ alias.






            share|improve this answer








            New contributor




            DopeGhoti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





















              up vote
              3
              down vote



              accepted










              Seeing '<,'> in the command line when you press : indicates that you currently have a range selected (e. g. with v, V, or Ctrl-v), and vim is helpfully prefixing the markers for 'beginning of selection' through 'end of selection' in order to apply those limitations to the scope of the command you are presumably about to enter.



              Since you can't "quit" only a certain part of a file, that is why you get an Invalid address when you try to :'<,'>q.



              If you do want to run a command not suchly limited, you can press Ctrl-U to erase everything to the left of the cursor before entering q, or simply use the ZZ alias.






              share|improve this answer








              New contributor




              DopeGhoti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.



















                up vote
                3
                down vote



                accepted







                up vote
                3
                down vote



                accepted






                Seeing '<,'> in the command line when you press : indicates that you currently have a range selected (e. g. with v, V, or Ctrl-v), and vim is helpfully prefixing the markers for 'beginning of selection' through 'end of selection' in order to apply those limitations to the scope of the command you are presumably about to enter.



                Since you can't "quit" only a certain part of a file, that is why you get an Invalid address when you try to :'<,'>q.



                If you do want to run a command not suchly limited, you can press Ctrl-U to erase everything to the left of the cursor before entering q, or simply use the ZZ alias.






                share|improve this answer








                New contributor




                DopeGhoti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                Seeing '<,'> in the command line when you press : indicates that you currently have a range selected (e. g. with v, V, or Ctrl-v), and vim is helpfully prefixing the markers for 'beginning of selection' through 'end of selection' in order to apply those limitations to the scope of the command you are presumably about to enter.



                Since you can't "quit" only a certain part of a file, that is why you get an Invalid address when you try to :'<,'>q.



                If you do want to run a command not suchly limited, you can press Ctrl-U to erase everything to the left of the cursor before entering q, or simply use the ZZ alias.







                share|improve this answer








                New contributor




                DopeGhoti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                DopeGhoti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 23 mins ago









                DopeGhoti

                1462




                1462




                New contributor




                DopeGhoti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                DopeGhoti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                DopeGhoti is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fvi.stackexchange.com%2fquestions%2f17563%2fin-command-prompt%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    Long meetings (6-7 hours a day): Being “babysat” by supervisor

                    Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                    Confectionery