Ⅰ. 插件描述
syntax highlight file for the rc shell scripting languageⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/rcshell-vim-own-character'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/rcshell-vim-own-character'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/rcshell-vim-own-character'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/rcshell.vim
Ⅳ. 文档说明
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 and 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
- Repository: http://github.com/weakish/rcshell.vim
- Issue tracker: https://github.com/weakish/rcshell.vim/issues
Credit
This is based on Andy Spencer'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.
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:
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]