aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/vim.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-05-31 00:44:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-05-31 00:44:42 +1200
commitdeb74ddaf48652fd6352942ee56a0f40f05df81d (patch)
treec3a412f81815aae098ae1d21aeda934030d3264d /bash/bashrc.d/vim.bash
parentUse temp var for $* tests (diff)
downloaddotfiles-deb74ddaf48652fd6352942ee56a0f40f05df81d.tar.gz
dotfiles-deb74ddaf48652fd6352942ee56a0f40f05df81d.zip
Translate remaining aliases to functions
Diffstat (limited to 'bash/bashrc.d/vim.bash')
-rw-r--r--bash/bashrc.d/vim.bash12
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