vim 설치 (없으면)
yum -y install vim
alias 등록
vi .bashrc
alias vi=vim
vim 기본 설정 편집
vi ~/.vimrc
set hlsearch
set autoindent
set scrolloff=2
set wildmode=longest,list
set ts=4
set sts=4
set sw=1
set autowrite
set autoread
set cindent
set bs=eol,start,indent
set history=256
set laststatus=2
set paste
set shiftwidth=4
set showmatch
set smartcase
set smarttab
set smartindent
set softtabstop=4
set tabstop=4
set ruler
set incsearch
set statusline=\ %<%l:%v\ [%P]%=%a\ %h%m%r\ %F\
au BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "norm g`\"" |
\ endif
if $LANG[0]=='k' && $LANG[1]=='o'
set fileencoding=korea
endif
if has("syntax")
syntax on
endif
출처: https://medium.com/sunhyoups-story/vim-에디터-이쁘게-사용하기-5b6b8d546017