mirror of
https://github.com/vipul-sharma20/vim-cricket.git
synced 2026-06-28 08:23:07 +00:00
Vim plugin to get scores and commentary of live cricket matches
- Vim Script 100%
| .github | ||
| doc | ||
| plugin | ||
| .gitignore | ||
| README.md | ||
vim-cricket
Vim plugin to get scores and commentary of live Cricket matches
Installation
| Plugin Manager | Install with... |
|---|---|
| Pathogen | git clone https://github.com/vipul-sharma20/vim-cricket ~/.vim/bundle/vim-cricketRemember to run :Helptags to generate help tags |
| NeoBundle | NeoBundle 'vipul-sharma20/vim-cricket' |
| Vundle | Plugin 'vipul-sharma20/vim-cricket' |
| Plug | Plug 'vipul-sharma20/vim-cricket' |
| VAM | call vam#ActivateAddons([ 'vim-cricket' ]) |
| Dein | call dein#add('vipul-sharma20/vim-cricket') |
| minpac | call minpac#add('vipul-sharma20/vim-cricket') |
| manual | copy all of the files into your ~/.vim directory |
Documentation
:h vim-cricket
or check here
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
command! -bang -nargs=* GetLiveMatches call fzf#run({
\ 'source': GetMatchesFZF(),
\ 'sink': function('GetScoreFZF'),
\ 'options': '-x',
\ 'down': '30%'})
nnoremap <leader>gm :GetLiveMatches<cr>
Source
LICENSE
MIT
