Skip to content

Is it possible for wiki-link-types to support jumping to Vim help? #364

@VimWei

Description

@VimWei

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions