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/12 14:05]
paul [Searching]
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 ====+===== 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 12: Line 12:
 Then open a window to display the location list for the current window. Then open a window to display the location list for the current window.
  
-<code> :lopen </code>+<code vim> :lopen </code>
  
 ===== Diary ===== ===== Diary =====
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 =\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.1549980317.txt.gz
  • Last modified: 2019/02/12 14:05
  • by paul