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
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
add a comment |
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
add a comment |
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
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
vimrc
edited Mar 31 at 6:32
Ralf
3,4851317
3,4851317
asked Mar 31 at 6:03
Pieru PoikaPieru Poika
182
182
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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>
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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>
add a comment |
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>
add a comment |
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>
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>
answered Mar 31 at 6:08
klausklaus
1,310220
1,310220
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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