From: Christian Heller Date: Thu, 10 Dec 2015 20:31:12 +0000 (+0100) Subject: Export vim as default shell editor. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/day_todos?a=commitdiff_plain;h=0b189022dd1e67d1a5c1165da0e65c100ad9fe40;p=config Export vim as default shell editor. --- diff --git a/dotfiles_root/bashrc b/dotfiles_root/bashrc index 3f4f8a3..64ba97b 100644 --- a/dotfiles_root/bashrc +++ b/dotfiles_root/bashrc @@ -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 + # Red prompt with time. PS1="\[\e[1;31m\][\\t \\u@\\h \\w]$\[\e[m\] " PS2="\[\e[1;31m\]>\[\e[m\] " diff --git a/dotfiles_user_server/bashrc b/dotfiles_user_server/bashrc index 8037b1b..2409091 100644 --- a/dotfiles_user_server/bashrc +++ b/dotfiles_user_server/bashrc @@ -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 + # Wrapper for weechat to force local config file on it anew on each run. alias weechat="~/config/bin/weechat-wrapper.sh" diff --git a/dotfiles_user_thinkpad/bashrc b/dotfiles_user_thinkpad/bashrc index 06df74f..5cdcf22 100644 --- a/dotfiles_user_thinkpad/bashrc +++ b/dotfiles_user_thinkpad/bashrc @@ -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\] "