vim의 테마를 설정해보자.
먼저 현재 vim 이 어디에 설치되어 있는지 확인해본다.
vim을 실행하고 명령모드에서 다음 명령어를 실행한다.
:!echo $VIMRUNTIME
명령어를 실행하면 아래와 같이 vim 설치 경로를 알 수 있다.
해당 디렉토리의 colors 디렉토리에 colorscheme 파일 *.vim 을 설치한다. 나는 예시로 jellybeans 스킴을 설치했다.
https://github.com/nanotech/jellybeans.vim
GitHub - nanotech/jellybeans.vim: A colorful, dark color scheme for Vim.
A colorful, dark color scheme for Vim. Contribute to nanotech/jellybeans.vim development by creating an account on GitHub.
github.com
위 Github 에서 jellybeans.vim 을 colors 디렉토리에 복사한 후, vimrc에 컬러스킴을 추가한다.
colorscheme jellybeans
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
|
if has("syntax")
syntax on
endif
set hlsearch "Highlight search word
set nu "Line number
set title "show file name on title line
set autoindent
set cindent
set ts=4
set sts=4
set shiftwidth=4
set laststatus=2 "0:No Show 1:two windows 2:always
set showmatch "Highlight Brace
set smartcase "no automatic ignore case switch
set smarttab "Assist tab, backspace by ts, sts, sw
set smartindent "skip macro
set nocompatible "arrow key
set ruler "Show cursor location
set fileencodings=utf8,euc-kr "encoding
set nobackup "No make backup file
set showcmd "show command in status line
set history=1000 "instruction history up to 1000
colorscheme jellybeans
|
cs |
컬러스킴이 변경된 것을 확인한다.
'Linux' 카테고리의 다른 글
Setup ssh on Ubuntu 20.04.4 LTS (0) | 2022.10.04 |
---|---|
Colorscheme not working in Putty (0) | 2022.09.01 |
vimrc (0) | 2022.08.25 |
wsl2 옮기기 (0) | 2022.07.22 |
localtime 변경 (0) | 2022.06.27 |