if v:lang =~ "^ko" set encoding=cp949 set fileencodings=utf-8,cp949 elseif v:lang =~ "utf8$" || v:lang =~ "UTF-8$" set fileencodings=utf-8,latin1 endif set nocompatible " Use Vim defaults (much better!) set bs=2 " allow backspacing over everything in insert mode set autoindent " always set autoindenting on "set backup " keep a backup file set viminfo='20,\"50 " read/write a .viminfo file, don't store more " than 50 lines of registers set history=50 " keep 50 lines of command line history set ruler " show the cursor position all the time set background=dark set visualbell set cinoptions=>2 set tabstop=2 set expandtab set shiftwidth=2 set smarttab set tw=78 " Only do this part when compiled with support for autocommands if has("autocmd") autocmd BufNewFile,BufRead *.tex set spell spelllang=en_au autocmd BufNewFile,BufRead Makefile set noexpandtab autocmd BufEnter * syntax sync fromstart " When editing a file, always jump to the last cursor position autocmd BufReadPost * \ if line("'\"") > 0 && line ("'\"") <= line("$") | \ exe "normal g'\"" | \ endif endif " Switch syntax highlighting on, when the terminal has colors " Also switch on highlighting the last used search pattern. if &t_Co > 2 || has("gui_running") syntax on "set hlsearch endif if &term=="xterm" set t_Co=8 set t_Sb=^[4%dm set t_Sf=^[3%dm endif colorscheme torte hi preproc ctermfg=white ctermbg=darkBlue