I. Set bashrc
if [ -f /etc/bashrc ]; then . /etc/bashrc fi
Ii. Set alias
Alias egrep = 'egrep -- color = auto'
Alias fgrep = 'fgrep -- color = auto'
Alias G = 'gvim'
Alias GA = 'G ~ /. Alias'
Alias GLG = 'git LG'
Alias Gls = 'git status'
Alias grep = 'grep -- color = auto'
Alias GST = 'git status'
Alias H = 'History'
Alias L = 'LS-lH'
Alias LA = 'LS-'
Alias LL = 'LS-alf'
Alias ls = 'ls -- color = auto'
Alias SA = 'source ~ /. Alias'
Alias venv = 'virtualenv'
3. Set Vim
Global:
/Etc/Vim/autoload/pathogen. Vim
The/etc/Vim/autoload/bundle/** Vim plug-in is installed in this directory, and the local user ln-S is installed in their respective directories.
/Etc/vimrc
"-------------------------------------------------set nucolorscheme desertsyntax onset ruler"set cursorline"set cursorcolumn"-------------------------------------------------imap <s-enter> <esc>oimap <c-enter> <esc>Onmap K 6knmap J 6j"-------------------------------------------------set autoindentset smartindentset smarttabset tabstop=4set shiftwidth=4set expandtabset list listchars=tab:>-"ret !4set virtualedit=all "-------------------------------------------------"call pathogen#infect() syntax onfiletype plugin indent on"-------------------------------------------------autocmd FileType apache set commentstring=#\ %sautocmd FileType verilog set commentstring=//\ %sautocmd FileType c set commentstring=//\ %s
Local User:
Ln-S/etc/Vim/autoload /~ /. Vim/
Ln-S/etc/Vim/autoload/bundle /*~ /. Vim/bundle/
G ~ /. Vimrc needs to be added
call pathogen#infect()
4. Set the local environment
~ /. Bashrc
~ /. Alias_local
~ /. Vimrc
~ /. Vim
Configure global environment for centos