void-packages/templates/xbps-base-files/files/vim.sh
Juan RP f27cf5c2af Rename xbps-base-dirs to xbps-base-files.
Install some default configuation files by default, based on
Fedora and Archlinux.

--HG--
extra : convert_revision : 28a0ac3594338bbd761c8c68559d09d8e9aec54d
2009-03-27 12:34:11 +01:00

6 lines
248 B
Bash

if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then
[ -x //usr/bin/id ] || return
[ `//usr/bin/id -u` -le 100 ] && return
# for bash and zsh, only if no alias is already set
alias vi >/dev/null 2>&1 || alias vi=vim
fi