vim-typings


Ⅰ. 插件描述

search for typings in vim!

Ⅱ. 基本信息

创建日期:  2016-04-28
使用用户:  8
Github星:  23
插件作者:  Mike Hartington

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-typings

This is a Vim plugin for typings/typings command, which is dependency management tool for TypeScript .d.ts files.

screen

How to install

Requirements

If you use NeoBundle, write the following into your .vimrc:

NeoBundle 'Shougo/unite.vim'
NeoBundle 'mhartington/vim-typings'

And execute :NeoBundleInstall command in your Vim, you can get unite.vim and vim-typings.

How to use

Unite Source

vim-typings has an Unite source.

Execute :Unite typings, so you can get candidates for installable .d.ts files.
Hit enter on selected candidate, so the .d.ts file get installed.

You can execute with keyword. e.g. :Unite typings:angular(it's same typings search angular in terminal).

Commands

This plugin provides the following commands:

  • :TypingsInstall file_name1 file_name2 ...: Install .d.ts files.
  • :TypingsUninstall file_name1 file_name2 ...: Uninstall .d.ts files.
  • :TypingsInit : Create typings.json.
  • :TypingsFetch : Fetch from remote repository
  • :TypingsUpdate : Update all .d.ts files.

License

This software is released under the MIT License, see LICENSE.txt.

添加新评论