mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Simplify installation instructions
This commit is contained in:
61
README.mkd
61
README.mkd
@@ -47,66 +47,27 @@ In the screenshot above you can see:
|
|||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
Before installation, please check your Vim supports signs by running `:echo has('signs')`. `1` means you're all set; `0` means you need to install a Vim with signs support. If you're compiling Vim yourself you need the 'big' or 'huge' feature set. MacVim supports signs.
|
Install using your favourite package manager, or use Vim's built-in package support.
|
||||||
|
|
||||||
You install vim-gitgutter like any other vim plugin.
|
Vim:
|
||||||
|
|
||||||
##### Pathogen
|
|
||||||
|
|
||||||
```
|
```
|
||||||
cd ~/.vim/bundle
|
mkdir -p ~/.vim/pack/airblade/start
|
||||||
git clone git://github.com/airblade/vim-gitgutter.git
|
cd ~/.vim/pack/airblade/start
|
||||||
|
git clone https://github.com/airblade/vim-gitgutter.git
|
||||||
|
vim -u NONE -c "helptags vim-gitgutter/doc" -c q
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Voom
|
Neovim:
|
||||||
|
|
||||||
Edit your plugin manifest (`voom edit`) and add:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
airblade/vim-gitgutter
|
mkdir -p ~/.config/nvim/pack/airblade/start
|
||||||
|
cd ~/.config/nvim/pack/airblade/start
|
||||||
|
git clone https://github.com/airblade/vim-gitgutter.git
|
||||||
|
nvim -u NONE -c "helptags vim-gitgutter/doc" -c q
|
||||||
```
|
```
|
||||||
|
|
||||||
##### VimPlug
|
|
||||||
|
|
||||||
Place this in your .vimrc:
|
|
||||||
|
|
||||||
```viml
|
|
||||||
Plug 'airblade/vim-gitgutter'
|
|
||||||
```
|
|
||||||
|
|
||||||
Then run the following in Vim:
|
|
||||||
|
|
||||||
```
|
|
||||||
:source %
|
|
||||||
:PlugInstall
|
|
||||||
```
|
|
||||||
|
|
||||||
##### NeoBundle
|
|
||||||
|
|
||||||
Place this in your .vimrc:
|
|
||||||
|
|
||||||
```viml
|
|
||||||
NeoBundle 'airblade/vim-gitgutter'
|
|
||||||
```
|
|
||||||
|
|
||||||
Then run the following in Vim:
|
|
||||||
|
|
||||||
```
|
|
||||||
:source %
|
|
||||||
:NeoBundleInstall
|
|
||||||
```
|
|
||||||
|
|
||||||
##### No plugin manager
|
|
||||||
|
|
||||||
Copy vim-gitgutter's subdirectories into your vim configuration directory:
|
|
||||||
|
|
||||||
```
|
|
||||||
cd /tmp && git clone git://github.com/airblade/vim-gitgutter.git
|
|
||||||
cp -r vim-gitgutter/* ~/.vim/
|
|
||||||
```
|
|
||||||
|
|
||||||
See `:help add-global-plugin`.
|
|
||||||
|
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ CONTENTS *gitgutter*
|
|||||||
|
|
||||||
Introduction ................. |gitgutter-introduction|
|
Introduction ................. |gitgutter-introduction|
|
||||||
Installation ................. |gitgutter-installation|
|
Installation ................. |gitgutter-installation|
|
||||||
|
Windows ................. |gitgutter-windows|
|
||||||
Commands ..................... |gitgutter-commands|
|
Commands ..................... |gitgutter-commands|
|
||||||
Mappings ..................... |gitgutter-mappings|
|
Mappings ..................... |gitgutter-mappings|
|
||||||
Autocommand .................. |gitgutter-autocommand|
|
Autocommand .................. |gitgutter-autocommand|
|
||||||
@@ -36,49 +37,26 @@ The signs are always up to date and the plugin never saves your buffer.
|
|||||||
===============================================================================
|
===============================================================================
|
||||||
INSTALLATION *gitgutter-installation*
|
INSTALLATION *gitgutter-installation*
|
||||||
|
|
||||||
Pathogen:~
|
Use your favourite package manager, or use Vim's built-in package support.
|
||||||
>
|
|
||||||
cd ~/.vim/bundle
|
|
||||||
git clone git://github.com/airblade/vim-gitgutter.git
|
|
||||||
<
|
|
||||||
Voom:~
|
|
||||||
|
|
||||||
Edit your plugin manifest (`voom edit`) and add:
|
Vim:~
|
||||||
>
|
>
|
||||||
airblade/vim-gitgutter
|
mkdir -p ~/.vim/pack/airblade/start
|
||||||
|
cd ~/.vim/pack/airblade/start
|
||||||
|
git clone https://github.com/airblade/vim-gitgutter.git
|
||||||
|
vim -u NONE -c "helptags vim-gitgutter/doc" -c q
|
||||||
<
|
<
|
||||||
VimPlug:~
|
|
||||||
|
|
||||||
Place this in your .vimrc:
|
Neovim:~
|
||||||
>
|
>
|
||||||
Plug 'airblade/vim-gitgutter'
|
mkdir -p ~/.config/nvim/pack/airblade/start
|
||||||
|
cd ~/.config/nvim/pack/airblade/start
|
||||||
|
git clone https://github.com/airblade/vim-gitgutter.git
|
||||||
|
nvim -u NONE -c "helptags vim-gitgutter/doc" -c q
|
||||||
<
|
<
|
||||||
Then run the following in Vim:
|
|
||||||
>
|
|
||||||
:source %
|
|
||||||
:PlugInstall
|
|
||||||
<
|
|
||||||
NeoBundle:~
|
|
||||||
|
|
||||||
Place this in your .vimrc:
|
|
||||||
>
|
|
||||||
NeoBundle 'airblade/vim-gitgutter'
|
|
||||||
<
|
|
||||||
Then run the following in Vim:
|
|
||||||
>
|
|
||||||
:source %
|
|
||||||
:NeoBundleInstall
|
|
||||||
<
|
|
||||||
No plugin manager:~
|
|
||||||
|
|
||||||
Copy vim-gitgutter's subdirectories into your vim configuration directory:
|
|
||||||
>
|
|
||||||
cd tmp && git clone git://github.com/airblade/vim-gitgutter.git
|
|
||||||
cp vim-gitgutter/* ~/.vim/
|
|
||||||
<
|
|
||||||
See |add-global-plugin|.
|
|
||||||
|
|
||||||
|
|
||||||
|
===============================================================================
|
||||||
WINDOWS *gitgutter-windows*
|
WINDOWS *gitgutter-windows*
|
||||||
|
|
||||||
I recommend configuring vim-gitgutter with the full path to your git executable.
|
I recommend configuring vim-gitgutter with the full path to your git executable.
|
||||||
|
|||||||
Reference in New Issue
Block a user