home · contact · privacy
Export vim as default shell editor.
[config] / dotfiles_user_thinkpad / bashrc
index 06df74fed6a9a3c6c59829e26eb5870e37456a39..5cdcf22325ce27d1f22f7842539a043f16d1d54e 100644 (file)
@@ -3,6 +3,10 @@
 # Fancy colors for ls.
 alias ls="ls --color=auto"
 
+# Use vim as default editor for anything.
+export VISUAL=vim
+export EDITOR=$VISUAL
+
 # Blue prompt with time.
 PS1="\[\e[1;32m\][\\t \\u@\\h \\w]$\[\e[m\] "
 PS2="\[\e[1;32m\]>\[\e[m\] "