To use colours in your Mac terminal, you just need to put below in your ~/.bash_profile
export CLICOLOR=1 export LSCOLORS=ExFxBxDxCxegedabagacad export GREP_OPTIONS='--color=auto' alias ls='ls -GFh'
For the vim, below would be work by put in ~/.vimrc
set nocompatible " must be the first line set tabstop=4 shiftwidth=4 softtabstop=4 filetype on filetype indent on filetype plugin on set laststatus=2 syntax on set statusline=%<%f%h%m%r%=%-20.(line=%l col=%c%V totlin=%L%) %h%m%r%=%-40(bytval=0x%B,%n%Y%)%P hi StatusLine ctermbg=red ctermfg=white
Leave a Reply