commit a0c20c1edb3a59d4dd6eb1c826fdf0cfce2a32f7
parent d28b15a67337b50864371e06bea0977bb0937f08
Author: oscarbenedito <oscar@oscarbenedito.com>
Date: Sun, 3 May 2020 22:53:43 +0200
Vimwiki added
Diffstat:
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/dot_config/nvim/init.vim b/dot_config/nvim/init.vim
@@ -14,6 +14,7 @@ Plug 'sheerun/vim-polyglot' " languages syntax
Plug 'tpope/vim-surround' " surrounding objects
Plug 'tpope/vim-commentary' " easily comment objects
Plug 'tpope/vim-fugitive' " git wrapper
+Plug 'vimwiki/vimwiki'
call plug#end()
" /plugins }}}
@@ -137,10 +138,16 @@ set laststatus=2 " activate status line
" templates {{{
nnoremap <Leader>sh :-1read $XDG_CONFIG_HOME/nvim/templates/shebang.sh<CR>:w<CR>:e<CR>j
-nnoremap <Leader>texs :-1read $XDG_CONFIG_HOME/nvim/templates/summary.tex<CR>
-nnoremap <Leader>texg :-1read $XDG_CONFIG_HOME/nvim/templates/tex.gitignore<CR>
-nnoremap <Leader>texm :-1read $XDG_CONFIG_HOME/nvim/templates/tex.Makefile<CR>
+nnoremap <Leader>latexs :-1read $XDG_CONFIG_HOME/nvim/templates/summary.tex<CR>
+nnoremap <Leader>latexg :-1read $XDG_CONFIG_HOME/nvim/templates/tex.gitignore<CR>
+nnoremap <Leader>latexm :-1read $XDG_CONFIG_HOME/nvim/templates/tex.Makefile<CR>
" /templates }}}
runtime shortcuts.vim
+
+let g:vimwiki_list = [{ 'path': '~/Documents/wiki', 'path_html': '~/Documents/wiki/build/html', 'custom_wiki2html': '~/Documents/wiki/build/sonic-screwdriver.py', 'syntax': 'markdown', 'ext': '.md' }]
+let g:vimwiki_folding = 'expr'
+autocmd FileType vimwiki set foldlevel=1
+
+:nmap <Leader>t <Plug>VimwikiVSplitLink
diff --git a/dot_config/zsh/aliases.tmpl b/dot_config/zsh/aliases.tmpl
@@ -18,6 +18,8 @@ alias v="nvim"
alias vim="nvim"
alias ..="cd .."
alias ...="cd ../.."
+alias vw="cd $HOME/Documents/wiki && vim index.md"
+alias bvw="firefox $HOME/Documents/wiki/build/html/index.html"
{{- if ne .chezmoi.hostname "fme-desktop" }}
diff --git a/meta/shortcuts/directories b/meta/shortcuts/directories
@@ -2,3 +2,4 @@
dc $HOME/Documents
dg $HOME/Git
dw $HOME/Downloads
+dvw $HOME/Documents/wiki