-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
104 lines (82 loc) · 1.67 KB
/
vimrc
File metadata and controls
104 lines (82 loc) · 1.67 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
" o8o
" `"'
" oooo ooo oooo ooo. .oo. .oo. oooo d8b .ooooo.
" `88. .8' `888 `888P"Y88bP"Y88b `888""8P d88' `"Y8
" `88..8' 888 888 888 888 888 888
".o. `888' 888 888 888 888 888 888 .o8
"Y8P `8' o888o o888o o888o o888o d888b `Y8bod8P'
" English
language C
" line number
set number
set cursorline
" encoding
set encoding=utf-8
scriptencoding utf-8
set fileencoding=utf-8
scriptencoding utf-8
set ambiwidth=double
" indent
set smartindent
" search
set incsearch
set ignorecase
set smartcase
set hlsearch
nnoremap <silent><Esc><Esc> :<C-u>set nohlsearch!<CR>
" buffer
set hidden
" tabspace
set tabstop=4
set shiftwidth=4
set softtabstop=0
set expandtab
set smarttab
set shiftround
" complete
set completeopt+=menuone,menu,preview
set pumheight=12
" syntax highlight
syntax enable
" backspaceKey
set backspace=indent,eol,start
" visual complete in command mode
set wildmenu
" window size
set noequalalways
" show search number
set shortmess-=S
" enable mouse
set mouse=a
" hide intro
set shortmess+=I
" leader key
let mapleader = "\<Space>"
" tabline
set showtabline=2
nnoremap <Leader>t :tabe<CR>
" save undo
if has('persistent_undo')
if glob("~/.vim/undo") == ''
call mkdir(expand('~/.vim/undo'))
endif
set undodir=~/.vim/undo
set undofile
endif
" jetpack
runtime! configs/jetpack.vim
for name in jetpack#names()
if !jetpack#tap(name)
call jetpack#sync()
break
endif
endfor
runtime! configs/plugins/*.vim
" colorscheme
set background=dark
set termguicolors
" color gruvbox
" local settings
if glob("~/.vimrc.local") != ''
source ~/.vimrc.local
endif