-
Notifications
You must be signed in to change notification settings - Fork 3
/
theme.vim
50 lines (41 loc) · 975 Bytes
/
theme.vim
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
38
39
40
41
42
43
44
45
46
47
48
49
50
" Terminal has 256 colors and utf-8 encoding
set t_Co=256
set encoding=utf-8
" Set the color scheme
set termguicolors
set background=light
if isdirectory($HOME . "/.config/nvim/plugged/gruvbox")
colorscheme gruvbox
endif
" Set textwidth and indention
set textwidth=120
set smartindent
set autoindent
set tabstop=2
set shiftwidth=2
set expandtab
" Always show status line
set laststatus=2
" Line settings
set number
" Display column and cursor line
set colorcolumn=+1
set cursorline
" Wrap lines (if so only at linebreaks)
set wrap
set nolist
set linebreak
set textwidth=0
set wrapmargin=0
" List characters
set list
if &listchars ==# 'eol:$'
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
if &termencoding ==# 'utf-8' || &encoding ==# 'utf-8'
let &listchars = "tab:\u21e5 ,trail:\u2423,extends:\u21c9,precedes:\u21c7,nbsp:\u00b7"
endif
endif
" Vertical and horizontal scroll off settings
set scrolloff=10
set sidescrolloff=15
set sidescroll=1