https://github.com/farhanmustar/cs.vim
Cheat.sh plugin for vim.
https://github.com/farhanmustar/cs.vim
cheat-sh cheatsheet cs-vim cth-sh vim vim-plugins
Last synced: over 1 year ago
JSON representation
Cheat.sh plugin for vim.
- Host: GitHub
- URL: https://github.com/farhanmustar/cs.vim
- Owner: farhanmustar
- License: mit
- Created: 2021-01-21T17:22:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-26T23:44:06.000Z (almost 4 years ago)
- Last Synced: 2025-01-31T03:27:13.358Z (over 1 year ago)
- Topics: cheat-sh, cheatsheet, cs-vim, cth-sh, vim, vim-plugins
- Language: Vim Script
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CS.vim
* Vim plugin to query cheat sheet from [cheat.sh](https://cheat.sh/). This plugin is an alternative to [cheat.sh-vim](https://github.com/dbeniamine/cheat.sh-vim).
* Do not forget to view ```cheat.sh``` [intro page](https://cheat.sh/:intro) to learn more about it.
* This plugin make use of ```curl``` application to query information directly from vim. Makesure curl is executable by vim.
* Execute this command in vim to check:
```vim
:echo executable('curl')
```
## Installation
* Installation using [Vundle.vim](https://github.com/VundleVim/Vundle.vim).
```vim
Plugin 'farhanmustar/cs.vim'
```
* Installation using [vim-plug](https://github.com/junegunn/vim-plug).
```vim
Plug 'farhanmustar/cs.vim'
```
## Features
* Add ```:CS``` command to query cheat sheet.
```vim
:CS python
```
* ```:CS``` also have autocomplete that utilize ```:list``` command from cheat.sh.
* Inside the result buffer there are ```>``` and ```<``` keyboard shortcut to move to next or previous answer.
* ```cs```key 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.
## Demo
