https://github.com/vipul-sharma20/vim-cricket
Vim plugin to get scores and commentary of live cricket matches
https://github.com/vipul-sharma20/vim-cricket
neovim neovim-plugin vim vim-plugin vimscript
Last synced: about 1 year ago
JSON representation
Vim plugin to get scores and commentary of live cricket matches
- Host: GitHub
- URL: https://github.com/vipul-sharma20/vim-cricket
- Owner: vipul-sharma20
- Created: 2019-06-12T15:23:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-13T19:34:38.000Z (almost 7 years ago)
- Last Synced: 2025-04-10T14:46:53.778Z (about 1 year ago)
- Topics: neovim, neovim-plugin, vim, vim-plugin, vimscript
- Language: Vim script
- Size: 7.81 KB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
vim-cricket
===========
Vim plugin to get scores and commentary of live Cricket matches

Installation
============
| Plugin Manager | Install with... |
| ------------- | ------------- |
| [Pathogen][1] | `git clone https://github.com/vipul-sharma20/vim-cricket ~/.vim/bundle/vim-cricket`
Remember to run `:Helptags` to generate help tags |
| [NeoBundle][2] | `NeoBundle 'vipul-sharma20/vim-cricket'` |
| [Vundle][3] | `Plugin 'vipul-sharma20/vim-cricket'` |
| [Plug][4] | `Plug 'vipul-sharma20/vim-cricket'` |
| [VAM][5] | `call vam#ActivateAddons([ 'vim-cricket' ])` |
| [Dein][6] | `call dein#add('vipul-sharma20/vim-cricket')` |
| [minpac][7] | `call minpac#add('vipul-sharma20/vim-cricket')` |
| manual | copy all of the files into your `~/.vim` directory |
Documentation
=============
`:h vim-cricket`
or check [here][9]
Commands
========
| Command | List |
| --- | --- |
| `GetMatches` | Fetches a list of live matches |
| `GetMatchesFZF` | Fetches a list of live matches (Note: this command needs fzf.vim) |
| `GetScore` | Fetches score of the match set as `g:match_id` |
| `ShowMatchInBrowser` | Opens the match set as `g:match_id` in browser |
I recommend you to check documentation for better understanding
### FZF Example
```vim
command! -bang -nargs=* GetLiveMatches call fzf#run({
\ 'source': GetMatchesFZF(),
\ 'sink': function('GetScoreFZF'),
\ 'options': '-x',
\ 'down': '30%'})
nnoremap gm :GetLiveMatches
```
Source
======
[Cricbuzz][8]
LICENSE
=======
MIT
[1]: https://github.com/tpope/vim-pathogen
[2]: https://github.com/Shougo/neobundle.vim
[3]: https://github.com/VundleVim/Vundle.vim
[4]: https://github.com/junegunn/vim-plug
[5]: https://github.com/MarcWeber/vim-addon-manager
[6]: https://github.com/Shougo/dein.vim
[7]: https://github.com/k-takata/minpac/
[8]: https://cricbuzz.com
[9]: https://github.com/vipul-sharma20/vim-cricket/tree/master/doc/vim-cricket.txt