I am new to Fedora and I have installed Fedora-34 couple of days ago. Well, when I used ubuntu, I mapped my Esc to CapsLk in vim using following lines in ~/.vimrc file
au VimEnter * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
au VimLeave * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Caps_Lock'
Well, this does Not work in Fedora. I searched this at many sites and derived to a conclusion that Fedora does not have xmodmap and we need to create xkb configuration from xmodmap which is also shown here.
I do not know anything xkb file and I want this mapping just for Vim. How can I achieve this in the easiest way possible?
If it matters, this is my vimrc file and you can find above code at Line 723