Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 832 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 832 Bytes

vimwiki-sync

This is a fork of vimwiki-sync, the original plugin automatically synchronised Vimwiki notes into a local git repository, with all changed files being automatically committed. This fork provides several improvements. These include:

  • Fully handle all supported (configured) extension and wiki paths
  • Refactored vimscript
  • Asynchronous operations (depends on vim-dispatch, and your personal sync.sh in notes directory)

A sample of sync.sh

#!/bin/bash

gstatus=`git status --porcelain`

# chdir to the directory of the script
cd "$(dirname "${BASH_SOURCE[0]}")

if [ ${#gstatus} -ne 0 ]
then
    git add --all
    git commit -m "Auto update: $gstatus"
    git pull --rebase
    git push
fi