How to put a new line character in an abbreviation?

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











up vote
3
down vote

favorite












I tried the following commands:



:abb sm Summary:n
:abb sm Summary:\n


but it didn't work, nothing escaped, I ended up with the long form instead of a break.



Is there a way to do that from ex mode? Is it something with one of those ^M characters? I can't remember how to do that.










share|improve this question



























    up vote
    3
    down vote

    favorite












    I tried the following commands:



    :abb sm Summary:n
    :abb sm Summary:\n


    but it didn't work, nothing escaped, I ended up with the long form instead of a break.



    Is there a way to do that from ex mode? Is it something with one of those ^M characters? I can't remember how to do that.










    share|improve this question

























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I tried the following commands:



      :abb sm Summary:n
      :abb sm Summary:\n


      but it didn't work, nothing escaped, I ended up with the long form instead of a break.



      Is there a way to do that from ex mode? Is it something with one of those ^M characters? I can't remember how to do that.










      share|improve this question















      I tried the following commands:



      :abb sm Summary:n
      :abb sm Summary:\n


      but it didn't work, nothing escaped, I ended up with the long form instead of a break.



      Is there a way to do that from ex mode? Is it something with one of those ^M characters? I can't remember how to do that.







      abbreviations






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 22 hours ago









      paxdiablo

      1,8821822




      1,8821822










      asked 2 days ago









      leeand00

      1,116821




      1,116821




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          Use <cr> instead of n:



          iabbrev sm Summary<cr>


          You use generally use key notation in these cases, something you can find out more about by entering :h key-notation.






          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',
            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%2f17339%2fhow-to-put-a-new-line-character-in-an-abbreviation%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
            5
            down vote



            accepted










            Use <cr> instead of n:



            iabbrev sm Summary<cr>


            You use generally use key notation in these cases, something you can find out more about by entering :h key-notation.






            share|improve this answer


























              up vote
              5
              down vote



              accepted










              Use <cr> instead of n:



              iabbrev sm Summary<cr>


              You use generally use key notation in these cases, something you can find out more about by entering :h key-notation.






              share|improve this answer
























                up vote
                5
                down vote



                accepted







                up vote
                5
                down vote



                accepted






                Use <cr> instead of n:



                iabbrev sm Summary<cr>


                You use generally use key notation in these cases, something you can find out more about by entering :h key-notation.






                share|improve this answer














                Use <cr> instead of n:



                iabbrev sm Summary<cr>


                You use generally use key notation in these cases, something you can find out more about by entering :h key-notation.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 22 hours ago









                paxdiablo

                1,8821822




                1,8821822










                answered 2 days ago









                Peter Rincker

                9,79611527




                9,79611527



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fvi.stackexchange.com%2fquestions%2f17339%2fhow-to-put-a-new-line-character-in-an-abbreviation%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