aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/vim.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/vim.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
+