zk.vim/plugin/zkvim.vim

19 lines
543 B
VimL
Raw Normal View History

2023-12-11 13:25:28 +00:00
" Title: zkvim
" Description: Allows usage of the `zk` command from within Vim.
if exists('g:loaded_zk_vim')
finish
endif
let g:loaded_zk_vim = 1
if ! exists('g:loaded_fzf')
echo 'fzf is not loaded. zk.vim relies on fzf, please ensure it is installed and loaded correctly.'
finish
endif
" Zsearch allows you to search for a Zettel and creates a link to the selected
" Zettel at your cursor
command! -nargs=0 Zsearch call zkvim#zsearch()
command! -nargs=0 Znew call zkvim#znew()
command! -nargs=1 Zinsertnew call zkvim#zinsertnew(<args>)