ex-typescript


Ⅰ. 插件描述

Typescript syntax files for Vim

Ⅱ. 基本信息

创建日期:  2012-10-02
使用用户:  9
Github星:  0
插件作者:  exvim

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'exvim/ex-typescript'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'exvim/ex-typescript'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'exvim/ex-typescript'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/exvim/ex-typescript

Ⅳ. 文档说明

Typescript Syntax for Vim

Syntax file and compiler settings for TypeScript. The syntax file is taken
from this blog post.

Install

The simplest way to install is via a Vim add-in manager such as Vundle
or Pathogen.

If you want to install manually then you need to copy the files from this repository into your vim path,
see the vim docs for :help runtimepath
for more information. This might be as simple as copying the files and directories to ~/.vim/ but it
depends on your Vim install and operating system.

Usage

Once the files are installed the syntax highlighting and compiler settings will be automatically enabled anytime you
edit a .ts file.

Compiler settings

The compiler settings enable you to call the tsc compiler directly from Vim and display any errors or warnings
in Vim's QuickFix window.

To run the compiler, enter :make, this will run tsc against the last saved version of your currently edited file.

Note, you can use something like this in your .vimrc to make the QuickFix window automatically appear
if :make has any errors.

autocmd QuickFixCmdPost [^l]* nested cwindow
autocmd QuickFixCmdPost    l* nested lwindow

Obligatory screenshot

My Changes

  • Disable the fold function of typescript in syntax/typescript.vim

添加新评论