Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to map Shift+- (Shift+dash) in vim?

Tags:

vim

I am struggling with binding Shift+- combination in vim. I have tried both options below to no available and googling does not bring any relevant information.

nnoremap <S-\-> <C-W>-
nnoremap <S--> <C-W>-

I am running Linux and want to bind - key which is between 0 and = keys.

like image 459
phoops Avatar asked Mar 21 '26 22:03

phoops


1 Answers

Just use the character on the key.

nnoremap _ <C-W>-
like image 83
FDinoff Avatar answered Mar 24 '26 18:03

FDinoff