2012/04/17(火)僕の .vimrc と .screenrc は、ここで進化していく(むしろgit使え
こういうのが便利とかあったら教えてください!
直接関係ないけど、コピペしたときに行番号がつかないようにするのってどうやるんだろう。
数字を画像で用意する! なるほど。そうじゃなくて。
# .bashrc # cygwin
## auto start screen
## if $STY is not set...
if [ -z "$STY" ]; then
screen -dR
fi
## share history between screen sessions.
function share_history {
history -a
history -c
history -r
}
PROMPT_COMMAND='share_history'
shopt -u histappend
export HISTSIZE=200000
export HISTFILESIZE=2000000
export HISTCONTROL=ignoredups
## exclude short command from history
export HISTIGNORE=?:??:???:exit:logout
export PS1="\\[\\e]0;\\w\\a\\]\\n[\\[\\e[36m\\]\\D{%m-%d %H:%M:%S}\\[\\e[0m\\]] \\[\\e[32m\\]\\u@\\h \\[\\e[33m\\]\\w\\[\\e[0m\\]\\n$ "
# .vimrc
syntax on
set smartindent
set number
set backspace=2
set laststatus=2
set mouse=a
set tabstop=8
set shiftwidth=4
set expandtab
set wildmenu
set ruler
set statusline=%<%f\\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P
set showcmd
set incsearch
set hlsearch
set timeoutlen=250
inoremap ;; <ESC>
# .screenrc
autodetach on
startup_message off
defbce "on"
term xterm-color
shelltitle 'bash'
defscrollback 3000
hardstatus on
hardstatus string "%?%h%:%t (screen #%n on %H)%?"
caption always "%{= wb}[%02c] %-Lw%40L>%{=b bw}%n%f %t %{= wb}%+Lw %{= wb}%=@%H[$LANG] (%l)"
altscreen on
vbell off