This commit is contained in:
2017-01-02 12:10:47 -06:00
parent 4eb069cf26
commit 5324d3c9c5
4 changed files with 21 additions and 0 deletions

View File

@@ -191,6 +191,22 @@ execute pathogen#infect()
let g:vimwiki_list = [{'path': '~/Dropbox/Documents/vimwiki/vimwiki', 'path_html': '~/Dropbox/Documents/vimwiki/vimwiki_html/', 'auto_export':'1'}]
nnoremap <leader>wb :Vimwiki2HTMLBrowse<CR><CR>
let g:vimwiki_auto_checkbox = 1
function! VimwikiLinkHandler(link)
let link = a:link
if link =~# '^vfile:'
let link = link[1:]
else
return 0
endif
let link_infos = vimwiki#base#resolve_link(link)
if link_infos.filename == ''
echomsg 'Vimwiki Error: Unable to resolve link!'
return 0
else
exe 'e ' . fnameescape(link_infos.filename)
return 1
endif
endfunction
" }}
" Gist {{