vim 편집기를 사용은 거의 하지 않지만 깔끔하게 보기위해서


아래와 같이 설정을 해두었다 그대로 사용해도되고 필요한 부분만 저장하여 사용해도된다


macOS에는 vim이 기본적으로 설치가 되어있어서 편하다


vim ~/.vimrc에 아래 것을 복사하여 사용하면된다

set hlsearch
set nu 
set autoindent
set ts=4 
set sts=4
set history=256
set laststatus=2
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 $LANG[0]=='k' && $LANG[1]=='o'
set fileencoding=korea
endif
if has("syntax")
 syntax on
endif


'기초 세팅' 카테고리의 다른 글

pyenv pyenv-virtualenv 설치  (1) 2018.01.22
bash 에서 zsh 변경  (0) 2018.01.19
마우스 , 트릭패드 설정  (0) 2018.01.19
Spotlight 대체 Alfred  (0) 2018.01.18
키보드 입력방식 설정  (0) 2018.01.18

+ Recent posts