Know when you will type :q in your term instead of vi(m), the alias will chewed you out.
most simple solution is to alias :q like so:
alias :q=`echo ”This is not vim”`
but as someone suggested in commandlinefu, you can use tput to put some color and fun into this.
alias :q=’tput setaf 1; echo >&2 ”this is NOT vi(m) :/”; tput sgr0’
Related Articles:
- 2009/11/19 Multiple search in vim
- 2009/12/18 Display a block of text with delineated by a start pattern and an end pattern
- 2009/12/07 View the newest xkcd comic.
- 2009/12/05 Insert a comment on command line for reminder
- 2009/11/16 bash colors

Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.