Back to Spacevim

SpaceVim VersionControl layer

docs/layers/VersionControl.md

2.4.01.8 KB
Original Source

Available Layers >> VersionControl

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

Description

This layer provides general functions for version control. It should work with all VC backends such as Git, Mercurial, Bazaar, SVN, etc.

Features

  • Show a diff using Vim its sign column
  • Show vcs info on statusline

Install

To use this configuration layer, update custom configuration file with:

toml
[[layers]]
  name = "VersionControl"

Layer options

enable-gtm-status: Enable displaying time spent within SpaceVim's statusline. This feature needs gtm command to be installed.

Key bindings

Key BindingDescription
SPC g .version control transient-state

Version Control Transient-state

Key BindingDescription
wStage file
uUnstage file
nnext hunk
N/pprevious hunk
ttoggle diff signs
lShow repo log
DShow diffs of unstaged hunks
fFetch for repo with popup
FPull repo with popup
PPush repo with popup
cCommit with popup
CCommit

Unimpaired bindings

Key BindingDescription
[ cGo to the previous vcs hunk
] cGo to the next vcs hunk