Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
vimwiki [2019/01/08 21:39] paul created |
vimwiki [2020/01/10 17:07] (current) paul [Diary] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
Vim Wiki is the most awesome note taking app ever. | Vim Wiki is the most awesome note taking app ever. | ||
+ | |||
+ | ===== Searching ===== | ||
+ | |||
+ | To search all files of current wiki use the the VimwikiSearch command: | ||
+ | <code vim> | ||
+ | :VWS /pattern/ | ||
+ | </ | ||
+ | |||
+ | Then open a window to display the location list for the current window. | ||
+ | |||
+ | <code vim> :lopen </ | ||
+ | |||
+ | ===== Diary ===== | ||
+ | |||
+ | Commands sheet: | ||
+ | |||
+ | <code vim> | ||
+ | /w/w " | ||
+ | /wi " Go to diary index | ||
+ | /w/i " | ||
+ | </ | ||
+ | |||
+ | To insert my formatted date code as a header in a diary entry: | ||
+ | <code vim> | ||
+ | put =strftime(\" | ||
+ | </ | ||
+ | |||
+ | ===== VimWiki HTML ===== | ||
+ | |||
+ | ==== Publishing Vimwiki ==== | ||
+ | |||
+ | Syncing VimWiki with a webserver is done via a shell script that generates html files | ||
+ | for all the entries and then pushes them to the webserver via rsync. | ||
+ | |||
+ | <code bash> | ||
+ | vim -c " | ||
+ | |||
+ | rsync -avz -e 'ssh -v -i ~/ | ||
+ | ~/ | ||
+ | disksta:/ | ||
+ | </ | ||
+ | | ||
+ | This script is loaded as a cronjob with the following line: | ||
+ | | ||
+ | <code bash> | ||
+ | */1 * * * * ~/ | ||
+ | </ | ||
+ | |||
+ |