Vim mappings stop working
Clash Royale CLAN TAG#URR8PPP
Some of my Vim mappings have stopped working, even though :map <keys>
shows that the mapping has been registered.
One example is map <S-CR> O<Esc>
in my .vimrc
, which does not work even if I remove the preceding map <CR> o<Esc>
entry. If the previous entry is present, both <CR>
and <S-CR>
do the same thing.
I have tried removing all Vim packages and reinstalling from source, but it still doesn't work. What are some general trobuleshooting tips that might be of help?
vim vimrc
|
show 3 more comments
Some of my Vim mappings have stopped working, even though :map <keys>
shows that the mapping has been registered.
One example is map <S-CR> O<Esc>
in my .vimrc
, which does not work even if I remove the preceding map <CR> o<Esc>
entry. If the previous entry is present, both <CR>
and <S-CR>
do the same thing.
I have tried removing all Vim packages and reinstalling from source, but it still doesn't work. What are some general trobuleshooting tips that might be of help?
vim vimrc
Are you sure you usevim
and/usr/bin/vi
is not a symlink to elsewhere?
– UVV
Dec 15 '14 at 13:06
1
Have you changed terminals or previously used GVIM? Not all key combinations are handled in terminal Vim;<S-CR>
and<C-CR>
mostly don't work there.
– Ingo Karkat
Dec 15 '14 at 13:14
1
type :map to see what vim thinks it has got mapped
– zzapper
Dec 15 '14 at 13:25
How u removed thevim
? You need to remove it completely I mean the configuration files also.You can usepurge
to remove it completely.sudo apt-get purge vim
and reinstall it.
– Thushi
Dec 15 '14 at 13:41
@zzapper:map
returns what I expect it to.
– Soham Chowdhury
Dec 15 '14 at 17:42
|
show 3 more comments
Some of my Vim mappings have stopped working, even though :map <keys>
shows that the mapping has been registered.
One example is map <S-CR> O<Esc>
in my .vimrc
, which does not work even if I remove the preceding map <CR> o<Esc>
entry. If the previous entry is present, both <CR>
and <S-CR>
do the same thing.
I have tried removing all Vim packages and reinstalling from source, but it still doesn't work. What are some general trobuleshooting tips that might be of help?
vim vimrc
Some of my Vim mappings have stopped working, even though :map <keys>
shows that the mapping has been registered.
One example is map <S-CR> O<Esc>
in my .vimrc
, which does not work even if I remove the preceding map <CR> o<Esc>
entry. If the previous entry is present, both <CR>
and <S-CR>
do the same thing.
I have tried removing all Vim packages and reinstalling from source, but it still doesn't work. What are some general trobuleshooting tips that might be of help?
vim vimrc
vim vimrc
asked Dec 15 '14 at 12:54
Soham ChowdhurySoham Chowdhury
1156
1156
Are you sure you usevim
and/usr/bin/vi
is not a symlink to elsewhere?
– UVV
Dec 15 '14 at 13:06
1
Have you changed terminals or previously used GVIM? Not all key combinations are handled in terminal Vim;<S-CR>
and<C-CR>
mostly don't work there.
– Ingo Karkat
Dec 15 '14 at 13:14
1
type :map to see what vim thinks it has got mapped
– zzapper
Dec 15 '14 at 13:25
How u removed thevim
? You need to remove it completely I mean the configuration files also.You can usepurge
to remove it completely.sudo apt-get purge vim
and reinstall it.
– Thushi
Dec 15 '14 at 13:41
@zzapper:map
returns what I expect it to.
– Soham Chowdhury
Dec 15 '14 at 17:42
|
show 3 more comments
Are you sure you usevim
and/usr/bin/vi
is not a symlink to elsewhere?
– UVV
Dec 15 '14 at 13:06
1
Have you changed terminals or previously used GVIM? Not all key combinations are handled in terminal Vim;<S-CR>
and<C-CR>
mostly don't work there.
– Ingo Karkat
Dec 15 '14 at 13:14
1
type :map to see what vim thinks it has got mapped
– zzapper
Dec 15 '14 at 13:25
How u removed thevim
? You need to remove it completely I mean the configuration files also.You can usepurge
to remove it completely.sudo apt-get purge vim
and reinstall it.
– Thushi
Dec 15 '14 at 13:41
@zzapper:map
returns what I expect it to.
– Soham Chowdhury
Dec 15 '14 at 17:42
Are you sure you use
vim
and /usr/bin/vi
is not a symlink to elsewhere?– UVV
Dec 15 '14 at 13:06
Are you sure you use
vim
and /usr/bin/vi
is not a symlink to elsewhere?– UVV
Dec 15 '14 at 13:06
1
1
Have you changed terminals or previously used GVIM? Not all key combinations are handled in terminal Vim;
<S-CR>
and <C-CR>
mostly don't work there.– Ingo Karkat
Dec 15 '14 at 13:14
Have you changed terminals or previously used GVIM? Not all key combinations are handled in terminal Vim;
<S-CR>
and <C-CR>
mostly don't work there.– Ingo Karkat
Dec 15 '14 at 13:14
1
1
type :map to see what vim thinks it has got mapped
– zzapper
Dec 15 '14 at 13:25
type :map to see what vim thinks it has got mapped
– zzapper
Dec 15 '14 at 13:25
How u removed the
vim
? You need to remove it completely I mean the configuration files also.You can use purge
to remove it completely. sudo apt-get purge vim
and reinstall it.– Thushi
Dec 15 '14 at 13:41
How u removed the
vim
? You need to remove it completely I mean the configuration files also.You can use purge
to remove it completely. sudo apt-get purge vim
and reinstall it.– Thushi
Dec 15 '14 at 13:41
@zzapper
:map
returns what I expect it to.– Soham Chowdhury
Dec 15 '14 at 17:42
@zzapper
:map
returns what I expect it to.– Soham Chowdhury
Dec 15 '14 at 17:42
|
show 3 more comments
2 Answers
2
active
oldest
votes
Using gvim
fixes the <S-CR>
issue, but other mappings still aren't working, like ,ev
(mentioned in the comments).
add a comment |
One day, I noticed that some of my mappings had stopped working without any visible reasons. Exactly as Soham did.
In short, it seems that our lovely Vim has a very weird side effect. In my case, adding the » symbol to the string of the langmap option incomprehensibly ruins some of the mappings for other keys and symbols. Wherein, the output of the :map command tells that all must be OK. Yes, in some cases, such as Shift-Tab, the terminal does not pass over the signal, but it’s not the case we’re talking about.
If anyone, as Soham or me, is having the trouble, try to start your investigation from the langmap option. And don’t think, please, that there is any visible connection between the symbols in your langmap and the symbols and keys that stopped working.
The details.
Knowing about the terminal behaviour, in order to have more “handles” for Vim, I’ve remapped some of the keyboard mappings via the xkb technology. In particular, I have the Escape signal on the Tab key. On the fifth level of that key (xkb terminology) I have the ↻ symbol which is mapped in Vim to the Ctrl-R command. Then, I have the ” symbol on the x key (on the third level) when I‘m working with a Latin set, and the » symbol on the same key when I‘m working with a Cyrillic set.
So, my langmap is:
set lmap=
set lmap+=йцукенгшщзхъ;qwertyuiop'"
set lmap+=фывапролджэ;asdfghjkl_=
set lmap+=ячсмитьбю;zxcvbnm‘’
set lmap+=ЙЦУКЕНГШЩЗХЪ;QWERTYUIOP'"
set lmap+=ФЫВАПРОЛДЖЭ;ASDFGHJKL_=
set lmap+=ЯЧСМИТЬБЮ;ZXCVBNM‘’
set lmap+=«»;“”
The » symbol in the last string (actually located at the x key) ruins the mapping for the ↻ symbol on the Tab key. Yes! It’s very interesting! So, deleting the mapping for the » symbol puts Vim to the right condition.
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',
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%2funix.stackexchange.com%2fquestions%2f174340%2fvim-mappings-stop-working%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
Using gvim
fixes the <S-CR>
issue, but other mappings still aren't working, like ,ev
(mentioned in the comments).
add a comment |
Using gvim
fixes the <S-CR>
issue, but other mappings still aren't working, like ,ev
(mentioned in the comments).
add a comment |
Using gvim
fixes the <S-CR>
issue, but other mappings still aren't working, like ,ev
(mentioned in the comments).
Using gvim
fixes the <S-CR>
issue, but other mappings still aren't working, like ,ev
(mentioned in the comments).
answered Dec 18 '14 at 11:03
Soham ChowdhurySoham Chowdhury
1156
1156
add a comment |
add a comment |
One day, I noticed that some of my mappings had stopped working without any visible reasons. Exactly as Soham did.
In short, it seems that our lovely Vim has a very weird side effect. In my case, adding the » symbol to the string of the langmap option incomprehensibly ruins some of the mappings for other keys and symbols. Wherein, the output of the :map command tells that all must be OK. Yes, in some cases, such as Shift-Tab, the terminal does not pass over the signal, but it’s not the case we’re talking about.
If anyone, as Soham or me, is having the trouble, try to start your investigation from the langmap option. And don’t think, please, that there is any visible connection between the symbols in your langmap and the symbols and keys that stopped working.
The details.
Knowing about the terminal behaviour, in order to have more “handles” for Vim, I’ve remapped some of the keyboard mappings via the xkb technology. In particular, I have the Escape signal on the Tab key. On the fifth level of that key (xkb terminology) I have the ↻ symbol which is mapped in Vim to the Ctrl-R command. Then, I have the ” symbol on the x key (on the third level) when I‘m working with a Latin set, and the » symbol on the same key when I‘m working with a Cyrillic set.
So, my langmap is:
set lmap=
set lmap+=йцукенгшщзхъ;qwertyuiop'"
set lmap+=фывапролджэ;asdfghjkl_=
set lmap+=ячсмитьбю;zxcvbnm‘’
set lmap+=ЙЦУКЕНГШЩЗХЪ;QWERTYUIOP'"
set lmap+=ФЫВАПРОЛДЖЭ;ASDFGHJKL_=
set lmap+=ЯЧСМИТЬБЮ;ZXCVBNM‘’
set lmap+=«»;“”
The » symbol in the last string (actually located at the x key) ruins the mapping for the ↻ symbol on the Tab key. Yes! It’s very interesting! So, deleting the mapping for the » symbol puts Vim to the right condition.
add a comment |
One day, I noticed that some of my mappings had stopped working without any visible reasons. Exactly as Soham did.
In short, it seems that our lovely Vim has a very weird side effect. In my case, adding the » symbol to the string of the langmap option incomprehensibly ruins some of the mappings for other keys and symbols. Wherein, the output of the :map command tells that all must be OK. Yes, in some cases, such as Shift-Tab, the terminal does not pass over the signal, but it’s not the case we’re talking about.
If anyone, as Soham or me, is having the trouble, try to start your investigation from the langmap option. And don’t think, please, that there is any visible connection between the symbols in your langmap and the symbols and keys that stopped working.
The details.
Knowing about the terminal behaviour, in order to have more “handles” for Vim, I’ve remapped some of the keyboard mappings via the xkb technology. In particular, I have the Escape signal on the Tab key. On the fifth level of that key (xkb terminology) I have the ↻ symbol which is mapped in Vim to the Ctrl-R command. Then, I have the ” symbol on the x key (on the third level) when I‘m working with a Latin set, and the » symbol on the same key when I‘m working with a Cyrillic set.
So, my langmap is:
set lmap=
set lmap+=йцукенгшщзхъ;qwertyuiop'"
set lmap+=фывапролджэ;asdfghjkl_=
set lmap+=ячсмитьбю;zxcvbnm‘’
set lmap+=ЙЦУКЕНГШЩЗХЪ;QWERTYUIOP'"
set lmap+=ФЫВАПРОЛДЖЭ;ASDFGHJKL_=
set lmap+=ЯЧСМИТЬБЮ;ZXCVBNM‘’
set lmap+=«»;“”
The » symbol in the last string (actually located at the x key) ruins the mapping for the ↻ symbol on the Tab key. Yes! It’s very interesting! So, deleting the mapping for the » symbol puts Vim to the right condition.
add a comment |
One day, I noticed that some of my mappings had stopped working without any visible reasons. Exactly as Soham did.
In short, it seems that our lovely Vim has a very weird side effect. In my case, adding the » symbol to the string of the langmap option incomprehensibly ruins some of the mappings for other keys and symbols. Wherein, the output of the :map command tells that all must be OK. Yes, in some cases, such as Shift-Tab, the terminal does not pass over the signal, but it’s not the case we’re talking about.
If anyone, as Soham or me, is having the trouble, try to start your investigation from the langmap option. And don’t think, please, that there is any visible connection between the symbols in your langmap and the symbols and keys that stopped working.
The details.
Knowing about the terminal behaviour, in order to have more “handles” for Vim, I’ve remapped some of the keyboard mappings via the xkb technology. In particular, I have the Escape signal on the Tab key. On the fifth level of that key (xkb terminology) I have the ↻ symbol which is mapped in Vim to the Ctrl-R command. Then, I have the ” symbol on the x key (on the third level) when I‘m working with a Latin set, and the » symbol on the same key when I‘m working with a Cyrillic set.
So, my langmap is:
set lmap=
set lmap+=йцукенгшщзхъ;qwertyuiop'"
set lmap+=фывапролджэ;asdfghjkl_=
set lmap+=ячсмитьбю;zxcvbnm‘’
set lmap+=ЙЦУКЕНГШЩЗХЪ;QWERTYUIOP'"
set lmap+=ФЫВАПРОЛДЖЭ;ASDFGHJKL_=
set lmap+=ЯЧСМИТЬБЮ;ZXCVBNM‘’
set lmap+=«»;“”
The » symbol in the last string (actually located at the x key) ruins the mapping for the ↻ symbol on the Tab key. Yes! It’s very interesting! So, deleting the mapping for the » symbol puts Vim to the right condition.
One day, I noticed that some of my mappings had stopped working without any visible reasons. Exactly as Soham did.
In short, it seems that our lovely Vim has a very weird side effect. In my case, adding the » symbol to the string of the langmap option incomprehensibly ruins some of the mappings for other keys and symbols. Wherein, the output of the :map command tells that all must be OK. Yes, in some cases, such as Shift-Tab, the terminal does not pass over the signal, but it’s not the case we’re talking about.
If anyone, as Soham or me, is having the trouble, try to start your investigation from the langmap option. And don’t think, please, that there is any visible connection between the symbols in your langmap and the symbols and keys that stopped working.
The details.
Knowing about the terminal behaviour, in order to have more “handles” for Vim, I’ve remapped some of the keyboard mappings via the xkb technology. In particular, I have the Escape signal on the Tab key. On the fifth level of that key (xkb terminology) I have the ↻ symbol which is mapped in Vim to the Ctrl-R command. Then, I have the ” symbol on the x key (on the third level) when I‘m working with a Latin set, and the » symbol on the same key when I‘m working with a Cyrillic set.
So, my langmap is:
set lmap=
set lmap+=йцукенгшщзхъ;qwertyuiop'"
set lmap+=фывапролджэ;asdfghjkl_=
set lmap+=ячсмитьбю;zxcvbnm‘’
set lmap+=ЙЦУКЕНГШЩЗХЪ;QWERTYUIOP'"
set lmap+=ФЫВАПРОЛДЖЭ;ASDFGHJKL_=
set lmap+=ЯЧСМИТЬБЮ;ZXCVBNM‘’
set lmap+=«»;“”
The » symbol in the last string (actually located at the x key) ruins the mapping for the ↻ symbol on the Tab key. Yes! It’s very interesting! So, deleting the mapping for the » symbol puts Vim to the right condition.
edited Feb 22 at 19:41
Rui F Ribeiro
41.5k1483141
41.5k1483141
answered Feb 22 at 13:56
oneastokoneastok
11
11
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.
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%2f174340%2fvim-mappings-stop-working%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
Are you sure you use
vim
and/usr/bin/vi
is not a symlink to elsewhere?– UVV
Dec 15 '14 at 13:06
1
Have you changed terminals or previously used GVIM? Not all key combinations are handled in terminal Vim;
<S-CR>
and<C-CR>
mostly don't work there.– Ingo Karkat
Dec 15 '14 at 13:14
1
type :map to see what vim thinks it has got mapped
– zzapper
Dec 15 '14 at 13:25
How u removed the
vim
? You need to remove it completely I mean the configuration files also.You can usepurge
to remove it completely.sudo apt-get purge vim
and reinstall it.– Thushi
Dec 15 '14 at 13:41
@zzapper
:map
returns what I expect it to.– Soham Chowdhury
Dec 15 '14 at 17:42