https://github.com/babarot/vim-crowi
A simple vim plugin for Crowi
https://github.com/babarot/vim-crowi
crowi vim
Last synced: over 1 year ago
JSON representation
A simple vim plugin for Crowi
- Host: GitHub
- URL: https://github.com/babarot/vim-crowi
- Owner: babarot
- Archived: true
- Created: 2017-02-14T18:04:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-08T15:04:37.000Z (about 9 years ago)
- Last Synced: 2025-02-10T08:01:43.428Z (over 1 year ago)
- Topics: crowi, vim
- Language: Vim script
- Homepage: http://site.crowi.wiki/
- Size: 2.93 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
vim-crowi
========
A simple vim plugin for [Crowi](https://github.com/crowi/crowi)
Currently supported APIs are as follows:
- `/_api/pages.create`
## Install
With [vim-plug](https://github.com/junegunn/vim-plug),
```vim
Plug 'b4b4r07/vim-crowi', { 'on': 'CrowiCreate' }
```
## Usage
Copy and paste these global variables to your `.vimrc`,
```vim
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!
## License
MIT
## Author
b4b4r07