aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-22 15:48:08 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-22 15:48:08 +1200
commit0a8a5dacb8d990224e6e92b250a9c334da4fe980 (patch)
tree1d98b1b980d6c4ed1e969a444d428d4e41eddc12
parentOpenBSD TERM hack no longer needed (diff)
downloaddotfiles-0a8a5dacb8d990224e6e92b250a9c334da4fe980.tar.gz
dotfiles-0a8a5dacb8d990224e6e92b250a9c334da4fe980.zip
Vim/vi aliasing behavior
-rw-r--r--.gitignore1
-rw-r--r--bash/bashrc.d/vim.bash5
2 files changed, 6 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index a470e304..5a749c56 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,6 +13,7 @@ bash/bashrc.d/*
!bash/bashrc.d/sprunge.bash
!bash/bashrc.d/ssh.bash
!bash/bashrc.d/tmux.bash
+!bash/bashrc.d/vim.bash
gnupg/*
!gnupg/*.conf
mutt/muttrc.alternates
diff --git a/bash/bashrc.d/vim.bash b/bash/bashrc.d/vim.bash
new file mode 100644
index 00000000..3ebfb66e
--- /dev/null
+++ b/bash/bashrc.d/vim.bash
@@ -0,0 +1,5 @@
+# If Vim exists on the system, alias vi to it
+if hash vim 2>/dev/null; then
+ alias vi='vim'
+fi
+