Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhartington/vim-typings
search for typings in vim!
https://github.com/mhartington/vim-typings
Last synced: 16 days ago
JSON representation
search for typings in vim!
- Host: GitHub
- URL: https://github.com/mhartington/vim-typings
- Owner: mhartington
- License: mit
- Created: 2016-04-28T20:56:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-11T02:39:01.000Z (over 8 years ago)
- Last Synced: 2024-12-07T17:44:26.223Z (19 days ago)
- Language: VimL
- Size: 824 KB
- Stars: 25
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# vim-typings
This is a Vim plugin for [typings/typings](https://github.com/typings/typings) command, which is dependency management tool for TypeScript .d.ts files.
![screen](screen.gif)
## How to install
### Requirements* `typings` command (`npm install -g typings`)
* [Shougo/unite.vim](https://github.com/Shougo/unite.vim)If you use NeoBundle, write the following into your .vimrc:
```vim
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.