Unable to get to work in insert mode The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)what is the correct codepage to use with vim airline?How to use a specific vimrc file and still load the usual files?How to make horizontal scrolling easier when the cursor is not ideally located?Why my dot key doesn't work properly in insert mode?How to pause (with message) during .vimrc startup?Mapping vim key to change to next tab in KonsoleCan't remap <C-C> in vimLaunching Vim with a file as argument does not work, if my .vimrc contains a `:cd` commandVim 8.1 Globally custom highlight colorsExtending the true line width to enable screen readers to see what blind users cannot

Mortgage adviser recommends a longer term than necessary combined with overpayments

How do you keep chess fun when your opponent constantly beats you?

Would an alien lifeform be able to achieve space travel if lacking in vision?

Do working physicists consider Newtonian mechanics to be "falsified"?

Derivation tree not rendering

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

What information about me do stores get via my credit card?

Windows 10: How to Lock (not sleep) laptop on lid close?

Is every episode of "Where are my Pants?" identical?

How to pronounce 1ターン?

Does Parliament hold absolute power in the UK?

Does Parliament need to approve the new Brexit delay to 31 October 2019?

How should I replace vector<uint8_t>::const_iterator in an API?

What is this lever in Argentinian toilets?

Working through the single responsibility principle (SRP) in Python when calls are expensive

Problems with Ubuntu mount /tmp

How to remove this toilet supply line that seems to have no nut?

Do warforged have souls?

Road tyres vs "Street" tyres for charity ride on MTB Tandem

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

University's motivation for having tenure-track positions

Finding the path in a graph from A to B then back to A with a minimum of shared edges

Keeping a retro style to sci-fi spaceships?

Make it rain characters



Unable to get to work in insert mode



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)what is the correct codepage to use with vim airline?How to use a specific vimrc file and still load the usual files?How to make horizontal scrolling easier when the cursor is not ideally located?Why my dot key doesn't work properly in insert mode?How to pause (with message) during .vimrc startup?Mapping vim key to change to next tab in KonsoleCan't remap <C-C> in vimLaunching Vim with a file as argument does not work, if my .vimrc contains a `:cd` commandVim 8.1 Globally custom highlight colorsExtending the true line width to enable screen readers to see what blind users cannot










3















I am using Vim version 8.0 and I would like to use <M-Up>, <M-Down>, <M-Left> and <M-Right> for navigating from window to window during insert mode. I am unable to get this work. These are the key-bindings in my ~/.vimrc:



inoremap <M-Left> <C-w><Left>
inoremap <M-Right> <C-w><Right>
inoremap <M-Up> <C-w><Up>
inoremap <M-Down> <C-w><Down>


In normal mode, things work. That is, when the key maps are changed from inoremap to noremap. Would someone have an idea how i can troubleshoot the problem or what is wrong in my above configuration?










