[Ubuntu] 00. Configuring .vimrc - achishis2/achishis2.github.io GitHub Wiki
First, install vim
$ sudo apt-get install vim
/home/YOUR_ACCOUNT/
$ vi .vimrc
"""""""""""""""""""""
" File Encoding
"""""""""""""""""""""
" UTF-8
"set fileencoding = utf8
" EUC-KR
"set fileencoding = euc-kr
"""""""""""""""""""""
" Default Setting
"""""""""""""""""""""
" restore default setting
set all&
" Use vim setting. Forget being compatible with good old vi
set nocp
" set nocompatible
set hidden
" display what mode you are in
set showmode
"""""""""""""""""""""
" Editor Setting
"""""""""""""""""""""
" file type
filetype on
filetype indent on
"filetype plugin on
" syntax
syntax on
" use backspace
set bs=indent,eol,start
" TAB space
set ts=2
"set tabstop=2
" TAB auto indent
set sw=2
"set shiftwidth=2
" set auto indent
"set ai
"set autoindent
" set c indent
set ci
"set cindent
" no auto line change
"set nowrap
" wrap text instead of being on one line
"set lbr
" 화면 우측 하단에 현재 커서의 위치(줄,칸)을 보여준다.
"set ru
"set ruler
" display line number
set nu
"set number
" highlight
set hls
"set hlsearch
" 검색시 똑똑한 대소문자 구별 기능 사용
set scs
" ignore case
set ic
"set ignorecase
" show match
set sm
"set showmatch
" 배경을 검은색으로
"set bg = dark
"set background = dark
" color scheme
"colorscheme delek
colorscheme torte
" do not make backup file
"set nobackup
" 점진적으로 찾기
set incsearch
" customize the status line
set stl=%f\ %m\ %r\ Line:\ %l/%L[%p%%]\ Col:\ %c\ Buf:\ #%n\ [%b][0x%B]
"set statusline=\ %<%l:%v\ [%P]%=%a\ %h%m%r\ %F\
" diplay status line, even if there is only one window
set laststatus=2
" make command line two lines high
set ch=2
" history
set history=128
" set scroll offset
set scrolloff=8
" Syntax coloring lines that are too long just slows down the world
set synmaxcol=2048