vim-gitignore


Ⅰ. 插件描述

Gitignore plugin for Vim

Ⅱ. 基本信息

创建日期:  2015-05-27
使用用户:  38
Github星:  18
插件作者:  Huanming Peng

Ⅲ. 安装方法

使用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 .gitignore file.
  • The snippets are based on github's gitignore files.

Requirements

Installation

Snippets List

  • See the list in List.
  • If you find that the snippets are not keeping up with the gitignore repo,
  1. can manually execute the script rebuild-snippets

to rebuild snippets.

Snippets Usage

  • vim-gitignore contains a set of snippets. To use snippets,
  1. open your .gitignore file, 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 at

http://www.apache.org/licenses/LICENSE-2.0

Unless 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.

添加新评论