share|improve this question




























    3















    I am using Vim version 8.0 and I would like to use <M-Up>, <M-Down>, <M-Left> and <M-Right> for navigating from window to window during insert mode. I am unable to get this work. These are the key-bindings in my ~/.vimrc:



    inoremap <M-Left> <C-w><Left>
    inoremap <M-Right> <C-w><Right>
    inoremap <M-Up> <C-w><Up>
    inoremap <M-Down> <C-w><Down>


    In normal mode, things work. That is, when the key maps are changed from inoremap to noremap. Would someone have an idea how i can troubleshoot the problem or what is wrong in my above configuration?










    share|improve this question


























      3












      3








      3








      I am using Vim version 8.0 and I would like to use <M-Up>, <M-Down>, <M-Left> and <M-Right> for navigating from window to window during insert mode. I am unable to get this work. These are the key-bindings in my ~/.vimrc:



      inoremap <M-Left> <C-w><Left>
      inoremap <M-Right> <C-w><Right>
      inoremap <M-Up> <C-w><Up>
      inoremap <M-Down> <C-w><Down>


      In normal mode, things work. That is, when the key maps are changed from inoremap to noremap. Would someone have an idea how i can troubleshoot the problem or what is wrong in my above configuration?










      share|improve this question
















      I am using Vim version 8.0 and I would like to use <M-Up>, <M-Down>, <M-Left> and <M-Right> for navigating from window to window during insert mode. I am unable to get this work. These are the key-bindings in my ~/.vimrc:



      inoremap <M-Left> <C-w><Left>
      inoremap <M-Right> <C-w><Right>
      inoremap <M-Up> <C-w><Up>
      inoremap <M-Down> <C-w><Down>


      In normal mode, things work. That is, when the key maps are changed from inoremap to noremap. Would someone have an idea how i can troubleshoot the problem or what is wrong in my above configuration?







      vimrc






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 31 at 6:32









      Ralf

      3,4851317




      3,4851317










      asked Mar 31 at 6:03









      Pieru PoikaPieru Poika

      182




      182




















          1 Answer
          1






          active

          oldest

          votes


















          3














          You need to use :h i_CTRL-O. From the help docs:



          CTRL-O execute one command, return to Insert mode


          Try these:



          inoremap <M-Left> <C-O><C-w><Left>
          inoremap <M-Right> <C-O><C-w><Right>
          inoremap <M-Up> <C-O><C-w><Up>
          inoremap <M-Down> <C-O><C-w><Down>





          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%2f19390%2funable-to-get-m-up-to-work-in-insert-mode%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









            3














            You need to use :h i_CTRL-O. From the help docs:



            CTRL-O execute one command, return to Insert mode


            Try these:



            inoremap <M-Left> <C-O><C-w><Left>
            inoremap <M-Right> <C-O><C-w><Right>
            inoremap <M-Up> <C-O><C-w><Up>
            inoremap <M-Down> <C-O><C-w><Down>





            share|improve this answer



























              3














              You need to use :h i_CTRL-O. From the help docs:



              CTRL-O execute one command, return to Insert mode


              Try these:



              inoremap <M-Left> <C-O><C-w><Left>
              inoremap <M-Right> <C-O><C-w><Right>
              inoremap <M-Up> <C-O><C-w><Up>
              inoremap <M-Down> <C-O><C-w><Down>





              share|improve this answer

























                3












                3








                3







                You need to use :h i_CTRL-O. From the help docs:



                CTRL-O execute one command, return to Insert mode


                Try these:



                inoremap <M-Left> <C-O><C-w><Left>
                inoremap <M-Right> <C-O><C-w><Right>
                inoremap <M-Up> <C-O><C-w><Up>
                inoremap <M-Down> <C-O><C-w><Down>





                share|improve this answer













                You need to use :h i_CTRL-O. From the help docs:



                CTRL-O execute one command, return to Insert mode


                Try these:



                inoremap <M-Left> <C-O><C-w><Left>
                inoremap <M-Right> <C-O><C-w><Right>
                inoremap <M-Up> <C-O><C-w><Up>
                inoremap <M-Down> <C-O><C-w><Down>






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 31 at 6:08









                klausklaus

                1,310220




                1,310220



























                    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%2f19390%2funable-to-get-m-up-to-work-in-insert-mode%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

                    Triangular numbers and gcdProving sum of a set is $0 pmod n$ if $n$ is odd, or $fracn2 pmod n$ if $n$ is even?Is greatest common divisor of two numbers really their smallest linear combination?GCD, LCM RelationshipProve a set of nonnegative integers with greatest common divisor 1 and closed under addition has all but finite many nonnegative integers.all pairs of a and b in an equation containing gcdTriangular Numbers Modulo $k$ - Hit All Values?Understanding the Existence and Uniqueness of the GCDGCD and LCM with logical symbolsThe greatest common divisor of two positive integers less than 100 is equal to 3. Their least common multiple is twelve times one of the integers.Suppose that for all integers $x$, $x|a$ and $x|b$ if and only if $x|c$. Then $c = gcd(a,b)$Which is the gcd of 2 numbers which are multiplied and the result is 600000?

                    Ingelân Ynhâld Etymology | Geografy | Skiednis | Polityk en bestjoer | Ekonomy | Demografy | Kultuer | Klimaat | Sjoch ek | Keppelings om utens | Boarnen, noaten en referinsjes Navigaasjemenuwww.gov.ukOffisjele webside fan it regear fan it Feriene KeninkrykOffisjele webside fan it Britske FerkearsburoNederlânsktalige ynformaasje fan it Britske FerkearsburoOffisjele webside fan English Heritage, de organisaasje dy't him ynset foar it behâld fan it Ingelske kultuergoedYnwennertallen fan alle Britske stêden út 'e folkstelling fan 2011Notes en References, op dizze sideEngland

                    Հադիս Բովանդակություն Անվանում և նշանակություն | Դասակարգում | Աղբյուրներ | Նավարկման ցանկ