aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/vim.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-10-13 17:43:25 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-10-13 17:43:25 +1300
commitdaf62af720e66f8059982bf3638d37534aba54aa (patch)
tree0567470ec0a169850e7585b6b38c3f27a49aa554 /bash/bashrc.d/vim.bash
parentFix alphabetical order (diff)
downloaddotfiles-daf62af720e66f8059982bf3638d37534aba54aa.tar.gz
dotfiles-daf62af720e66f8059982bf3638d37534aba54aa.zip
Remove some overzealous command checks
Diffstat (limited to 'bash/bashrc.d/vim.bash')
-rw-r--r--bash/bashrc.d/vim.bash13
1 files changed, 5 insertions, 8 deletions
diff --git a/bash/bashrc.d/vim.bash b/bash/bashrc.d/vim.bash
index e6b8e369..b312591e 100644
--- a/bash/bashrc.d/vim.bash
+++ b/bash/bashrc.d/vim.bash
@@ -1,10 +1,7 @@
-# Bail if no vim(1)
-if ! hash vim 2>/dev/null ; then
- return
-fi
-
# If Vim exists on the system, use it instead of ex, vi, and view
-alias ex='vim -e'
-alias vi='vim'
-alias view='vim -R'
+if hash vim 2>/dev/null ; then
+ alias ex='vim -e'
+ alias vi='vim'
+ alias view='vim -R'
+fi