Linked Questions
15 questions linked to/from Disable <Esc> but keep <C-[>
2
votes
1
answer
415
views
Conflict between system compose key and insert mode meta key mappings
I use the right alt key as a compose key on my system, to easily draw diacritics and accent characters.
In Vim, I unlock alt key mappings with this (from stackoverflow):
" Allow <alt> key ...
1
vote
0
answers
19
views
Mapping <C-[> causes input() to not be abortable
The following function, when at the prompt, if one presses <Esc>, then it will print EXIT.
function! Testinput()
let g:searchString = input("Enter search string: ", 'default', 'syntax')
...
4
votes
1
answer
1k
views
How to remove the mapping from Ctrl-[ to Escape? [duplicate]
If you have an American English keyboard, pressing Ctrl-[ (control plus left square bracket) is equivalent to pressing Esc. This provides an easy way to exit from insert mode.
source: https://vim....
0
votes
1
answer
2k
views
How to prevent Vim from making a flashy screen effect when pressing `ESC` or `^[` in normal mode?
I often press ESC/^[ to ensure that I've left insert mode and entered normal mode. However, if I'm already in normal mode, Vim displays an annoying flashy screen effect:
How can I prevent Vim from ...
1
vote
0
answers
26
views
Mapping breaks built-in Vim command? [duplicate]
In Vim the commands <C-o> and <C-i> move backwards and forwards through the jump list.
:h CTRL-I
I noticed that <Tab> is the alternative command you can use instead of <C-i> ...
1
vote
0
answers
149
views
Cannot map <C-j> sequence in vim [duplicate]
I used to be able to navigate vim splits using
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
nnoremap <C-h> <C-w>h
but now I ...
13
votes
2
answers
3k
views
How to map <C-i> separate from <Tab>?
I want to remap <C-I> to print markdown * symbol around the previous word. For example:
# user actions inside <...>
some text typed in vim insert mode<cursor_position> <C-I>
#...
2
votes
3
answers
1k
views
How to use jumplist's <C-i> which is seen as a <Tab>?
On vim's help :help jumplist I can read:
Jumps are remembered in a jump list. With the CTRL-O and CTRL-I command you
can go to cursor positions before older jumps, and back again. Thus you can
...
16
votes
1
answer
5k
views
Mapping Ctrl with equal sign
I am trying to map my Ctrl and plus sign together. This is what I am trying in my vimrc:
nnoremap <C-=> : echo "Hello" <CR>
However it seems like the mapping is not being triggered.
...
1
vote
0
answers
311
views
Troubleshooting mapping
I have the following in my vimrc:
nnoremap <C-J> o<Esc>k$
nnoremap <C-K> O<Esc>j$
The bottom mapping works as expected, but c-j now produces the same effect as i (which is ...
1
vote
0
answers
257
views
Use ISO Level3/5 as modifier in vim keymap?
I've been using the pseudo keymap solution from my previous question to great effect for 6 months now. The short version is that it allows me to keep the computer keyboard map in my usual Programmer's ...
0
votes
1
answer
2k
views
How to disable Ctrl key?
How do I disable the Ctrl key? I've tried options below, but they did not work.
noremap <C> <NOP>
noremap <C-> <NOP>
2
votes
1
answer
215
views
Mapping <C-m> also creates a mapping for <CR>
I have a custom function and mapping:
nmap <C-m> :MyMake<CR>
This works as intendeded, the correct function is called etc. But it creates another mapping, running :nmap shows that CR is ...
4
votes
0
answers
449
views
How to remap <C-[> on linux [duplicate]
I have the same vimrc file for both Windows and Ubuntu environments. It works fine on both platforms, except for one difference. The line:
nmap <C-[> <C-t>
is working fine on Windows, ...
47
votes
4
answers
31k
views
How can I work with splits in Vim without Ctrl-W?
My terminal doesn't allow me to type Ctrl+W, because that's a shortcut for closing a terminal tab.
I like working with splits, but I can't find any way to do so without using C-W. This forced me to ...