aboutsummaryrefslogblamecommitdiff
path: root/sh/shrc.d/vim.sh
blob: e91740821a7df0e4aebf5eaffec2a0f28f612c52 (plain) (tree)
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
command -v vim >/dev/null 2>&1 || return

# Define functions proper
ex() {
    vim -e "$@"
}
vi() {
    vim "$@"
}
view() {
    vim -R "$@"
}