aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-10-23 11:26:15 +1300
committerTom Ryder <tom@sanctum.geek.nz>2013-10-23 11:26:15 +1300
commitafe7f306f39f63c9ce2506df786d7b4281715733 (patch)
tree9910503fba249aec0fd24a0bcbd2796083ebc9c4
parentRemove double-up test (diff)
downloaddotfiles-afe7f306f39f63c9ce2506df786d7b4281715733.tar.gz
dotfiles-afe7f306f39f63c9ce2506df786d7b4281715733.zip
Replace Vim functions with simple aliases
-rw-r--r--bash/bashrc.d/vim.bash12
1 files changed, 3 insertions, 9 deletions
diff --git a/bash/bashrc.d/vim.bash b/bash/bashrc.d/vim.bash
index f6109602..cad63a46 100644
--- a/bash/bashrc.d/vim.bash
+++ b/bash/bashrc.d/vim.bash
@@ -4,13 +4,7 @@ if ! hash vim 2>/dev/null; then
fi
# If Vim exists on the system, use it instead of ex, vi, and view
-ex() {
- command vim -e "$@"
-}
-vi() {
- command vim "$@"
-}
-view() {
- command vim -R "$@"
-}
+alias ex='vim -e'
+alias vi='vim'
+alias view='vim -R'