dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 2fa64264867c6387f8e7c64e30a1f6f6b3525dbe
parent 0f9fabf46d4156fa5db48e9816edf1cf3f88a25a
Author: Chris Bracken <chris@bracken.jp>
Date:   Sat, 21 May 2022 18:25:21 -0700

Refactor vimwiki shortcuts

Condense journal into main personal wiki. Delete unused wiki.

Diffstat:
M.vim/vimrc | 31++++++-------------------------
1 file changed, 6 insertions(+), 25 deletions(-)

diff --git a/.vim/vimrc b/.vim/vimrc @@ -123,25 +123,10 @@ let wiki_1 = {} let wiki_1.index = 'Home' let wiki_1.path = '~/Documents/personal.wiki/' let wiki_1.path_html = '~/Documents/personal.wiki_html/' -let wiki_1.nested_syntaxes = {'c': 'c', 'c++': 'cpp', 'shell': 'sh'} +let wiki_1.nested_syntaxes = {'c': 'c', 'c++': 'cpp', 'dart': 'dart', 'shell': 'sh'} let wiki_1.syntax = 'markdown' let wiki_1.ext = '.md' -let wiki_2 = {} -let wiki_2.index = 'Home' -let wiki_2.path = '~/Documents/google.wiki/' -let wiki_2.path_html = '~/Documents/google.wiki_html/' -let wiki_2.nested_syntaxes = {'c++': 'cpp', 'dart': 'dart', 'shell': 'sh'} -let wiki_2.syntax = 'markdown' -let wiki_2.ext = '.md' -let wiki_3 = {} -let wiki_3.index = 'Home' -let wiki_3.path = '~/Documents/journal.wiki/' -let wiki_3.path_html = '~/Documents/journal.wiki_html/' -let wiki_3.diary_rel_path = '' -let wiki_3.nested_syntaxes = {'c++': 'cpp', 'dart': 'dart', 'shell': 'sh'} -let wiki_3.syntax = 'markdown' -let wiki_3.ext = '.md' -let g:vimwiki_list = [wiki_1, wiki_2, wiki_3] +let g:vimwiki_list = [wiki_1] " Use Home.md for the diary index to match GitHub's main wiki page. let g:vimwiki_diary_index = 'Home' @@ -153,14 +138,10 @@ let g:vimwiki_global_ext = 0 let g:vimwiki_url_maxsave = 0 " Personal wiki index, diary, new entry. -nmap <leader>jw 1<Plug>VimwikiIndex -nmap <leader>jd 3<Plug>VimwikiDiaryIndex -nmap <leader>jn 3<Plug>VimwikiMakeDiaryNote - -" Work wiki index, diary, new entry. -nmap <leader>kw 2<Plug>VimwikiIndex -nmap <leader>kd 3<Plug>VimwikiDiaryIndex -nmap <leader>kn 3<Plug>VimwikiMakeDiaryNote +nmap <leader>jw <Plug>VimwikiIndex +nmap <leader>jd <Plug>VimwikiDiaryIndex +nmap <leader>jn <Plug>VimwikiMakeDiaryNote +nmap <leader>jg :VimwikiGoto " Wiki diary previous, next day. au FileType vimwiki nmap <leader>dp <Plug>VimwikiDiaryPrevDay