Zettelkästen
Getting started
There are various index notes to get started.
Navigation
Run gf or gF (same window) to visit these directories.
See https://vim.fandom.com/wiki/Open_file_under_cursor
Use the jumplist for quick back-and-forth navigation: :help jumplist
Make a mapping to your index file, e.g.:
nnoremap <Leader>ww :e C:/Users/Edwin\ Wenink/Documents/Notes/index.md<cr>
You can also navigate buffers (alternative mappings from vimunimpaired)
:bpreviousor[b:bnextor]b:bdfor deleting buffers from the buffer listls
Go to next or previous file in directory:
[f]f
Searching Notes
Vimgrep is a cross platform option, but very slow. Results populate the quickfix list.
I wrote my own "Notes grep" ( \n ) that uses ripgrep behind the scenes.
It also populates the quickfix list.
Navigate quickfix list:
:copenand:cclosefor opening the list:cnextand:cprevfor jumping to next/previous list item- :
cdo {cmd}to runcmdon every list item :ccto echo the current item:cc {nr}: to jump to item number and echo it:colderand:cnewerto also navigate older quickfix lists.:cfirstand[Q:clastand]Q
The unimpaired plugin provides default mappings for the quickfix list:
]qfor:cnext[qfor:cprev
Good refs: https://www.reddit.com/r/vim/comments/5oqu9t/best_way_to_search_all_files_in_current_directory/
Links for inspiration
https://joereynoldsaudio.com/2018/07/07/you-dont-need-vimwiki.html
https://dev.to/konstantin/taking-notes-in-vim-revisited-558k.html
TODO: https://github.com/jkramer/vim-checkbox