vim 에디터 설정 [~/.vimrc]
2021. 2. 10. 15:35ㆍUbuntu
color-schemes
https://www.slant.co/topics/480/~best-vim-color-schemes
Slant - 26 Best VIM color-schemes as of 2021
Gruvbox, Molokai, and Dracula are probably your best bets out of the 26 options considered. "Very easy on the eyes" is the primary reason people pick Gruvbox over the competition. This page is powered by a knowledgeable community that helps you make an inf
www.slant.co
tomasr/molokai
Molokai color scheme for Vim. Contribute to tomasr/molokai development by creating an account on GitHub.
github.com
vim 에디터 이쁘게 사용하기
.vimrc 편집을 통해 vim 에디터의 모습을 바꿔봅시다
medium.com
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
set hlsearch " 검색어 하이라이팅
set nu " 줄번호
set autoindent " 자동 들여쓰기
set scrolloff=2 " 2줄 범위에서부터 scroll
set wildmode=longest,list
set sw=1 " 스크롤바 너비
set autowrite " 다른 파일로 넘어갈 때 자동 저장
set autoread " 작업 중인 파일 외부에서 변경됬을 경우 자동으로 불러옴
set cindent " C언어 자동 들여쓰기
set bs=eol,start,indent " 줄의 끝, 시작, 들여쓰기에서 백스페이스를 사용하면 이전 줄과 연결됨
set history=256 " 편집한 256줄 까지 기억
set laststatus=2 " 상태바 표시 항상
"set paste " 붙여넣기 계단현상 없애기
set shiftwidth=4 " 자동 들여쓰기 너비 설정
set showmatch " 일치하는 괄호 하이라이팅
set smartcase " 검색시 대소문자 구별
set smarttab
set smartindent
set softtabstop=4 " Tab키를 눌렀을 때 4개 space로
set tabstop=4 " Tab을 4개 space로
set expandtab " 모든 Tab을 space로 설정
set incsearch " 단어 검색시 글자 입력할 때마다 검색
" 마지막으로 수정된 곳에 커서를 위치함
au BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "norm g`\"" |
\ endif
" 구문 강조 사용
if has("syntax")
syntax on
endif
" 컬러 스킴 사용
colorscheme gruvbox
set background=dark
|
cs |
'Ubuntu' 카테고리의 다른 글
gcc / make (0) | 2021.07.04 |
---|---|
Neovim (0) | 2021.03.08 |
파이썬 설치 (0) | 2021.03.03 |
GCC compiler (0) | 2021.02.22 |
vim 키 (0) | 2021.02.21 |