.vimrc

viユーザは減っているんでしょうか. 先日 emacs をインストールしていない私は, フランス人に30年前の人間かとつっこまれました.

ruler がすき, backspace=2がないのはめんどい. くらいでしょうか. 勝手にいろいろされたりするのは嫌いな感じです.

% cat ~/.vimrc 
" 書き込み時の encode
" japan=euc-jp
" utf-8=UTF-8
set fileencoding=japan

" 読み込み時の encode
set fileencodings=iso-2022-jp,euc-jp,utf-8,cp932

" ruler をつける
set ruler

" 行番号はつけない
set nonumber

" 勝手にインデントしない
set noautoindent

" タブサイズは 8
set tabstop=8

" backspace の動き方. 
set backspace=2

" バックアップをとる.
set backup
set backupdir=>$HOME/back_vi

" 履歴を 100件残す. 
set history=100

" http://d.hatena.ne.jp/macperl/20070917/p1
" TypeG環境ではないのですが, 他で対応する括弧にカーソルが移動する問題がでたので
let loaded_matchparen = 1
set noshowmatch

% vim --version
VIM - Vi IMproved 7.0 (2006 May 7, compiled Aug 29 2007 10:35:49)
Included patches: 1-122, 234-235, 39
Compiled by jmm@
Small version without GUI.  Features included (+) or not (-):
 -arabic +autocmd -balloon_eval -browse  +builtin_terms +byte_offset -cindent
 -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
 -cryptv -cscope -cursorshape -dialog +diff +digraphs -dnd -ebcdic -emacs_tags
 +eval +ex_extra +extra_search -farsi +file_in_path -find_in_path +folding
 -footer +fork() -gettext -hangul_input +iconv +insert_expand +jumplist -keymap
 -langmap +libcall -linebreak -lispindent +listcmds -localmap -menu -mksession
 -modify_fname -mouse -mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm
 -mouse_xterm +multi_byte -multi_lang -mzscheme -netbeans_intg -osfiletype
 -path_extra -perl -printer -profile -python +quickfix -reltime -rightleft -ruby
 +scrollbind -signs +smartindent -sniff -statusline -sun_workshop -syntax
 -tag_binary -tag_old_static -tag_any_white -tcl +terminfo -termresponse
 +textobjects -title -toolbar +user_commands +vertsplit -virtualedit +visual
 +visualextra +viminfo -vreplace +wildignore -wildmenu +windows +writebackup
 -X11 +xfontset -xim -xsmp -xterm_clipboard -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -g -Wall -DFEAT_AUTOCMD -DFEAT_BYTEOFF -DFEAT_CMDL_COMPL -DFEAT_CMDHIST -DFEAT_CMDL_INFO -DFEAT_COMMENTS -DFEAT_DIFF -DFEAT_DIGRAPHS -DFEAT_EVAL -DFEAT_EX_EXTRA -DFEAT_SEARCH_EXTRA -DFEAT_SEARCHPATH -DFEAT_FOLDING -DFEAT_INS_EXPAND -DFEAT_LISTCMDS -DFEAT_QUICKFIX -DFEAT_SCROLLBIND -DFEAT_SMARTINDENT -DFEAT_TEXTOBJ -DFEAT_USR_CMDS -DFEAT_VERTSPLIT -DFEAT_VIMINFO -DFEAT_VISUALEXTRA
Linking: gcc   -L/usr/local/lib -o vim    -lncurses

statusline を + にしたいのですが, やりかたがわかりません. (ソースからがんばればできるのですが)

dpkg-reconfigure みたいなのでできるような気がしていますが, とりあえず放置中