Skip to content

farhanmustar/cs.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS.vim

  • Vim plugin to query cheat sheet from cheat.sh. This plugin is an alternative to cheat.sh-vim.
  • Do not forget to view cheat.sh intro page 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:
    :echo executable('curl')

Installation

  • Installation using Vundle.vim.

    Plugin 'farhanmustar/cs.vim'
  • Installation using vim-plug.

    Plug 'farhanmustar/cs.vim'

Features

  • Add :CS command to query cheat sheet.
    :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.
  • <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.

Demo

Demo gif