My space bar no longer works unless I lean my weight on it. The chances of getting the laptop replaced in a timely manner is close no nil.
I mostly use vim or vi, even from the bash command line. With combinations of the commands below, I've been able to replace <Space>
with <C-j>
in Normal
and Insert
modes, and even in Command-Line
mode:
nmap <C-J> <Space>
map! <C-J> <Space>
omap <C-J> <Space>
map <C-J> <Space>
lmap <C-J> <Space>
omap <C-J> <Space>
I haven't been able to create the mapping in the mode in which I press f
/F
to move forward/backward to the character that is typed next.
What mode would that be?
Is there a way to map <C-J>
to <Space>
in that mode?
I would have thought that falls under Operator-pending
mode, which falls under the map
command.