A simple vim plugin for Crowi
Currently supported APIs are as follows:
/_api/pages.create
With vim-plug,
Plug 'b4b4r07/vim-crowi', { 'on': 'CrowiCreate' }
Copy and paste these global variables to your .vimrc
,
let g:crowi#api_url = "http://your.crowi.wiki" " Change yours
let g:crowi#access_token = "abcdefghijklmnopqrstuvwxyz=" " Change yours
let g:crowi#filetypes = ['markdown'] " Limit file types that can be posted
let g:crowi#open_page = true " If true, open the page after posting
" Defaults to expand('/user/$USER/Memo/'.strftime("%Y/%m/%d", localtime()))
let g:crowi#default_create_path = '/user/b4b4r07/memo'
let g:crowi#browser_command = 'open' " In case of macOS
and then, run this command on your Vim command line:
:CrowiCreate
A Crowi page is created with the contents of the current buffer and open URL with the path in your browser!
MIT
b4b4r07