commit 9734b118e6637e2aba1f00de39b3144aa4a88b2b
parent 6af454e1acdf740aca5642950e2069989338a24a
Author: Chris Bracken <chris@bracken.jp>
Date: Sat, 29 Aug 2020 08:57:44 -0700
Update vimwiki macros to better handle two wikis
Previously, jumping back from the home wiki to the work wiki via `kw`
worked but going from work to home wiki using `jw` wasn't. Adding the
wiki number fixes this.
Also adds shell syntax support for code snippets.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.vim/vimrc b/.vim/vimrc
@@ -96,13 +96,13 @@ let wiki_1.nested_syntaxes = {'c': 'c', 'c++': 'cpp'}
let wiki_2 = {}
let wiki_2.path = '~/Documents/gwiki/'
let wiki_2.path_html = '~/Documents/gwiki_html/'
-let wiki_2.nested_syntaxes = {'c++': 'cpp', 'dart': 'dart'}
+let wiki_2.nested_syntaxes = {'c++': 'cpp', 'dart': 'dart', 'sh': 'sh'}
let g:vimwiki_list = [wiki_1, wiki_2]
" Personal wiki diary index, new entry, task list
-nmap <leader>jw <Plug>VimwikiIndex
-nmap <leader>jd <Plug>VimwikiDiaryIndex
-nmap <leader>jn <Plug>VimwikiMakeDiaryNote
+nmap <leader>jw 1<Plug>VimwikiIndex
+nmap <leader>jd 1<Plug>VimwikiDiaryIndex
+nmap <leader>jn 1<Plug>VimwikiMakeDiaryNote
nmap <leader>jt :e ~/Documents/wiki/Tasks.wiki<CR>
" Work wiki diary index, new entry, task list