Differences

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

Link to this comparison view

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 ======+====== VimWiki ======
  
 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/
 +</code>
 +
 +Then open a window to display the location list for the current window.
 +
 +<code vim> :lopen </code>
 +
 +===== Diary =====
 +
 +Commands sheet:
 +
 +<code vim>
 +/w/w     " Make new entry for today, or go to today's entry
 +/wi      " Go to diary index
 +/w/i     " Rebuild diary index
 +</code>
 +
 +To insert my formatted date code as a header in a diary entry:
 +<code vim>
 +put =strftime(\"= %Y-%m-%d %A =\n\n== TODO ==\n\n== Day Log==\")
 +</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.1546983573.txt.gz
  • Last modified: 2019/01/08 21:39
  • by paul