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)
#!/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