vim-zettel cheat sheet

2020-09-04 06:25

zettelkasten background

Refer to zettelkasten notes for information about the zettelkasten system itself

installation and setup

installation

vim-zettel requests a handful of other

Plug 'vimwiki/vimwiki'
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
Plug 'michal-h21/vim-zettel'

additionally you will need the siver searcher

brew install the_silver_searcher

configuration

let g:zettel_options = [{},
                        \{'zettelkasten':{'tags': ''},
                        \'template': '~/vimfiles/zettelkasten/template.tpl'},
                        \{}, {}, {}]

let g:zettel_format = "%y%m%d-%H%M-%title"

basic usage

z VISUAL create new wiki file using selected text in note title

[[ INSERT create a link to a note by searching for it

T NORMAL yank the current note filename and title as link

gZ NORMAL replace the file path under the cursor with a wiki link

commands

:ZettelNew [title] create a new note

:ZettelOpen full text search using FZF, keeping history

:ZettelINsertNote select notes using FZF and insert (use )

:ZettelBackLinks insert a list of notes that link to the current note

:ZettelInbox insert list of notes that no other notes link to

:ZettelGenerateLinks insert list of all wiki pages into current page

:ZettelGenerateTags insert list of tags and pages into current page

:ZettelSearch search and insert link ( [[ )

:ZettelYankName copy file and title as link ( T )

vimwiki commands

:VimwikiBacklinks display files that link to the current page :VimwikiCheckLinks display files that no other file links to

source: https://www.reddit.com/r/Zettelkasten/comments/fidaum/vimzettel_an_addon_for_the_vimwiki_addon_for_vim/