rcshell.vim : syntax highlight file for the rc shell scripting language
| script karma
Downloaded by 822
Comments, bugs, improvements
script versions (upload new version)
|This is a syntax file for the rc shell scripting language.
For unix (not plan9) users, there are two slightly different rc available.
One is [plan9port][plan9port] and [9base][9base]'s version
and the other is Byron Rakitzis'
(as packaged by Debian and other *nix software distribution).
This syntax file is compatible with both versions.
- **Repository:** http://github.com/weakish/rcshell.vim
- **Issue tracker:** https://github.com/weakish/rcshell.vim/issues
This is based on [Andy Spencer][andy]'s work for the plan9 rc shell.
There is a minor trade off for maintain compatibility with two versions of rc mentioned above:
less powerful `(ba)sh like substitution` syntax error detection.
This is not related to syntax directly, but I think users who codes rc shell script in Vim may have interests.
If you want to use `rc` as the embedded shell in vim,
add the following lines to your .vimrc:
set shell=/usr/bin/rc\ -l
" or /bin/rc or /usr/local/bin/rc or /opt/local /bin/rc, etc
set shellpipe=>[2=1]\|\ tee
set shellredir=>%s\ >[2=1]
|Download the tarball here and do this:
tar --strip=1 -zxf path/to/master.tar.gz
Click on the package to download.
ip used for rating: 18.104.22.168
||- Detect rc shell via shebang.
- Provide a way to disable this syntax file.
||Rename rc.vim to rcshell.vim. Fix a bug that rcshell.vim detect will be overridden by M$ resource type.
||Adjust rcHereDoc pattern to get <<EOF >output highlighted correctly.
||I suggest all users to replace the old version. The old version is my poorly-reinvented wheel. This new version is based on Andy Spencer's work. Andy Spencer's syntax file is for p9p's rc and I made some minor changes to make it compatible with Byron Rakitzis' reimplementation too.