Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vimwiki [2019/02/16 03:49]
paul [Searching]
vimwiki [2019/03/31 14:49] (current)
Line 1: Line 1:
-====== ​Vim Wiki ======+====== ​VimWiki ​======
  
 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: ​
-<​code>​+<​code ​vim>
 :VWS /pattern/ :VWS /pattern/
 </​code>​ </​code>​
Line 18: Line 18:
 Commands sheet: Commands sheet:
  
-<​code>​ +<​code ​vim
-/w/w     Make new entry for today, or go to today'​s entry +/w/w     " ​Make new entry for today, or go to today'​s entry 
-/wi      ​Go to diary index +/wi      ​" ​Go to diary index 
-/w/i     Rebuild diary index+/w/i     " ​Rebuild diary index
 </​code>​ </​code>​
 +
 +To insert my formatted date code as a header in a diary entry:
 +<code vim>
 +:put =strftime(\"​= %Y-%m-%d %A =\")
 +</​code>​
 +
 +===== 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 "​VimwikiAll2HTML"​ ~/​vimwiki/​index.wiki -c "​q"​
 +
 +rsync -avz -e  'ssh -v -i ~/​.ssh/​paul-diskstation' ​ \
 +    ~/​vimwiki_html/​* ​                               \
 +    disksta:/​volume1/​data/​paul_web --delete
 +</​code>​
 +    ​
 +This script is loaded as a cronjob with the following line:
 +    ​
 +<code bash>
 +*/1 * * * * ~/​paul_scripts/​update_wiki_html.sh
 +</​code>​
 +
 +
  • vimwiki.txt
  • Last modified: 2019/03/31 14:49
  • (external edit)