Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

cowsay.vim: vim plugin for cowsay - someone had to do it (maybe not)

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 doc
Octocat-spinner-32 plugin
Octocat-spinner-32 lscowfiles.sh
Octocat-spinner-32 package.json
Octocat-spinner-32 readme.md
readme.md

cowsay.vim

just vim saying cowsay

 ____________
< Cowsay.vim >
 ------------
        \    ,-^-.
         \   !oYo!
          \ /./=\.\______
               ##        )\/\
                ||-----w||
                ||      ||

               Cowth Vader

cowsay.vim is a simple wrapper to cowsay

Right now, cowsay.vim is pretty dumb. But it does it very well.

Commands

Commands

Commands below accepts arguments or visual range.

:Cowsay

Output the cow, a simple echo.

:Cowsay Wait what!?
 _____________
< Wait what!? >
 -------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

:Cow

Same as ':Cowsay', expect that it replaces the selected lines (if used in visual mode) or append what the cow said below the cursor.

Assume you're writing this fancy readme, and that you have the two paragraph here starting at line 48 and ending at line 52. Running :48,52Cow should replace the specified lines by...:

:48,52Cow
 _________________________________________
/ Same as ':Cowsay', expect that it       \
| replaces the selected lines (if used in |
| visual mode) or append what the cow     |
| said below the cursor.                  |
|                                         |
| Assume you're writing this fancy        |
| readme, and that you have the two       |
| paragraph here starting at line 48 and  |
\ ending at line 52.                      /
 -----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Visual range works too!

:CowComment

Same as ':Cow', expect that it also triggers :TComment if is installed.

:Cowfile

Switch default 'cowfile' to given argument. If no argument provided, then it displays the active one. Basic completion should be supported with all available cowfile (stored in /usr/local/share/cows)

Relatedly, you might want to run the lscowfile.sh script to see them all (there are some funny cowfile in there...)

Install

Via pathogen

cd ~/.vim/bundle
git://github.com/mklabs/vim-cowsay.git

Make sure to have cowsay installed and available in your path.

If not, simply copy and paste:

curl -o cowsay-3.03.tar.gz http://www.nog.net/~tony/warez/cowsay-3.03.tar.gz
tar xvzf cowsay-3.03.tar.gz
rm cowsay-3.03.tar.gz
cd cowsay-3.03/
./install.sh
rm -rf cowsay-3.03/

License & Acknowledgement

License: Same as Vim. See :help license.

Something went wrong with that request. Please try again.