Ⅰ. 插件描述
Gitignore plugin for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'gisphm/vim-gitignore-be-who-we-are'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'gisphm/vim-gitignore-be-who-we-are'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'gisphm/vim-gitignore-be-who-we-are'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/gisphm/vim-gitignore
Ⅳ. 文档说明
Vim gitignore plugin
- This plugin provides syntax highlighting and up-to-date code snippets for
.gitignorefile. - The snippets are based on github's gitignore files.
Requirements
- For using code snippets you should install
snipMate, neosnippet, or ultisnips first.
Installation
- Using vundle, or neobundle, or other options.
Plugin 'gisphm/vim-gitignore'NeoBundle 'gisphm/vim-gitignore'
Snippets List
- can manually execute the script rebuild-snippets
to rebuild snippets.
Snippets Usage
vim-gitignorecontains a set of snippets. To use snippets,
- open your
.gitignorefile, type in proper snippet name
(for example, Python, or Vim)
and press <Tab> key or other key defined in your vimrc,
which will expand snippets.
TODO
- [x] add indent file
[ ] add more highlighting in syntax file
- [x] basic highlight
- [ ] self-defined color
Alternative Option
You can also follow gitignore.io to generate .gitignore file in your project.
Contributions
Any issue or pull request is welcome.
License
Copyright 2015 gisphm <phmfk@hotmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License atUnless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.