-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
45 lines (29 loc) · 1.31 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
This is a mirror of http://www.vim.org/scripts/script.php?script_id=2880
This is a syntax file for the rc shell scripting language.
## Compatibility
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.
[plan9port]: https://github.com/9fans/plan9port
[9base]: http://tools.suckless.org/9base
## Repository
- **Repository:** http://github.com/weakish/rcshell.vim
- **Issue tracker:** https://github.com/weakish/rcshell.vim/issues
## Credit
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.
[andy]: https://github.com/Andy753421
## Tips
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:
```vim
set shell=/usr/bin/rc\ -l
" or /bin/rc or /usr/local/bin/rc or /opt/local /bin/rc, etc
set shellcmdflag=-c
set shellpipe=>[2=1]\|\ tee
set shellredir=>%s\ >[2=1]
```