home · contact · privacy
Export vim as default shell editor.
[config] / dotfiles_root / bashrc
index 27d5103bd4ce06defb6032ad8f5c9607f7e9c958..64ba97b689b0b6b3c40b33015ee3b60721a9449a 100644 (file)
@@ -1,11 +1,12 @@
 # plomlompom's bashrc for non-login shells (root)
 
-# Environment variables.
-export EDITOR=nano
-
 # Fancy colors for ls.
 alias ls="ls --color=auto"
 
+# Use vim as default editor for anything.
+export VISUAL=vim
+export EDITOR=$VISUAL
+
 # Red prompt with time.
 PS1="\[\e[1;31m\][\\t \\u@\\h \\w]$\[\e[m\] "
 PS2="\[\e[1;31m\]>\[\e[m\] "