$ sudo vi .vimrc set nocompatible set encoding=utf-8 set scrolloff=3 set tags=tags;/ set hlsearch set incsearch set nostartofline set showmatch set wrap set ruler filetype indent on set autoindent set sts=4 set shiftwidth=4 set nu set laststatus=2 set tabstop=4 set autoindent set cindent set smartindent colorscheme evening let c_space_errors=1 let java_space_errors=1 sytax on an BufNewFile,BufReadPost *.c,*.h set cindent smarttab shiftwidth=4 et an BufNewFile,BufReadPost *.cpp,*.cc set cindent smarttab shiftwidth=4 et an BufNewFile,BufReadPost *.java set cindent smarttab shiftwidth=8 noet an BufNewFile,BufReadPost *.php3 set cindent smarttab shiftwidth=4 et an BufNewFile,BufReadPost *.pl set cindent smarttab shiftwidth=4 et an BufNewFile,BufReadPost *.js set cindent smarttab shiftwidth=4 et an BufNewFile,BufReadPost *.py set cindent smarttab shiftwidth=4 et an BufNewFile,BufReadPost *.tex set autoinent an BufNewFile,BufReadPost *.txt setf txt an BufNewFile,BufReadPost Makefile*,makefile*,*.mk set noet nnoremap <silent> <F9> :TlistToggle<CR> nnoremap <silent> <F10> :TlistAddFileRecursive . *.java<CR> nnoremap <silent> <F11> :!python % <CR> nnoremap <silent> <F12> :!svn commit<CR> if $LANG[0] == 'k' && $LANG[1] == 'o' set fileencoding=korea endif if &term =~ "xterm-debian" || &term =~ "xterm-xfree86" set t_Co=16 set t_Sf=^[[3%dm set t_Sb=^[[4%dm set t_kb=^H fixdel endif if has("syntax") syntax on " Default to no syntax highlightning endif