summaryrefslogtreecommitdiff
path: root/init.vim
blob: 45cb118344771d593a2a1cd1405fa391b97ef888 (plain)
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
"""""""""" HOUSEKEEPING """"""""""
syntax on
set nowrap
set encoding=utf8
" escape can blow me
nnoremap <C-c> <Esc>
" Gets rid of highlights after search
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
" Line numbers
set number
" Toggle line numbers
nnoremap <F6> :set nonumber!<CR>

if &compatible
  set nocompatible               " Be iMproved
endif
" Remap window switch
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l

"""""""""" END HOUSEKEEPING """"""""""

"""""""""" PLUGINS """"""""""
" Required:
set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim

" Required:
if dein#load_state('~/chris/.cache/dein')
  call dein#begin('~/.cache/dein')

  " Let dein manage dein
  " Required:
  call dein#add('~/.cache/dein/repos/github.com/Shougo/dein.vim')

  " Start Screen
  call dein#add('mhinz/vim-startify')
  " Search Index shows how many instances of searched term
  call dein#add('google/vim-searchindex')
  " line indents
  "call dein#add('Yggdroot/indentLine')
  " Gutentags
  call dein#add('ludovicchabant/vim-gutentags')
  " Tagbar
  call dein#add('majutsushi/tagbar')
  " Add or remove your plugins here:
  call dein#add('Shougo/neosnippet.vim')
  call dein#add('Shougo/neosnippet-snippets')
  " Themes
  call dein#add('liuchengxu/space-vim-dark')
  " Auto Pairs
  call dein#add('jiangmiao/auto-pairs')
  " NERDTree
  call dein#add('scrooloose/nerdtree')
  " For autocomplete
  call dein#add('Shougo/deoplete.nvim')
    " For vim 8+
    if !has('nvim')
      call dein#add('roxma/nvim-yarp')
      call dein#add('roxma/vim-hug-neovim-rpc')
    endif

  " You can specify revision/branch/tag.
  call dein#add('Shougo/deol.nvim', { 'rev': '01203d4c9' })

  " Required:
  call dein#end()
  call dein#save_state()
endif

" Required:
filetype plugin indent on
syntax enable

" If you want to install not installed plugins on startup.
if dein#check_install()
  call dein#install()
endif

"""""""""" END PLUGINS """"""""""

"""""""""" SPACEVIM THEME """"""""""

" Set theme
colorscheme space-vim-dark

" Terminal Transparency
"if $TERM_PROGRAM =~ 'terminator'
"  hi Normal     ctermbg=NONE guibg=NONE
"  hi LineNr     ctermbg=NONE guibg=NONE
"  hi SignColumn ctermbg=NONE guibg=NONE
"endif

"   Range:   233 (darkest) ~ 238 (lightest)
"   Default: 235
let g:space_vim_dark_background = 233
color space-vim-dark
hi Comment guifg=#5C6370 ctermfg=59
"hi Comment cterm=italic
"set background=dark
"set termguicolors

"""""""""" END THEME """"""""""

" Deoplete
let g:deoplete#enable_at_startup = 1

" Startify
let g:startify_custom_header = [                                                                                                                                                                                 
                \ '                                ',                                                                                                                                            
                \ '            __                  ',                                                                                                                                            
                \ '    __  __ /\_\    ___ ___      ',                                                                                                                                            
                \ '   /\ \/\ \\/\ \ /'' __` __`\   ',                                                                                                                                            
                \ '   \ \ \_/ |\ \ \/\ \/\ \/\ \   ',                                                                                                                                            
                \ '    \ \___/  \ \_\ \_\ \_\ \_\  ',                                                                                                                                            
                \ '     \/__/    \/_/\/_/\/_/\/_/  ',                                                                                                                                            
                \ ]

" Tagbar
nmap <F8> :TagbarToggle<CR>

" NERDTree
nmap <F5> :NERDTreeToggle<CR>