Skip to content

hattya/vcs-info.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vcs-info.vim

vcs-info.vim is a Vim plugin to retrieve VCS information of the working directory where the currently edited file exists. It is inspired by Zsh's vcs_info.

image

image

image

image

image

Installation

Vundle

Plugin 'hattya/vcs-info.vim'

vim-plug

Plug 'hattya/vcs-info.vim'

dein.vim

call dein#add('hattya/vcs-info.vim')

Requirements

  • Vim 8.0+

Usage

let info = vcs_info#get()
if !empty(info)
  let s = info.head
  if info.action !=# ''
    let s .= ':' . info.action
  endif
endif

Testing

vcs-info.vim uses themis.vim for testing.

$ cd /path/to/vcs-info.vim
$ git clone https://github.com/thinca/vim-themis
$ ./vim-themis/bin/themis

License

vcs-info.vim is distributed under the terms of the MIT License.

Releases

No releases published

Packages

No packages published