What does “set keymap vi” actually do?
Clash Royale CLAN TAG#URR8PPP
up vote
-1
down vote
favorite
In an effort to vim-theme Readline, I see there are two
set editing-mode vi
set keymap vi
I believe I understand what editing-mode vi
does providing different VIM keymaps to edit, and insert text and such.
What does the set keymap vi
do juxtaposed to set editing-mode vi
? What extra do I get out of it?
There are a lot of really bad overly complex answers. Things I don't care about emacs (in any fashion), commands that are undocumented but otherwise the same as documented commands, what my defaults are (I'm obviously trying to change them).
readline vi-mode
add a comment |
up vote
-1
down vote
favorite
In an effort to vim-theme Readline, I see there are two
set editing-mode vi
set keymap vi
I believe I understand what editing-mode vi
does providing different VIM keymaps to edit, and insert text and such.
What does the set keymap vi
do juxtaposed to set editing-mode vi
? What extra do I get out of it?
There are a lot of really bad overly complex answers. Things I don't care about emacs (in any fashion), commands that are undocumented but otherwise the same as documented commands, what my defaults are (I'm obviously trying to change them).
readline vi-mode
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
In an effort to vim-theme Readline, I see there are two
set editing-mode vi
set keymap vi
I believe I understand what editing-mode vi
does providing different VIM keymaps to edit, and insert text and such.
What does the set keymap vi
do juxtaposed to set editing-mode vi
? What extra do I get out of it?
There are a lot of really bad overly complex answers. Things I don't care about emacs (in any fashion), commands that are undocumented but otherwise the same as documented commands, what my defaults are (I'm obviously trying to change them).
readline vi-mode
In an effort to vim-theme Readline, I see there are two
set editing-mode vi
set keymap vi
I believe I understand what editing-mode vi
does providing different VIM keymaps to edit, and insert text and such.
What does the set keymap vi
do juxtaposed to set editing-mode vi
? What extra do I get out of it?
There are a lot of really bad overly complex answers. Things I don't care about emacs (in any fashion), commands that are undocumented but otherwise the same as documented commands, what my defaults are (I'm obviously trying to change them).
readline vi-mode
readline vi-mode
edited Dec 4 at 4:33
asked Dec 4 at 4:17
Evan Carroll
5,02494178
5,02494178
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
It is equivalent to, and alias for, set keymap vi-command
and is used to begin defining custom keybinds when in vi-command mode.
So, in your ~/.inputrc
you could use it like so:
set keymap vi-command
# or set keymap vi (or, for that matter: set keymap vi-move)
# these are for vi-command mode
"e[A": history-search-backward
"e[B": history-search-forward
The other valid option (after setting editing-mode
to vi
) is keymap vi-insert
for the remaining modal offering.
So basically the "keymap" is simply the mode of vim, there are two to choose from one of those modes is for command mode, and the other for insert mode.
– Evan Carroll
Dec 5 at 17:28
Essentially. It is just defining for readline what modes to apply specific bindings to.
– jasonwryan
Dec 5 at 18:56
add a comment |
up vote
0
down vote
What does “set keymap vi” actually do?
Mark the point that start a list of key definitions that apply only to the keymap named.
The keymap names can be
The set of legal keymap names is emacs, emacs-standard, emacs-meta, emacs-ctlx, vi, vi-move, vi-command, and vi-insert. vi is equivalent to vi-command; emacs is equivalent to emacs-standard.
The modes vi, vi-move and vi-command seem to be equivalent names for the same.
So, from the point in .inputrc
file that a keymap appear until a different keymap gets activated (or the mode is changed (vi and emacs)) the key settings apply the the keymap named in the starting keymap command.
add a comment |
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',
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%2funix.stackexchange.com%2fquestions%2f485817%2fwhat-does-set-keymap-vi-actually-do%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
up vote
1
down vote
accepted
It is equivalent to, and alias for, set keymap vi-command
and is used to begin defining custom keybinds when in vi-command mode.
So, in your ~/.inputrc
you could use it like so:
set keymap vi-command
# or set keymap vi (or, for that matter: set keymap vi-move)
# these are for vi-command mode
"e[A": history-search-backward
"e[B": history-search-forward
The other valid option (after setting editing-mode
to vi
) is keymap vi-insert
for the remaining modal offering.
So basically the "keymap" is simply the mode of vim, there are two to choose from one of those modes is for command mode, and the other for insert mode.
– Evan Carroll
Dec 5 at 17:28
Essentially. It is just defining for readline what modes to apply specific bindings to.
– jasonwryan
Dec 5 at 18:56
add a comment |
up vote
1
down vote
accepted
It is equivalent to, and alias for, set keymap vi-command
and is used to begin defining custom keybinds when in vi-command mode.
So, in your ~/.inputrc
you could use it like so:
set keymap vi-command
# or set keymap vi (or, for that matter: set keymap vi-move)
# these are for vi-command mode
"e[A": history-search-backward
"e[B": history-search-forward
The other valid option (after setting editing-mode
to vi
) is keymap vi-insert
for the remaining modal offering.
So basically the "keymap" is simply the mode of vim, there are two to choose from one of those modes is for command mode, and the other for insert mode.
– Evan Carroll
Dec 5 at 17:28
Essentially. It is just defining for readline what modes to apply specific bindings to.
– jasonwryan
Dec 5 at 18:56
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
It is equivalent to, and alias for, set keymap vi-command
and is used to begin defining custom keybinds when in vi-command mode.
So, in your ~/.inputrc
you could use it like so:
set keymap vi-command
# or set keymap vi (or, for that matter: set keymap vi-move)
# these are for vi-command mode
"e[A": history-search-backward
"e[B": history-search-forward
The other valid option (after setting editing-mode
to vi
) is keymap vi-insert
for the remaining modal offering.
It is equivalent to, and alias for, set keymap vi-command
and is used to begin defining custom keybinds when in vi-command mode.
So, in your ~/.inputrc
you could use it like so:
set keymap vi-command
# or set keymap vi (or, for that matter: set keymap vi-move)
# these are for vi-command mode
"e[A": history-search-backward
"e[B": history-search-forward
The other valid option (after setting editing-mode
to vi
) is keymap vi-insert
for the remaining modal offering.
answered Dec 4 at 5:10
jasonwryan
48.9k14134184
48.9k14134184
So basically the "keymap" is simply the mode of vim, there are two to choose from one of those modes is for command mode, and the other for insert mode.
– Evan Carroll
Dec 5 at 17:28
Essentially. It is just defining for readline what modes to apply specific bindings to.
– jasonwryan
Dec 5 at 18:56
add a comment |
So basically the "keymap" is simply the mode of vim, there are two to choose from one of those modes is for command mode, and the other for insert mode.
– Evan Carroll
Dec 5 at 17:28
Essentially. It is just defining for readline what modes to apply specific bindings to.
– jasonwryan
Dec 5 at 18:56
So basically the "keymap" is simply the mode of vim, there are two to choose from one of those modes is for command mode, and the other for insert mode.
– Evan Carroll
Dec 5 at 17:28
So basically the "keymap" is simply the mode of vim, there are two to choose from one of those modes is for command mode, and the other for insert mode.
– Evan Carroll
Dec 5 at 17:28
Essentially. It is just defining for readline what modes to apply specific bindings to.
– jasonwryan
Dec 5 at 18:56
Essentially. It is just defining for readline what modes to apply specific bindings to.
– jasonwryan
Dec 5 at 18:56
add a comment |
up vote
0
down vote
What does “set keymap vi” actually do?
Mark the point that start a list of key definitions that apply only to the keymap named.
The keymap names can be
The set of legal keymap names is emacs, emacs-standard, emacs-meta, emacs-ctlx, vi, vi-move, vi-command, and vi-insert. vi is equivalent to vi-command; emacs is equivalent to emacs-standard.
The modes vi, vi-move and vi-command seem to be equivalent names for the same.
So, from the point in .inputrc
file that a keymap appear until a different keymap gets activated (or the mode is changed (vi and emacs)) the key settings apply the the keymap named in the starting keymap command.
add a comment |
up vote
0
down vote
What does “set keymap vi” actually do?
Mark the point that start a list of key definitions that apply only to the keymap named.
The keymap names can be
The set of legal keymap names is emacs, emacs-standard, emacs-meta, emacs-ctlx, vi, vi-move, vi-command, and vi-insert. vi is equivalent to vi-command; emacs is equivalent to emacs-standard.
The modes vi, vi-move and vi-command seem to be equivalent names for the same.
So, from the point in .inputrc
file that a keymap appear until a different keymap gets activated (or the mode is changed (vi and emacs)) the key settings apply the the keymap named in the starting keymap command.
add a comment |
up vote
0
down vote
up vote
0
down vote
What does “set keymap vi” actually do?
Mark the point that start a list of key definitions that apply only to the keymap named.
The keymap names can be
The set of legal keymap names is emacs, emacs-standard, emacs-meta, emacs-ctlx, vi, vi-move, vi-command, and vi-insert. vi is equivalent to vi-command; emacs is equivalent to emacs-standard.
The modes vi, vi-move and vi-command seem to be equivalent names for the same.
So, from the point in .inputrc
file that a keymap appear until a different keymap gets activated (or the mode is changed (vi and emacs)) the key settings apply the the keymap named in the starting keymap command.
What does “set keymap vi” actually do?
Mark the point that start a list of key definitions that apply only to the keymap named.
The keymap names can be
The set of legal keymap names is emacs, emacs-standard, emacs-meta, emacs-ctlx, vi, vi-move, vi-command, and vi-insert. vi is equivalent to vi-command; emacs is equivalent to emacs-standard.
The modes vi, vi-move and vi-command seem to be equivalent names for the same.
So, from the point in .inputrc
file that a keymap appear until a different keymap gets activated (or the mode is changed (vi and emacs)) the key settings apply the the keymap named in the starting keymap command.
answered Dec 5 at 7:31
Isaac
10.9k11648
10.9k11648
add a comment |
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2funix.stackexchange.com%2fquestions%2f485817%2fwhat-does-set-keymap-vi-actually-do%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