sponsor Vim development Vim logo Vim Book Ad

git-flow-format : Formats Git Flow prefixed branch names to take less space in your status line.

 script karma  Rating 14/10, Downloaded by 1616  Comments, bugs, improvements  Vim wiki

created by
Ian Renyard
 
script type
utility
 
description
git-flow-format is a plugin for vim-airline, which formats a Git Flow branch name in order to shorten the prefixes and take up less space in your status line.

This is best shown with a couple of examples:

feature/new_thing --> F:new_thing
release/v1.0.0 --> R:v1.0.0
 
install details
git-flow-format can be installed with Pathogen in the normal way. Just clone this repo into your bundle directory:

git clone https://github.com/renyard/vim-git-flow-format.git ~/.vim/bundle/vim-git-flow-format

You can then configure vim-airline to use this format by adding the following line to your .vimrc:

let g:airline#extensions#branch#format = 'Git_flow_branch_format'
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
git-flow-format.zip 0.4 2015-05-19 7.4 Ian Renyard Updated the default prefixes in order to allow greater flexibility customization.
git-flow-format.zip 0.3 2015-05-19 7.4 Ian Renyard Optimized the loading of Git Flow config values.
git-flow-format.zip 0.2 2015-05-17 7.0 Ian Renyard Returns an empty string immediately when an empty string is input.
git-flow-format.zip 0.1 2015-05-17 7.4 Ian Renyard Initial upload
ip used for rating: 216.73.216.155

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github