fsharp-vim


Ⅰ. 插件描述

Syntax highlighting for F# in the VIM editor.

Ⅱ. 基本信息

创建日期:  2011-01-07
使用用户:  6
Github星:  10
插件作者:  Thomas Schank

Ⅲ. 安装方法

使用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

  1. Install pathogen
  2. to the given instructions.
  3. Presuming that .vim is your main git repository:

    1. change into .vim
    2. git submodule add git@github.com:DrTom/fsharp-vim.git bundle/fsharp
    3. commit the git parent project
  4. after optionally cloning the parent:

    1. do git submodule init
    2. and then git submodule update

Traditional Install.

Drop the contents into your ~/.vim directory as is.

Usage

Opening either *.fs or *.fsx should trigger syntax highlighting
automatically.

添加新评论