vim color theme

# bash 앞에 아이디랑 서버 그리고 워킹 디렉토리 예쁘게 보여주기 .profile에 그대로 복사 
$ vim .profile

# define colors
C_DEFAULT="\\\\[\\\\033[m\\\\]"
C_WHITE="\\\\[\\\\033[1m\\\\]"
C_BLACK="\\\\[\\\\033[30m\\\\]"
C_RED="\\\\[\\\\033[31m\\\\]"
C_GREEN="\\\\[\\\\033[32m\\\\]"
C_YELLOW="\\\\[\\\\033[33m\\\\]"
C_BLUE="\\\\[\\\\033[34m\\\\]"
C_PURPLE="\\\\[\\\\033[35m\\\\]"
C_CYAN="\\\\[\\\\033[36m\\\\]"
C_LIGHTGRAY="\\\\[\\\\033[37m\\\\]"
C_DARKGRAY="\\\\[\\\\033[1;30m\\\\]"
C_LIGHTRED="\\\\[\\\\033[1;31m\\\\]"
C_LIGHTGREEN="\\\\[\\\\033[1;32m\\\\]"
C_LIGHTYELLOW="\\\\[\\\\033[1;33m\\\\]"
C_LIGHTBLUE="\\\\[\\\\033[1;34m\\\\]"
C_LIGHTPURPLE="\\\\[\\\\033[1;35m\\\\]"
C_LIGHTCYAN="\\\\[\\\\033[1;36m\\\\]"
C_BG_BLACK="\\\\[\\\\033[40m\\\\]"
C_BG_RED="\\\\[\\\\033[41m\\\\]"
C_BG_GREEN="\\\\[\\\\033[42m\\\\]"
C_BG_YELLOW="\\\\[\\\\033[43m\\\\]"
C_BG_BLUE="\\\\[\\\\033[44m\\\\]"
C_BG_PURPLE="\\\\[\\\\033[45m\\\\]"
C_BG_CYAN="\\\\[\\\\033[46m\\\\]"
C_BG_LIGHTGRAY="\\\\[\\\\033[47m\\\\]"

#여기 맨 마지막 줄에 \\\\h부분 ~chopin6와 같은 식별하고픈 문자로 바꿔주면 됨
#(참조)<https://webdir.tistory.com/105>
export PS1="$C_CYAN\\u@$C_CYAN~navy:$C_YELLOW\\w \\$$C_DEFAULT"

vim editer 설정

" 기본 설정
set hlsearch
set nu
set autoindent
set scrolloff=2
set wildmode=longest,list

" 탭 관련 설정
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set smarttab
set smartindent
set cindent

" 파일 자동 처리
set autowrite
set autoread

" UI/검색
set laststatus=2
set ruler
set showmatch
set incsearch
set smartcase
set history=256

" 커서 이동 관련
set backspace=eol,start,indent

" 파일 인코딩
set encoding=utf-8
set fileencoding=utf-8

" 컬러스킴
if has("syntax")
  syntax on
endif

if has("termguicolors")
  set termguicolors
endif

colorscheme jellybeans

" 붙여넣기 토글 (계단현상 방지)
set pastetoggle=<F2>

" 상태줄
set statusline=\\ %<%l:%v\\ [%P]%=%a\\ %h%m%r\\ %F

jellybeans 컬러스킴 설치

mkdir -p ~/.vim/pack/colorschemes/start
cd ~/.vim/pack/colorschemes/start
git clone <https://github.com/nanotech/jellybeans.vim.git>

참고

[vim] vimrc 설정 (vim 기본 설정)

[VIM] vim 유용한 단축키 정리 - Heee's Development Blog