-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdot_vimrc
68 lines (61 loc) · 1.35 KB
/
dot_vimrc
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
"" vim config
"" dein.vim setup
if &compatible
set nocompatible
endif
filetype off
"" append to runtime path
set rtp+=~/.cache/dein/repos/github.com/Shougo/dein.vim
"" initialize dein, plugins are installed to this directory
call dein#begin('~/.cache/dein')
"" install packages from toml file
let s:toml_dir = $HOME . '/.vim/dein'
let s:toml = s:toml_dir . '/dein.toml'
let s:lazy_toml = s:toml_dir . '/dein_lazy.toml'
call dein#load_toml(s:toml, {'lazy': 0})
call dein#load_toml(s:lazy_toml, {'lazy': 1})
"" exit dein
call dein#end()
"" auto-install missing packages on startup
if dein#check_install()
call dein#install()
endif
"" source files
if filereadable(expand('$HOME/.secure/dein_update.vim'))
source $HOME/.secure/dein_update.vim
endif
command! DeinUpdate call dein#check_update(v:true)
filetype plugin indent on
""display
set termguicolors
syntax enable
colorscheme urara
set ambiwidth=double
set wildmenu
set hidden
set nobackup
set nowritebackup
set updatetime=300
set shortmess+=c
set signcolumn=number
set title
set number
set showmatch matchtime=1
set cmdheight=2
set laststatus=2
set showcmd
set history=10000
set expandtab
set shiftwidth=2
set softtabstop=2
set tabstop=2
set showmatch
set shortmess-=S
"" enable clipboard integration
set clipboard&
set clipboard^=unnamedplus
"" search
set ignorecase
set smartcase
set wrapscan
set hlsearch