Linked Questions

4 votes
1 answer
475 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....
user avatar
4 votes
0 answers
448 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, ...
user avatar
38 votes
4 answers
23k 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 ...
user avatar
  • 483
7 votes
2 answers
2k 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> #...
user avatar
2 votes
2 answers
838 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 ...
user avatar
  • 409
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>
user avatar
  • 3,226
0 votes
1 answer
469 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 ...
user avatar
  • 995
2 votes
1 answer
195 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 ...
user avatar
  • 2,370
2 votes
1 answer
140 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 ...
user avatar
  • 275
1 vote
0 answers
292 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 ...
user avatar
  • 179
1 vote
0 answers
233 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 ...
user avatar
  • 2,115
1 vote
0 answers
147 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 ...
user avatar
  • 153
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> ...
user avatar
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') ...
user avatar