On macbook keyboard, there is only one ctrl key on the left. I am so used to for half page down using the right ctrl key that it is driving me crazy. Any way to remap the left key to ctrl?
Asked
Active
Viewed 743 times
0
-
1Unfortunately there is no way to remap the ctrl key in vim. – Tumbler41 Dec 21 '18 at 16:41
-
Ok, so how can I do the
to half page down? – user1135541 Dec 21 '18 at 17:30 -
@user1135541 You can't. At least not in Vim. – DJMcMayhem Dec 21 '18 at 19:34
1 Answers
1
While (post-experimentation and reading) I have found no way to remap <Left> to send Ctrl, I can at least point you in two different directions:
Simple mapping
You can "simulate" this with some mappings for common tasks, like
nnoremap <silent> <Left>d <C-d>
The downside is that you'll need to do this for any and all commands you want to map.
OS Keymap
While off-topic here, the internet and other stackexchange sites have lots of information on changing your keyboard layout (especially for modifier keys).
For example, I use CapsLock to send Ctrl: it saves me a lot of pinky strain.
D. Ben Knoble
- 26,070
- 3
- 29
- 65