Linked Questions

2
votes
2answers
334 views

Key binding conflict of paste and rectangular blocks select [duplicate]

I want to use <C-S-v> to block visual selection and <C-v> to paste. And I have the following mapping in the vimrc. " block visual selection nnoremap <C-S-v> <c-v> " paste map ...
0
votes
0answers
571 views

Why shift key is not working [duplicate]

I have below .vimrc key mapping: nmap <C-S-j> :tabmove -1<cr> nmap <C-S-k> :tabmove +1<cr> nmap <C-j> gT nmap <C-k> gt Don't know why C-S-j|k is not working.
1
vote
1answer
146 views

Mapping C-O and C-S-O [duplicate]

I'm trying to remap C-o to be 'make new line below' (without going to insert mode, as opposed to o) and C-S-o 'make new line above' (without going to insert mode). I do this a lot when reformatting ...
2
votes
0answers
174 views

How do I map curly braces with Ctrl? [duplicate]

I want to map Ctrl + curly brace to some keystrokes. imap <c-}> xxxx But it doesn't work. Why?
0
votes
1answer
67 views

Map C-S-[ and C-S-] to :tabprev and :tabnext [duplicate]

I'm trying to map C-S-[ and C-S-] respectively to :tabprev and tabnext, but when I try that then I get "no lines in buffer". A mapping like C-S-tab works. I looked through :nmap and didn't ...
2
votes
0answers
16 views

VIM remap Ctrl-w SHIFT-[h,j,k,l] [duplicate]

I'm trying to remap in my vimrc the keys Ctrl+w Shift+[H,J,K,L] to Ctrl+Shift+[H,J,K,L]. I'm using gnome vim version 8.1 This is what I have " Easy window positioning "nnoremap <leader>...
96
votes
1answer
20k views

How to debug a mapping?

I see a lot of questions on here where a user has a mapping which doesn't work and most of the time the reasons are pretty similar. I suggest to make this question a reference for this kind of ...
6
votes
2answers
1k 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> #...
8
votes
2answers
2k views

Why is key mapping nnoremap <S-C-k> :w<CR> not working?

I'm trying to make it so I can write a buffer to disk with one keystroke. (Side note: ideally, I'd like this to work in all modes, but for the moment as a start I'm just trying to get it to work in ...
1
vote
1answer
181 views

Is there a way to map (Alt - Shift - Control - Any key) in vimrc?

The ergodox keyboard I use has two dedicated modifier keys ( Alt - Shift - Ctrl ) and ( Alt - Shift - Ctrl - Windows) I would like to use the modifiers in my vimrc to do more specific tasks. nnoremap &...
0
votes
1answer
140 views

Why does this command work in gvim but not in (terminal) vim? [duplicate]

Here is the command: vnoremap <C-S-S> :s/\v([.!?])\s+/\1\r\r/g<CR>`<i<ESC> The command takes a text selection and divides it into sentences separated by new lines. Why would ...
1
vote
0answers
25 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> ...