Vim: Reverse right to left












9















I have accidently :set rl thinking it's for relative lines. I have activated right to left mode. The doc for rightleft doesn't say how to reverse rl mode without exiting vim.



How does one go left to right in vim?










share|improve this question





























    9















    I have accidently :set rl thinking it's for relative lines. I have activated right to left mode. The doc for rightleft doesn't say how to reverse rl mode without exiting vim.



    How does one go left to right in vim?










    share|improve this question



























      9












      9








      9


      1






      I have accidently :set rl thinking it's for relative lines. I have activated right to left mode. The doc for rightleft doesn't say how to reverse rl mode without exiting vim.



      How does one go left to right in vim?










      share|improve this question
















      I have accidently :set rl thinking it's for relative lines. I have activated right to left mode. The doc for rightleft doesn't say how to reverse rl mode without exiting vim.



      How does one go left to right in vim?







      vim






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '17 at 12:36









      Community

      1




      1










      asked Apr 12 '17 at 11:52









      Cat BossCat Boss

      4251415




      4251415






















          2 Answers
          2






          active

          oldest

          votes


















          12
















          :set norl


          or



          :set norightleft


          Each boolean option in Vim has a corresponding no-option that turns it off.





          The option you were originally looking for might have been relativenumber (rnu), which acts like number (nu) but adds line numbers that are relative to the current line rather than to the start of the editing buffer.






          share|improve this answer





















          • 1





            "Most (all?)" all the boolean options.

            – JoL
            Apr 12 '17 at 18:50











          • @JoL I wasn't 100% it was all of them, so I didn't want to make a definite statement, and I'm still not entirely certain :-)

            – Kusalananda
            Feb 22 at 10:25











          • I haven't tried them all either, but the documentation for :set describes it as a generic syntax rather than some convention: :se[t] no{option} Toggle option: Reset, switch it off.. It also has other syntaxes like :se[t] inv{option}, :se[t] {option}!, and :se[t] {option}?.

            – JoL
            Feb 22 at 16:46





















          3














          Turn options on or off with !



          set rightleft!




          To quote the Vim help:



                                                                     *:set-!* *:set-inv*
          :se[t] {option}! or
          :se[t] inv{option} Toggle option: Invert value. {not in Vi}


          You can see this in the built-in Vim help by typing :help :set-! from inside Vim.






          share|improve this answer

























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            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%2funix.stackexchange.com%2fquestions%2f358528%2fvim-reverse-right-to-left%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            12
















            :set norl


            or



            :set norightleft


            Each boolean option in Vim has a corresponding no-option that turns it off.





            The option you were originally looking for might have been relativenumber (rnu), which acts like number (nu) but adds line numbers that are relative to the current line rather than to the start of the editing buffer.






            share|improve this answer





















            • 1





              "Most (all?)" all the boolean options.

              – JoL
              Apr 12 '17 at 18:50











            • @JoL I wasn't 100% it was all of them, so I didn't want to make a definite statement, and I'm still not entirely certain :-)

              – Kusalananda
              Feb 22 at 10:25











            • I haven't tried them all either, but the documentation for :set describes it as a generic syntax rather than some convention: :se[t] no{option} Toggle option: Reset, switch it off.. It also has other syntaxes like :se[t] inv{option}, :se[t] {option}!, and :se[t] {option}?.

              – JoL
              Feb 22 at 16:46


















            12
















            :set norl


            or



            :set norightleft


            Each boolean option in Vim has a corresponding no-option that turns it off.





            The option you were originally looking for might have been relativenumber (rnu), which acts like number (nu) but adds line numbers that are relative to the current line rather than to the start of the editing buffer.






            share|improve this answer





















            • 1





              "Most (all?)" all the boolean options.

              – JoL
              Apr 12 '17 at 18:50











            • @JoL I wasn't 100% it was all of them, so I didn't want to make a definite statement, and I'm still not entirely certain :-)

              – Kusalananda
              Feb 22 at 10:25











            • I haven't tried them all either, but the documentation for :set describes it as a generic syntax rather than some convention: :se[t] no{option} Toggle option: Reset, switch it off.. It also has other syntaxes like :se[t] inv{option}, :se[t] {option}!, and :se[t] {option}?.

              – JoL
              Feb 22 at 16:46
















            12












            12








            12









            :set norl


            or



            :set norightleft


            Each boolean option in Vim has a corresponding no-option that turns it off.





            The option you were originally looking for might have been relativenumber (rnu), which acts like number (nu) but adds line numbers that are relative to the current line rather than to the start of the editing buffer.






            share|improve this answer

















            :set norl


            or



            :set norightleft


            Each boolean option in Vim has a corresponding no-option that turns it off.





            The option you were originally looking for might have been relativenumber (rnu), which acts like number (nu) but adds line numbers that are relative to the current line rather than to the start of the editing buffer.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 22 at 10:26

























            answered Apr 12 '17 at 11:54









            KusalanandaKusalananda

            135k17255421




            135k17255421








            • 1





              "Most (all?)" all the boolean options.

              – JoL
              Apr 12 '17 at 18:50











            • @JoL I wasn't 100% it was all of them, so I didn't want to make a definite statement, and I'm still not entirely certain :-)

              – Kusalananda
              Feb 22 at 10:25











            • I haven't tried them all either, but the documentation for :set describes it as a generic syntax rather than some convention: :se[t] no{option} Toggle option: Reset, switch it off.. It also has other syntaxes like :se[t] inv{option}, :se[t] {option}!, and :se[t] {option}?.

              – JoL
              Feb 22 at 16:46
















            • 1





              "Most (all?)" all the boolean options.

              – JoL
              Apr 12 '17 at 18:50











            • @JoL I wasn't 100% it was all of them, so I didn't want to make a definite statement, and I'm still not entirely certain :-)

              – Kusalananda
              Feb 22 at 10:25











            • I haven't tried them all either, but the documentation for :set describes it as a generic syntax rather than some convention: :se[t] no{option} Toggle option: Reset, switch it off.. It also has other syntaxes like :se[t] inv{option}, :se[t] {option}!, and :se[t] {option}?.

              – JoL
              Feb 22 at 16:46










            1




            1





            "Most (all?)" all the boolean options.

            – JoL
            Apr 12 '17 at 18:50





            "Most (all?)" all the boolean options.

            – JoL
            Apr 12 '17 at 18:50













            @JoL I wasn't 100% it was all of them, so I didn't want to make a definite statement, and I'm still not entirely certain :-)

            – Kusalananda
            Feb 22 at 10:25





            @JoL I wasn't 100% it was all of them, so I didn't want to make a definite statement, and I'm still not entirely certain :-)

            – Kusalananda
            Feb 22 at 10:25













            I haven't tried them all either, but the documentation for :set describes it as a generic syntax rather than some convention: :se[t] no{option} Toggle option: Reset, switch it off.. It also has other syntaxes like :se[t] inv{option}, :se[t] {option}!, and :se[t] {option}?.

            – JoL
            Feb 22 at 16:46







            I haven't tried them all either, but the documentation for :set describes it as a generic syntax rather than some convention: :se[t] no{option} Toggle option: Reset, switch it off.. It also has other syntaxes like :se[t] inv{option}, :se[t] {option}!, and :se[t] {option}?.

            – JoL
            Feb 22 at 16:46















            3














            Turn options on or off with !



            set rightleft!




            To quote the Vim help:



                                                                       *:set-!* *:set-inv*
            :se[t] {option}! or
            :se[t] inv{option} Toggle option: Invert value. {not in Vi}


            You can see this in the built-in Vim help by typing :help :set-! from inside Vim.






            share|improve this answer






























              3














              Turn options on or off with !



              set rightleft!




              To quote the Vim help:



                                                                         *:set-!* *:set-inv*
              :se[t] {option}! or
              :se[t] inv{option} Toggle option: Invert value. {not in Vi}


              You can see this in the built-in Vim help by typing :help :set-! from inside Vim.






              share|improve this answer




























                3












                3








                3







                Turn options on or off with !



                set rightleft!




                To quote the Vim help:



                                                                           *:set-!* *:set-inv*
                :se[t] {option}! or
                :se[t] inv{option} Toggle option: Invert value. {not in Vi}


                You can see this in the built-in Vim help by typing :help :set-! from inside Vim.






                share|improve this answer















                Turn options on or off with !



                set rightleft!




                To quote the Vim help:



                                                                           *:set-!* *:set-inv*
                :se[t] {option}! or
                :se[t] inv{option} Toggle option: Invert value. {not in Vi}


                You can see this in the built-in Vim help by typing :help :set-! from inside Vim.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Apr 12 '17 at 21:10









                Wildcard

                23k1065170




                23k1065170










                answered Apr 12 '17 at 15:25









                m0dularm0dular

                76615




                76615






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux 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%2funix.stackexchange.com%2fquestions%2f358528%2fvim-reverse-right-to-left%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

                    How to make a Squid Proxy server?

                    Is this a new Fibonacci Identity?

                    19世紀