Motivation and cross-reference (TL;DR)
Things start from this post about Vimwiki, where I re-learned that <c-i>
and <tab>
are indistinguishable by the Modern Vim. This brings conflict in my hard-to-change muscle memory. For the mappings in normal mode:
<c-i>
should take me to the more recent position in the jump list (opposite of<c-o>
), and<tab>
should handle its own business:- For Vimwiki,
<tab>
jumps to the next hyperlink, and<s-tab>
jumps to the previous hyperlink - For other filetypes, I do not press
<tab>
key in normal mode.
- For Vimwiki,
I tend to spend a considerable amount of time in Markdown documents, and I rely on Vimwiki to nativage the stacks of Markdown files. (I maintain two websites + one personal wiki with more than 2,000 entires.)
At the end of the day, I would like to "split" the functionality of <tab>
and <c-i>
==> In Normal-mode, pressing <tab>
shall issue :VimwikiNextLink<CR>
and <c-i>
shall bring me to the next point in the Jump list.
Since it is well established that <tab>
and <c-i>
are treated alike by Vim, I am planning to use AutoHotKey to overwrite the <tab>
key only in Normal Mode. This is where all dots should connect: through a title-matching trick in AutoHotKey, <tab>
is only mapped to :VimwikiNextLink<CR>
in normal mode.
Given the tweak on the titlestring
option, I see the light of distinguishing modes.