-
Notifications
You must be signed in to change notification settings - Fork 66
Is it possible for wiki-link-types to support jumping to Vim help? #364
Copy link
Copy link
Closed
Description
The Vim ecosystem is vast, and I often need to consult the Vim help documentation for various topics. I've made quite a few wiki notes, and while I can search for the keywords mentioned in these notes using :h subject, it always feels like it would be much more convenient if the wiki-link-types supported a format like |vim help subject| or something similar. With this feature, recognizing and using wiki links with a simple press of the Enter key would enable direct jumping to the help content.
PS: I have configured the Vim help document type to be accessed in a way that mimics the wiki approach.
" Jump
nnoremap <buffer> <CR> <C-]>
nnoremap <buffer> <BS> <C-T>
" Lookup |label| using <Tab>/<S-Tab>
nnoremap <buffer> <Tab> /<Bar>\zs\k*\ze<Bar><CR>:noh<CR>
nnoremap <buffer> <S-Tab> ?<Bar>\zs\k*\ze<Bar><CR>:noh<CR>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels