맥 터미널 컬러 및 vim 컬러 적용하기

|

한동안 그냥 쓰다가 맥의 터미널에 컬러를 적용해야 겠다고 마음 먹고 구글링을 통해서 완료...

뭐.. 기본적으로 리눅스를 잘 사용하시는 분들은 아실 것 같으므로 패스하시길~ :)


터미널의 컬러 적용


.profile을 열어서(vi ~/.profile) 아래 내용 추가.

export CLICOLOR=2

export TERM='xterm-color'


이렇게 하고 source .profile 하면 바로 적용, 그 다음부터는 자동 적용.. -_-;;



vim 컬러 적용.

sudo vi /usr/share/vim/vimrc 로 파일을 연후

아래 내용 추가~

set ai                  " auto indenting

set history=100         " keep 100 lines of history

set ruler               " show the cursor position

syntax on               " syntax highlighting

set hlsearch            " highlight the last searched term

filetype plugin on      " use the file type plugins


" When editing a file, always jump to the last cursor position

autocmd BufReadPost *

\ if ! exists("g:leave_my_cursor_position_alone") |

\ if line("'\"") > 0 && line ("'\"") <= line("$") |

\ exe "normal g'\"" |

\ endif |

\ endif






And