aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+