먼저 gitgutter 팩을 설치 $> mkdir -p ~/.vim/pack/airblade/start $> cd ~/.vim/pack/airblade/start $> git clone https://github.com/airblade/vim-gitgutter.git $> vim -u NONE -c "helptags vim-gitgutter/doc" -c q .vimrc 설정하기 function! GitStatus() let [a,m,r] = GitGutterGetHunkSummary() return printf('+%d ~%d -%d', a, m, r) endfunction set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=P%l,%c%V%8P,\ %{GitStatus()} highlight GitGutterAdd guifg=#009900 ctermfg=2 highlight GitGutterChange guifg=#bbbb00 ctermfg=3 highlight GitGutterDelete guifg=#ff2222 ctermfg=1 set signcolumn=yes highlight link GitGutterChangeLine DiffText highlight link GitGutterChangeLineNr Underlined highlight link GitGutterAddIntraLine DiffAdd