-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
79 lines (72 loc) · 2.27 KB
/
.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
69
70
71
72
73
74
75
76
77
78
79
set nocompatible
call plug#begin('~/.vim/plugged')
Plug 'ycm-core/YouCompleteMe'
Plug 'joshdick/onedark.vim'
Plug 'christoomey/vim-tmux-navigator'
Plug 'itchyny/lightline.vim'
Plug 'ervandew/supertab'
Plug 'lervag/vimtex'
Plug 'sirver/ultisnips'
Plug 'honza/vim-snippets'
Plug 'godlygeek/tabular'
Plug 'preservim/vim-markdown'
Plug 'ap/vim-css-color'
call plug#end()
let g:vimtex_view_method='zathura'
let g:vimtex_quickfix_mode=0
set conceallevel=2
let g:tex_conceal='abdmg'
let g:UltiSnipsExpandTrigger = '<tab>'
let g:UltiSnipsJumpForwardTrigger = '<tab>'
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
let g:ycm_max_num_identifier_candidates = 3
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:SuperTabDefaultCompletionType = '<C-n>'
let g:vim_markdown_math = 1
let g:vim_markdown_new_list_item_indent = 2
let g:vim_markdown_folding_disabled = 1
syntax on
" onedark.vim override: Don't set a background color when running in a
" terminal;
" just use the terminal's background color
" `gui` is the hex color code used in GUI mode/nvim true-color mode
" `cterm` is the color code used in 256-color mode
" `cterm16` is the color code used in 16-color mode
if (has("autocmd") && !has("gui_running"))
augroup colorset
autocmd!
let s:white = { "gui": "#ABB2BF", "cterm": "145","cterm16" : "7" }
autocmd ColorScheme * call onedark#set_highlight("Normal", { "fg": s:white }) " `bg` will not be styled since there is no `bg`setting
augroup END
endif
colorscheme onedark
" status line configs
let g:lightline = { 'colorscheme' : 'wombat' }
autocmd VimEnter * call SetupLightlineColors()
function SetupLightlineColors() abort
let l:pallete = lightline#palette()
let l:pallete.normal.left[1][3] = 'NONE'
let l:pallete.normal.right[1][3] = 'NONE'
let l:pallete.normal.middle[0][3] = 'NONE'
let l:pallete.insert.left[1][3] = 'NONE'
let l:pallete.visual.left[1][3] = 'NONE'
let l:pallete.replace.left[1][3] = 'NONE'
call lightline#colorscheme()
endfunction
set lazyredraw
set ttyfast
set nowrap
set ruler
set modeline
set number
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set showcmd
set hlsearch
set laststatus=2
set noshowmode
command Reload source ~/.vimrc
command Hex %!xxd