Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vimwiki [2019/02/16 03:49] paul [Searching] |
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 ==== | + | ===== Searching |
To search all files of current wiki use the the VimwikiSearch command: | To search all files of current wiki use the the VimwikiSearch command: | ||
- | < | + | < |
:VWS /pattern/ | :VWS /pattern/ | ||
</ | </ | ||
Line 18: | Line 18: | ||
Commands sheet: | Commands sheet: | ||
- | < | + | < |
- | /w/w : Make new entry for today, or go to today' | + | /w/w " |
- | /wi | + | /wi |
- | /w/i : Rebuild 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 * * * * ~/ | ||
+ | </ | ||
+ | |||
+ |