add basic wiki and zettel structure
This commit is contained in:
parent
34f7cd7da9
commit
95d79cd39a
1 changed files with 20 additions and 1 deletions
|
@ -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)
|
Plug 'rhysd/vim-grammarous', { 'for': ['markdown', 'txt'], 'on': 'Goyo' } " integrate vim with languagetool for grammar checking (needs java8)
|
||||||
|
|
||||||
" Note-Taking Workflow
|
" Note-Taking Workflow
|
||||||
Plug 'fcpg/vim-waikiki'
|
Plug 'lervag/wiki.vim'
|
||||||
Plug 'michal-h21/vim-zettel'
|
Plug 'michal-h21/vim-zettel'
|
||||||
|
|
||||||
" For async completion
|
" For async completion
|
||||||
|
@ -141,6 +141,7 @@ function! Prose()
|
||||||
" PLUGIN: vim-textobj-sentence
|
" PLUGIN: vim-textobj-sentence
|
||||||
" enable extended sentence textobject use on md and plaintext files
|
" enable extended sentence textobject use on md and plaintext files
|
||||||
call textobj#sentence#init()
|
call textobj#sentence#init()
|
||||||
|
" hide the markdown cruft
|
||||||
set conceallevel=3
|
set conceallevel=3
|
||||||
endfunction
|
endfunction
|
||||||
" enable syntax highlighting for codeblocks WITHIN markdown
|
" enable syntax highlighting for codeblocks WITHIN markdown
|
||||||
|
@ -151,6 +152,24 @@ autocmd FileType markdown,txt call Prose()
|
||||||
" or invoke it manually by writing :Prose
|
" or invoke it manually by writing :Prose
|
||||||
command! -nargs=0 Prose call 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
|
" PLUGIN: vim-pencil
|
||||||
" set default wrap mode to hard - TODO test which mode works better for
|
" 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)
|
" me, it seems hardmode has trouble with markdown lists (see issue #31)
|
||||||
|
|
Loading…
Reference in a new issue