vimcat : print syntax highlighted file to terminal
| script karma |
Rating 13/4,
Downloaded by 248
|
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| Rafael Kitover |
| |
| script type |
| utility |
| |
| description |
This script will convert a file to a highlighted version using ANSI escape codes and print it to your terminal, like cat only with colors.
This script is part of the vimpager project, which itself is available on vim.org here:
http://www.vim.org/scripts/script.php?script_id=1723
The project is hosted on GitHub, where you can file issues and submit pull requests:
https://github.com/rkitover/vimpager
ACKNOWLEDGEMENTS:
Most of the code in this script is not mine, I only fixed some minor OS compatibility issues.
The following people are responsible for this functionality:
Original vim script for highlighting with ANSI codes, AnsiHighlight by:
Matthew Wozniski (mjw@drexel.edu)
Original conversion to shell script by:
Magnus Woldrich: https://github.com/trapd00r/utils/blob/master/_v
Fixes to the highlighting code to make the utility actually usable (and not bleed the background color etc.) by:
krijesta: Chris Chambers <krijesta@google.com> |
| |
| install details |
chmod +x vimcat
mkdir ~/bin
mv vimcat ~/bin
add $HOME/bin to your PATH in your ~/.bashrc or other shell startup file. |
| |
script versions (upload new version)
Click on the package to download.
| vimcat |
1.7.9 |
2013-02-10 |
7.0 |
Rafael Kitover |
* reset fg color if no fg color is set (GitHub #56) (krijesta)
* use #!/usr/bin/env bash as the shebang |
| vimcat |
1.7.8 |
2012-12-31 |
7.0 |
Rafael Kitover |
* change shebang from /bin/sh to /bin/bash, as it's a bash script (GitHub Issue #53)
* use aixterm escapes for light non-bold colors (aroig: Abdó Roig-Maranges)
* reads ~/.vimcatrc if it exist for config (aroig: Abdó Roig-Maranges)
* disables writing to viminfo (aroig: Abdó Roig-Maranges)
* allow vimcat to read from stdin (krijesta: Chris Chambers) |
| vimcat |
1.7.7 |
2012-11-26 |
7.0 |
Rafael Kitover |
Initial upload |
ip used for rating: 184.72.91.94
|