aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/vim.bash
blob: 9b598192be8ebd65e785513363bd28835dfb0c55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# If Vim exists on the system, use it instead of ex, vi, and view
if hash vim 2>/dev/null ; then
    ex() {
        command vim -e "$@"
    }
    vi() {
        command vim "$@"
    }
    view() {
        command vim -R "$@"
    }
fi