sponsor Vim development Vim logo Vim Book Ad

cheat : Yac (Yet Another Cheat)

 script karma  Rating 8/2, Downloaded by 665  Comments, bugs, improvements  Vim wiki

created by
Jinzhu Zhang
 
script type
syntax
 
description
== What's Yac
Yet Another Cheet (Powered By Ruby)
== What's the script
the Syntax Highlight
== How To Use The Yac

=== To initialize repositories:
    $ yac init
=== To get a cheat sheet:
    $ yac [cheatsheet]
=== To edit a cheat sheet
    $ yac edit [cheatsheet]
=== To add a cheat sheet
    $ yac add [cheatsheet]
=== To rm a cheat sheet
    $ yac rm [cheatsheet]
=== Search according the sheets name
    $ yac name [keyword]
=== Search according the sheets content
    $ yac content [keyword]
=== Update repositories
    $ yac update main  => Update main repository
    $ yac update private => Update private repository
    $ yac update => Update All
=== Help
    $ yac help
=== Shell
    $ yac shell main => Open the main repository's shell
    $ yac shell => Open the private repository's shell
=== Documents format
   Use .ch as the suffix ,At the beginning of the row,plus N = for the N-class title
   Use '#' at the beginning of a row to comment the line,You can use '\#' to get '#'
   Use three @ wrap some words to highlight it,for example: @@\@ HI @@\@ (remove the \) will highlight HI
=== Set the color of highlight
   Default use .yacrc under home directory to set,, details, see the example file under the resources directory
=== Others
   Add @ before [cheatsheet]/[keyword] will only search the main depot
   See also the source code to get more sexy ways

== Author: Jinzhu Zhang : http://www.zhangjinzhu.com /  wosmvp (no-spam) gmail (no-spam) com

 
install details
drop it to syntax directory

add below to vimrc

augroup filetypedetect
au! BufNewFile,BufRead *.ch setf cheat
augroup END
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
cheat.vim 0.2 2008-11-20 7.0 Jinzhu Zhang Update for new version yac.
cheat.vim 0.1 2008-10-11 7.0 Jinzhu Zhang Initial upload
ip used for rating: 18.118.1.158

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github