aboutsummaryrefslogtreecommitdiff
path: root/bash
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 /bash
parentOpenBSD TERM hack no longer needed (diff)
downloaddotfiles-0a8a5dacb8d990224e6e92b250a9c334da4fe980.tar.gz
dotfiles-0a8a5dacb8d990224e6e92b250a9c334da4fe980.zip
Vim/vi aliasing behavior
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/vim.bash5
1 files changed, 5 insertions, 0 deletions
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
+