Ⅰ. 插件描述
Syntax highlighting for F# in the VIM editor.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'drtom/fsharp-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'drtom/fsharp-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'drtom/fsharp-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/drtom/fsharp-vim
Ⅳ. 文档说明
Vim Syntax Highlighting for F# (FSharp)
This is a merge of the vim-included OCAML syntax files and the [vim
F# files from Choy Rim](http://www.vim.org/scripts/script.php?script_id=2162). I had
some issues with the latter, and therefore this project exists at
all.
The F# syntax highlighting is sufficient for the occasional hacking
under Linux/Mac (for heavy .NET interaction I'd recommend VisualStudio
with the VsVim Plugin). However,
the highlighting is not perfect. I'm not an expert in vim
syntax-highlighting nor do I have the resources to become one.
Anybody more qualified then myself and willing to take over
responsibility and maintain this package is welcome to do so.
Installing
As a Git-submodule with Pathogen
- Install pathogen
- to the given instructions.
Presuming that
.vimis your main git repository:- change into
.vim git submodule add git@github.com:DrTom/fsharp-vim.git bundle/fsharp- commit the git parent project
- change into
after optionally cloning the parent:
- do
git submodule init - and then
git submodule update
- do
Traditional Install.
Drop the contents into your ~/.vim directory as is.
Usage
Opening either *.fs or *.fsx should trigger syntax highlighting
automatically.