vim: add diary tools to vimwiki

This commit is contained in:
Mathieu Maret 2020-11-16 11:25:28 +01:00
parent 5ba86776ee
commit 5950c9e494
2 changed files with 17 additions and 1 deletions

View File

@ -1,6 +1,13 @@
= Main Task =
* [[TODO]]
* See Diary with :Diary . New entries with \w\w or with :Calendar
= Search =
Use :VWS /term/ to search.
Use :lopen to see all results
= Bookeen =
* [[Notes]]
* [[TODO]]
= Dev =
* [[Code Checker]]
* [[GCC]]

9
.vimrc
View File

@ -580,6 +580,15 @@ Plugin 'tpope/vim-dispatch'
" VimWiki
Plugin 'vimwiki/vimwiki'
let g:vimwiki_list=[{'path':'~/.vim/vimwiki'}]
Plugin 'mattn/calendar-vim'
" Use \w\w to create new diary entry.
" use :Diary to view all on them
command! Diary VimwikiDiaryIndex
augroup vimwikigroup
autocmd!
" automatically update links on read diary
autocmd BufRead,BufNewFile diary.wiki VimwikiDiaryGenerateLinks
augroup end
" Align
" eg. to align on the "=" do :'<,'>Align =