I have added the following the mappings to my vimrc.
I want K
to take me to the top line of the window and H
to take me to the first non-empty character of the line.
nmap K H
nmap H ^
nmap J L
nmap L g_
This does not do what I want it to.
Since K
performs H
and H
is mapped to (under the above mapping) take me to the first non-empty character of the line, K
takes me to the first non-empty character of the line.
How to achieve what I want to do? I could not think of anything.