- Vim plugin to query cheat sheet from cheat.sh. This plugin is an alternative to cheat.sh-vim.
- Do not forget to view
cheat.shintro page to learn more about it. - This plugin make use of
curlapplication to query information directly from vim. Makesure curl is executable by vim. - Execute this command in vim to check:
:echo executable('curl')
-
Installation using Vundle.vim.
Plugin 'farhanmustar/cs.vim'
-
Installation using vim-plug.
Plug 'farhanmustar/cs.vim'
- Add
:CScommand to query cheat sheet.:CS python :CSalso have autocomplete that utilize:listcommand from cheat.sh.- Inside the result buffer there are
>and<keyboard shortcut to move to next or previous answer. <leader>cskey binding :-normal mode- automatically add query for the word under the curso and put you in command mode.visual mode- automatically add query for the word highlighted and put you in command mode.
- space in query is automatically converted to
+as per cheat.sh specification.
