]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
awesome: update rule for sensation editor
[dotfiles.git] / vim / vimrc
index 47529e3c4152be3ef740ad6b43c02943ae205013..522c20b7478aea2fa8aaa530a85d0ccf80d26c48 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -73,6 +73,7 @@ Plugin 'derekwyatt/vim-protodef'
 " Plugin 'jeaye/color_coded'
 " Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp
 Plugin 'wincent/loupe'
 " Plugin 'jeaye/color_coded'
 " Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp
 Plugin 'wincent/loupe'
+Plugin 'Ram-Z/vimwiki'
 
 call vundle#end()
 
 
 call vundle#end()
 
@@ -741,6 +742,14 @@ xmap T <Plug>Sneak_T
 omap t <Plug>Sneak_t
 omap T <Plug>Sneak_T
 
 omap t <Plug>Sneak_t
 omap T <Plug>Sneak_T
 
+" vimviki {{{2
+let g:vimwiki_list = [{'path': '$XDG_DATA_HOME/vimwiki'}]
+let g:vimwiki_auto_chdir = 1
+augroup myvimwiki
+  au! BufRead      $XDG_DATA_HOME/vimwiki/index.wiki !git pull
+  au! BufWritePost $XDG_DATA_HOME/vimwiki/*.wiki     exe '!git add "<afile>";git commit -m"' . strftime("%FT%R") . '";git push'
+augroup END
+
 " functions {{{1
 
 " Convenient command to see the difference between the current buffer and the
 " functions {{{1
 
 " Convenient command to see the difference between the current buffer and the