Skip to content

vimwiki

Christopher P. Brown edited this page Jan 25, 2022 · 2 revisions

vimwiki

You should definitely just read :help vimwiki, but here are some tips and tricks in the meantime to get you started

quick access and navigating

  • open index - <Leader>ww
  • diary
    • open today - <Leader>w <Leader>w
    • open yesterday - <Leader>w <Leader>y
    • open tomorrow - <Leader>w <Leader>m
    • open index - <Leader>wi
    • reindex index page - <Leader>w <Leader>i
  • create link (normal mode) (cursor on text) - Enter
  • follow link (nomal mode) (cursor on link) - Enter
  • go back - backspace
  • jump between links - tab / shift tab
  • jump between headers - ]] / [[

multiple wikis

  • select a wiki: <Leader>ws
  • You can use a prefix with any of the "open" commands #quick access and navigating. e.g. 2<Leader>ww to open the home page of wiki #2.
  • interwiki linking: [[wn.knowledge:Home.md|Wiki1 homepage]]

todo lists

  • mark a task as complete/incomplete - C-Space
  • increase / decrease doneness (normal mode): gln / glp
  • search for all open tasks: :VWS /- \[ \] / then :lope, etc. (:VWS :VimwikiSearch)

backlinks

what links here?

run :VWB (which is short for :VimwikiBacklinks) and then :lope to see all references

you can go back and forth with :lnext and :lprevious

tags

tag syntax is like such: :tag-example:

Then :VimwikiRebuildTags and then you can :tag <autocomplete> to create a location list, or :VimiwikiGenerateTagLinks to create an index page of all tags

Resources

Clone this wiki locally