Vim plugin to get scores and commentary of live cricket matches
  • Vim Script 100%
Find a file
2019-06-14 01:04:19 +05:30
.github add: issue template 2019-06-12 20:45:27 +05:30
doc add: vimdoc 2019-06-12 20:39:19 +05:30
plugin fix: no score scenario 2019-06-14 01:04:19 +05:30
.gitignore add: gitignore 2019-06-12 20:42:19 +05:30
README.md fix: grammar 2019-06-12 20:57:19 +05:30

vim-cricket

Vim plugin to get scores and commentary of live Cricket matches

Demo

Installation

Plugin Manager Install with...
Pathogen git clone https://github.com/vipul-sharma20/vim-cricket ~/.vim/bundle/vim-cricket
Remember 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

Cricbuzz

LICENSE

MIT