Wiki

To sort Dates run:-

:VimwikiDiaryGenerateLinks

Diary file for today:-

:VimwikiMakeDiaryNote

Diary file for Yesterday:-

:VimwikiMakeYesterdayDiaryNote

The following css files need to be copied from ~/Dropbox/css to ~/Dropbox/Vim/wiki_html/ normalize.css skeleton.css style.css further instructions for creating the default.html template file can be found here wallabag

The skeleton and style css files have all some personal changes made, at a future date it my be better to combine them.

Don't use this as it breaks the wiki

"Set this option to 1 to automatically generate the HTML file when the
"corresponding wiki page is saved
let g:vimwiki_list = [{'path': '~/Dropbox/Vim/wiki/', 'auto_export': 1}]
The Diary page css is a inline style set from Dropbox/Vim/wiki/templates/diary.html and referenced by %template diary

Leader ws lists all wikis

I’ve recently switch to vim-plug, a lightweight Vim plugin manager.

It comes with a little .vimrc snippet which downloads the plugin, but it only works for Unix. I use Vim across all three platforms regularly, so I updated the snippet:

" Download and install vim-plug (cross platform).
if empty(glob(
    \ '$HOME/' . (has('win32') ? 'vimfiles' : '.vim') . '/autoload/plug.vim'))
  execute '!curl -fLo ' .
    \ (has('win32') ? '\%USERPROFILE\%/vimfiles' : '$HOME/.vim') . 
    \ '/autoload/plug.vim --create-dirs ' .
    \ 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
  autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
The above should work across all three major OSes, since Windows 10 recently received curl support. [[https://www.rosipov.com/blog/cross-platform-vim-plug-setup|Ruslan Osipov]]