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.
dHsay. – mahbubweb Dec 13 '18 at 10:15:h omap-info– statox Dec 13 '18 at 10:22:h omap-info, they didn't work. For instance I addedomap H ^and typeddH, it didn't performd^; and similarly for other mappings. Whats going on here? – mahbubweb Feb 18 '19 at 21:39