Ⅰ. 插件描述
Syntax Rules for Microsoft HLSL and FX filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/fx-hlsl'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/fx-hlsl'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/fx-hlsl'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/FX-HLSL
Ⅳ. 文档说明
These rules provide syntax hilighting and a set of useful "iabbrev" macros for use when writing HLSL (High Level Shading Language) code for DirectX 9 and above. File types includ e.hlsl and .fx -- the abbreviations are provided to reate template declarations for various tweakable data types in FX, including floats, float vectors, matrices, textures and samplers, render passes, etc. They are found defined at the end of the file.
Finally, the shiftwidth is set to 4 to match common shading-language editing tools such as the defaults for Visual Studio.NET and NVIDIA FX Composer.