secret
Created

Base16 color schemes for Vim https://github.com/chriskempson/base16-vim

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
# Maintainer: aksr <aksr at t-com dot me>
# Contributor: Vorzard <vorzard at plexomat dot com>
pkgname=vim-base16-git
pkgver=20130520
pkgrel=1
pkgdesc="Base16 for Vim"
arch=('i686' 'x86_64')
url="https://github.com/chriskempson/base16-vim"
license=('unknown')
groups=(vim-plugins)
depends=(vim)
makedepends=('git')
install="vim-base16-git.install"
 
_gitroot=https://github.com/chriskempson/base16-vim.git
_gitname=base16-vim
 
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
 
if [[ -d "$_gitname" ]]; then
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
git clone "$_gitroot" "$_gitname"
fi
}
 
package() {
cd "$srcdir/$_gitname/colors"
install -d "$pkgdir/usr/share/vim/vimfiles/colors/"
install -D -m644 *.vim $pkgdir/usr/share/vim/vimfiles/colors/
}
 
# vim:set ts=2 sw=2 et:
vim-base16-git.install
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
post_install() {
echo "For Vim in terminal please ensure that you are using a base16 terminal theme:"
echo ""
echo " https://github.com/chriskempson/base16-xresources"
echo " https://github.com/chriskempson/base16-gnome-terminal"
echo " https://github.com/chriskempson/base16-xfce4-terminal"
echo ""
echo ""
echo "To use the dark theme ensure set background=dark is present in your ~/.vimrc file."
echo "Otherwise Vim will use the light variation by default."
echo ""
echo ""
echo "If you use a terminal theme designed to keep the 16 ANSI colors intact"
echo "(a \"256\" variation) and have successfully modified your 256 colorspace with"
echo "base16-shell you'll need to add the following to your ~/.vimrc before the"
echo "colorsheme declaration:"
echo ""
echo " let base16colorspace=256"
echo ""
echo "This will cause Vim to access the colors in the modified 256 colorspace."
echo "Please do not enable this simply because you have a 256 color terminal as"
echo "this will cause colors to be displayed incorrectly."
/bin/true
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.