aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/vim.bash
blob: f61096024e9058a45c9e36c01fb8442d382d5a5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Bail if no vim(1)
if ! hash vim 2>/dev/null; then
    return
fi

# If Vim exists on the system, use it instead of ex, vi, and view
ex() {
    command vim -e "$@"
}
vi() {
    command vim "$@"
}
view() {
    command vim -R "$@"
}