一日ほとんどCygwinと戯れてた。日本語環境整えるためにいろいろやってたけど、結局ターミナルをckにしたら一発で解決しました。あとはlessとか、nkfのへんを整える。
今回の教訓:設定ファイルはしっかり書こう!(vimとzshの設定ファイル書いたらかなり快適になったよ。
参照
Cygwin : http://www.cygwin.com/
ck : http://www.geocities.jp/meir/cygwin_ck/
Zsh : http://www.zsh.org/
Vim : http://www.vim.org/
僕の設定ファイル
.zshrc(ただし起動時になんかエラーでる
[最終更新:'07/12/07]
# The following lines were added by compinstall zstyle :compinstall filename '/home/tomohiro/.zshrc' autoload -Uz compinit compinit # End of lines added by compinstall # Path Settings export PATH=$HOME/bin:/cygdrive/f/flex_sdk_2/bin:/cygdrive/f/flex_sdk_2/player/debug:$PATH # History File Settings HISTFILE=~/.zhistory SAVEHIST=1000 # Locale Settings export LANG=ja_JP.eucJP # Pager and Editor Settings export PAGER=less export EDITOR=vi # Prompt Settings autoload -U colors colors PROMPT="%{${fg[white]}%}%# " RPROMPT=' %~' # Alias Settings alias mv='nocorrect mv' alias cp='nocorrect cp' alias mkdir='nocorrect mkdir' alias j="jobs" alias ls="ls --show-control-chars --color=auto" alias la="ls -a --show-control-chars --color=auto" alias less="less -Gr" alias vi="vim" alias v="vim" alias rb="ruby" alias l="ls --show-control-chars --color=auto" alias s="screen" alias ir="irb" alias rr="ruby" # Global Alias Settings alias -g L="| less -Gr" # Shell Option Settings setopt AUTO_LIST LIST_TYPES unsetopt AUTO_PARAM_SLASH setopt AUTO_CD AUTO_PUSHD CDABLE_VARS PUSHD_SILENT PUSHD_TO_HOME setopt HIST_IGNORE_DUPS setopt NO_CLOBBER setopt AUTO_RESUME LONG_LIST_JOBS NOTIFY unsetopt BG_NICE setopt CORRECT CORRECT_ALL setopt PRINT_EIGHT_BIT unsetopt FLOW_CONTROL # Extra Settings DIRSTACKSIZE=20
.vimrc(clipboard=unnamedが効いてない。なんで?
[最終更新:'07/12/07]
" Locale Settings set encoding=japan set termencoding=euc-jp set fileencoding=euc-jp set fileencodings=euc-jp,iso-2022-jp,utf-8,cp932 " General Settings syntax on set tabstop=2 set shiftwidth=2 set expandtab set backspace=2 set noautoindent set clipboard=unnamed set ignorecase set smartcase set number set showmatch set showmode set showcmd set laststatus=2 set cmdheight=1 " Plugin Settings filetype plugin on