[vim config file]
set ai nocp digraph ek hid ru sc wmnu noet nosol si
set bs=2 fo=cqrt ls=2 shm=at ww=,h,l ts=4 sw=4
set com=s1:/*,mb:*,ex:*/,://,b:# syn=on filetype=on
set vi=%,'50,\"50,:50 lcs=tab:>-,trail:.,extends:>
set pt= shm=I tm=750 nomore modelines=5 hls!
syn on
ino gj
ino gk
nno gj
nno gk
nno :set hls!set hls?
nno :syn clear
nno :set nu!set nu?
if has("gui_running")
colo darkblue
set gfn=Bitstream\ Vera\ Sans\ Mono\ 8
else
colo ubuntu
" colo desert
" colo elflord
endif
.bashrc 配置
# System-wide .bashrc file for interactive bash(1) shells.
#
shopt -s checkwinsize
### In order to have consistent feel over accounts,
### I customize this file instead of ~/.bashrc
PS1='\u@\h:\W\$ '
# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# short commands
alias h='history'
alias j="jobs -l"
alias c="clear"
alias m="less"
alias pu="pushd"
alias po="popd"
# You may comment the following lines if you do not want `ls' to be
export LS_OPTIONS='--color=auto'
eval `dircolors` # set LS_COLORS
alias ll='ls $LS_OPTIONS -lbF'
alias l='ls $LS_OPTIONS -AbF'
alias ls='ls $LS_OPTIONS'
# useful functions for mc
# does not do ctrl-Z
# mc() { cd $(/usr/bin/mc -P "$@"); }
# use secured temp-file (This is for Potato)
#mc ()
#{
# mkdir -p ~/.mc/tmp 2> /dev/null
# chmod 700 ~/.mc/tmp
# MC=~/.mc/tmp/mc-$$
# /usr/bin/mc -P "$@" > "$MC"
# cd "$(cat $MC)"
# rm -f "$MC"
# unset MC;
#}
# Sid
if [ -f /usr/share/mc/bin/mc.sh ] ; then
. /usr/share/mc/bin/mc.sh
fi
# Woody
if [ -f /usr/lib/mc/bin/mc.sh ] ; then
. /usr/lib/mc/bin/mc.sh
fi
No comments:
Post a Comment