Unable to get to work in insert modewhat 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
Partial fraction expansion confusion
Implication of namely
In Bayesian inference, why are some terms dropped from the posterior predictive?
Finitely generated matrix groups whose eigenvalues are all algebraic
Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?
One verb to replace 'be a member of' a club
Was the Stack Exchange "Happy April Fools" page fitting with the '90's code?
How to coordinate airplane tickets?
How could indestructible materials be used in power generation?
What is the most common color to indicate the input-field is disabled?
How seriously should I take size and weight limits of hand luggage?
How to show a landlord what we have in savings?
Ambiguity in the definition of entropy
How to remove border from elements in the last row?
What historical events would have to change in order to make 19th century "steampunk" technology possible?
Why didn't Boeing produce its own regional jet?
Can a virus destroy the BIOS of a modern computer?
What reasons are there for a Capitalist to oppose a 100% inheritance tax?
Is this draw by repetition?
What do you call someone who asks many questions?
Placement of More Information/Help Icon button for Radio Buttons
How to Prove P(a) → ∀x(P(x) ∨ ¬(x = a)) using Natural Deduction
How does a dynamic QR code work?
What exactly is ineptocracy?
Unable to get to work in insert mode
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
New contributor
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
New contributor
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
New contributor
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
New contributor
New contributor
edited 2 days ago
Ralf
3,2951317
3,2951317
New contributor
asked 2 days ago
Pieru PoikaPieru Poika
182
182
New contributor
New contributor
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
);
);
Pieru Poika is a new contributor. Be nice, and check out our Code of Conduct.
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 2 days ago
klausklaus
1,164220
1,164220
add a comment |
add a comment |
Pieru Poika is a new contributor. Be nice, and check out our Code of Conduct.
Pieru Poika is a new contributor. Be nice, and check out our Code of Conduct.
Pieru Poika is a new contributor. Be nice, and check out our Code of Conduct.
Pieru Poika is a new contributor. Be nice, and check out our Code of Conduct.
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