Goodbye vimwiki

This commit is contained in:
EEva (JPotier) 2020-10-31 19:25:45 +02:00
parent c53ba05b59
commit 131a852eac

View file

@ -115,7 +115,6 @@ let
vim-terraform vim-terraform
vim-timedot vim-timedot
vimtex vimtex
vimwiki
] ++ extraPlugins; ] ++ extraPlugins;
# manually loadable by calling `:packadd $plugin-name` # manually loadable by calling `:packadd $plugin-name`
opt = [ opt = [
@ -225,35 +224,9 @@ let
" Set filetype tex for tikz files " Set filetype tex for tikz files
au BufNewFile,BufRead *.tikz set filetype=tex au BufNewFile,BufRead *.tikz set filetype=tex
" vimwiki stuff
" let g:vimwiki_global_ext = 0
" let g:vimwiki_conceallevel = 0
" let g:vimwiki_auto_chdir = 1
" let g:vimwiki_list = [
" \{'path': '~/zk/'},
" \{'path': '~/vimwiki/personal.wiki'}
" \]
" :autocmd FileType vimwiki map <leader>d :VimwikiMakeDiaryNote
" :autocmd FileType vimwiki Goyo 80x20
" Neuron stuff " Neuron stuff
let g:neuron_dir = "/home/eeva/zk/" let g:neuron_dir = "/home/eeva/zk/"
function! ToggleCalendar()
execute ":Calendar"
if exists("g:calendar_open")
if g:calendar_open == 1
execute "q"
unlet g:calendar_open
else
g:calendar_open = 1
end
else
let g:calendar_open = 1
end
endfunction
:autocmd FileType vimwiki map <leader>c :call ToggleCalendar()
" Thx Mats for the following " Thx Mats for the following
:cnoremap <C-A> <Home> :cnoremap <C-A> <Home>
:cnoremap <C-B> <Left> :cnoremap <C-B> <Left>
@ -283,3 +256,30 @@ let
${extraOptions} ${extraOptions}
''; '';
} }
# " vimwiki stuff
# " let g:vimwiki_global_ext = 0
# " let g:vimwiki_conceallevel = 0
# " let g:vimwiki_auto_chdir = 1
# " let g:vimwiki_list = [
# " \{'path': '~/zk/'},
# " \{'path': '~/vimwiki/personal.wiki'}
# " \]
# " :autocmd FileType vimwiki map <leader>d :VimwikiMakeDiaryNote
# " :autocmd FileType vimwiki Goyo 80x20
# "
# " function! ToggleCalendar()
# " execute ":Calendar"
# " if exists("g:calendar_open")
# " if g:calendar_open == 1
# " execute "q"
# " unlet g:calendar_open
# " else
# " g:calendar_open = 1
# " end
# " else
# " let g:calendar_open = 1
# " end
# " endfunction
# " :autocmd FileType vimwiki map <leader>c :call ToggleCalendar()