vim 256 color + screen
■ Teraterm で256対応バージョンを入手
■ vimの256color化
mkdir ~/.vim/colors cd ~/.vim/colors wget desert256.vim vim ~/.vimrc ----------- set t_Co=256 colorscheme desert256 -----------
■ screen
yum install screen vim ~/.bash_profile vim ~/.screenrc -------------------------- escape ^Tt vbell off hardstatus alwayslastline " %`%-w%{=b bw}%n %t%{-}%+w" autodetach on #default8 on bind ^k kill bind s colon 'screen ssh' #escape ^z^z #defhstatus "^En:^Et" # コピーモードで Emacs のような移動を可能にする # (man にも載っている定番) #markkeys h=^b:l=^f:$=^e # 現在位置から行末までコピーする # URL のコピペに使えます(C-a C-k) #bind ^k eval "copy" "stuff ' $ '" # ## “C-z (スペース)”でコピーモードに入った直後に最初のマークを付ける ## スペースのかわりに生の ^@ とかを指定するとそれっぽくなります #bind ' ' eval "copy" "stuff ' '" # ## Emacs の yank っぽいペースト法(C-z C-y) #bind ^y paste . ## クラス“launcher”として定義されたキーバインドへ移行する #bind ^x eval "echo 'Launcher-mode: [ t: top ] [ w: w3m -B]'" "command -c launcher" ## クラス“launcher”に属するキーバインドを設定 #bind -c launcher t screen top #bind -c launcher w screen w3m -B #bind -c launcher ^z command ##タブ風のキャプション表示 #caption always "%{= wg} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wb}%y/%m/%d(%D) %{=b wm}%c" --------------------------
if [ $TERM != "screen" ]; then export TERM=xterm-256color exec screen -S main -xRR fi
あー、でもダメだ。複数のウインドウを開いてログインしても、一つログアウトすれば全部ログアウトされちゃう。