diff options
Diffstat (limited to 'bash/bashrc.d/vim.bash')
-rw-r--r-- | bash/bashrc.d/vim.bash | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/bash/bashrc.d/vim.bash b/bash/bashrc.d/vim.bash index b312591e..9b598192 100644 --- a/bash/bashrc.d/vim.bash +++ b/bash/bashrc.d/vim.bash @@ -1,7 +1,13 @@ # If Vim exists on the system, use it instead of ex, vi, and view if hash vim 2>/dev/null ; then - alias ex='vim -e' - alias vi='vim' - alias view='vim -R' + ex() { + command vim -e "$@" + } + vi() { + command vim "$@" + } + view() { + command vim -R "$@" + } fi |