obsidian-vimrc-support
obsidian-vimrc-support copied to clipboard
How can I map G to G$ ?
It seems 'nmap G G$' doesn't work as I expected. the G didn't take effect but only the $ did.
I believe changing the configuration as follows will achieve the expected behavior:
noremap G G$
When using nmap, the G in the right-hand side G$ gets remapped again, causing an infinite loop. Instead, try using noremap which prevents remapping.
I suspect that in the original configuration, only $ was executed because there's a mechanism that stops processing a key when an infinite loop is detected.