add basic wiki and zettel structure

This commit is contained in:
Marty Oehme 2019-05-20 18:18:48 +02:00
parent 34f7cd7da9
commit 95d79cd39a

View file

@ -79,7 +79,7 @@ Plug 'junegunn/limelight.vim', { 'for': ['markdown', 'txt'], 'on': 'Goyo' } " pr
Plug 'rhysd/vim-grammarous', { 'for': ['markdown', 'txt'], 'on': 'Goyo' } " integrate vim with languagetool for grammar checking (needs java8)
" Note-Taking Workflow
Plug 'fcpg/vim-waikiki'
Plug 'lervag/wiki.vim'
Plug 'michal-h21/vim-zettel'
" For async completion
@ -141,6 +141,7 @@ function! Prose()
" PLUGIN: vim-textobj-sentence
" enable extended sentence textobject use on md and plaintext files
call textobj#sentence#init()
" hide the markdown cruft
set conceallevel=3
endfunction
" enable syntax highlighting for codeblocks WITHIN markdown
@ -151,6 +152,24 @@ autocmd FileType markdown,txt call Prose()
" or invoke it manually by writing :Prose
command! -nargs=0 Prose call Prose()
" PLUGIN: wiki.vim
let g:wiki_root = '~/projects/vim-notes'
" filetypes to automatically enable the plugin for, seems to take file endings
" rather than vim ft
let g:wiki_filetypes = ['md', 'mkd', 'markdown', 'wiki']
let g:wiki_link_extension = '.md'
let g:wiki_link_target_type = 'md'
" PLUGIN: vim-zettel
" gives nice short format of YYMMDDHHMM
let g:zettel_format = "%y%m%d%H%M"
" disable the standard key mappings of the plugin
let g:zettel_default_mappings = 0
augroup filetype_vimwiki
autocmd!
autocmd FileType markdown xmap <leader>z <Plug>ZettelNewSelectedMap
augroup END
" PLUGIN: vim-pencil
" set default wrap mode to hard - TODO test which mode works better for
" me, it seems hardmode has trouble with markdown lists (see issue #31)