aboutsummaryrefslogblamecommitdiff
path: root/bash/bashrc.d/vim.bash
blob: ccfbcb01acce46fa605c2d42e37a59a4ad5c3aa4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                 

                                
  
 

                         
               

      
            

        
               

 
# If Vim exists on the system, use it instead of ex, vi, and view
if ! hash vim 2>/dev/null ; then
    return
fi

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