cygwin :
ls 高亮
vim .bashrc
修改
1 alias df='df -h' 2 alias du='du -h' 3 alias whence='type -a' # where, of a sort 4 alias grep='grep --color' # show differences in colour 5 alias egrep='egrep --color=auto' # show differences in colour 6 alias fgrep='fgrep --color=auto' # show differences in colour 7 alias ls='ls -hF --color=tty' # classify files in colour 8 alias dir='ls --color=auto --format=vertical' 9 alias vdir='ls --color=auto --format=long'10 alias ll='ls -l' # long list11 alias la='ls -A' # all but . and ..12 alias l='ls -CF' #13 alias wch='which -a'
如果是Mac系统下,则修改为
alias ls='ls -G' #如果要显示隐藏文件,加-a
vim高亮
vim .vimrc
同下
手机vim:
vim etc/vim/vimrc
1 syntax on "自动语法高亮 2 set number "显示行号 3 set showcmd " 4 set hlsearch " 5 6 7 filetype plugin indent on "开启插件 8 set cindent 9 set smarttab 10 set expandtab 11 set tabstop=4 "设定tab长度为4 12 set sw=4 " 13 set ruler "打开状态栏标尺