What is the difference between ^ and _ for cursor movement

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











up vote
2
down vote

favorite
1












They both seem to move the cursor to the first non-blank character of the current line and I wonder what was the reason for duplicating this functionality










share|improve this question







New contributor




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























    up vote
    2
    down vote

    favorite
    1












    They both seem to move the cursor to the first non-blank character of the current line and I wonder what was the reason for duplicating this functionality










    share|improve this question







    New contributor




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





















      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      They both seem to move the cursor to the first non-blank character of the current line and I wonder what was the reason for duplicating this functionality










      share|improve this question







      New contributor




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











      They both seem to move the cursor to the first non-blank character of the current line and I wonder what was the reason for duplicating this functionality







      cursor-movement normal-mode






      share|improve this question







      New contributor




      loxs 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 question







      New contributor




      loxs 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 question




      share|improve this question






      New contributor




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









      asked 6 hours ago









      loxs

      1132




      1132




      New contributor




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





      New contributor





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






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




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          Hello and welcome to this site!



          :help left-right-motions is your friend here.



          The difference is that _ accepts a [count] before it, citing the manual:



          _ <underscore> [count] - 1 lines downward, on the first non-blank
          character linewise.


          while:



          ^ To the first non-blank character of the line.
          exclusive motion.


          Obviously, _ by itself is equivalent to 1_, so the outcome is 0 lines downward, on the first non-blank character linewise, which means the current line (just like ^).






          share|improve this answer








          New contributor




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













          • 2




            @lox You might also want to read this to get better at using Vim's documentation
            – statox♦
            4 hours ago










          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
          );



          );






          loxs is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fvi.stackexchange.com%2fquestions%2f17404%2fwhat-is-the-difference-between-and-for-cursor-movement%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
          4
          down vote



          accepted










          Hello and welcome to this site!



          :help left-right-motions is your friend here.



          The difference is that _ accepts a [count] before it, citing the manual:



          _ <underscore> [count] - 1 lines downward, on the first non-blank
          character linewise.


          while:



          ^ To the first non-blank character of the line.
          exclusive motion.


          Obviously, _ by itself is equivalent to 1_, so the outcome is 0 lines downward, on the first non-blank character linewise, which means the current line (just like ^).






          share|improve this answer








          New contributor




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













          • 2




            @lox You might also want to read this to get better at using Vim's documentation
            – statox♦
            4 hours ago














          up vote
          4
          down vote



          accepted










          Hello and welcome to this site!



          :help left-right-motions is your friend here.



          The difference is that _ accepts a [count] before it, citing the manual:



          _ <underscore> [count] - 1 lines downward, on the first non-blank
          character linewise.


          while:



          ^ To the first non-blank character of the line.
          exclusive motion.


          Obviously, _ by itself is equivalent to 1_, so the outcome is 0 lines downward, on the first non-blank character linewise, which means the current line (just like ^).






          share|improve this answer








          New contributor




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













          • 2




            @lox You might also want to read this to get better at using Vim's documentation
            – statox♦
            4 hours ago












          up vote
          4
          down vote



          accepted







          up vote
          4
          down vote



          accepted






          Hello and welcome to this site!



          :help left-right-motions is your friend here.



          The difference is that _ accepts a [count] before it, citing the manual:



          _ <underscore> [count] - 1 lines downward, on the first non-blank
          character linewise.


          while:



          ^ To the first non-blank character of the line.
          exclusive motion.


          Obviously, _ by itself is equivalent to 1_, so the outcome is 0 lines downward, on the first non-blank character linewise, which means the current line (just like ^).






          share|improve this answer








          New contributor




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









          Hello and welcome to this site!



          :help left-right-motions is your friend here.



          The difference is that _ accepts a [count] before it, citing the manual:



          _ <underscore> [count] - 1 lines downward, on the first non-blank
          character linewise.


          while:



          ^ To the first non-blank character of the line.
          exclusive motion.


          Obviously, _ by itself is equivalent to 1_, so the outcome is 0 lines downward, on the first non-blank character linewise, which means the current line (just like ^).







          share|improve this answer








          New contributor




          Mr Shunz 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




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









          answered 6 hours ago









          Mr Shunz

          1562




          1562




          New contributor




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





          New contributor





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






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







          • 2




            @lox You might also want to read this to get better at using Vim's documentation
            – statox♦
            4 hours ago












          • 2




            @lox You might also want to read this to get better at using Vim's documentation
            – statox♦
            4 hours ago







          2




          2




          @lox You might also want to read this to get better at using Vim's documentation
          – statox♦
          4 hours ago




          @lox You might also want to read this to get better at using Vim's documentation
          – statox♦
          4 hours ago










          loxs is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          loxs is a new contributor. Be nice, and check out our Code of Conduct.












          loxs is a new contributor. Be nice, and check out our Code of Conduct.











          loxs is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fvi.stackexchange.com%2fquestions%2f17404%2fwhat-is-the-difference-between-and-for-cursor-movement%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          Installing NextGIS Connect into QGIS 3?

          One-line joke