設(shè)置主題
本主機(jī)vim 主題存放位置位于
/usr/share/vim/vim80/colors

image.png
從github 上下載主題(.vim格式)
git clone https://github.com/whatyouhide/vim-gotham.git

image.png
移動(dòng)至存放vim 主題路徑
cp gotham.vim /usr/share/vim/vim80/colors/

image.png
設(shè)置 ~/.vimrc 配置文件

image.png
1 set number
2 syntax on
3 set hlsearch
4 " 設(shè)定編碼
5 set enc=utf-8
6 set fileencodings=ucs-bom,utf-8,chinese
7 set langmenu=zh_CN.UTF-8
8 " 自動(dòng)補(bǔ)全
9 filetype plugin indent on
10 set completeopt=longest,menu
11 colorscheme gotham
12 " 自動(dòng)縮進(jìn)
13 set autoindent
14 set cindent
15 " Tab鍵的寬度
16 set tabstop=4
17 " 統(tǒng)一縮進(jìn)為4
18 set softtabstop=4
19 set shiftwidth=4
20 " 使用空格代替制表符
21 set expandtab
22 " 在行和段開(kāi)始處使用制表符
23 set smarttab
24 " 顯示行號(hào)
25 set number
26 " 歷史記錄數(shù)
27 set history=1000
高亮顯示
在~/.vimrc 中加入
" 設(shè)置高亮模式
syntax on