-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
131 lines (115 loc) · 3.45 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
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
129
130
131
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
Plug 'tpope/vim-fugitive'
Plug 'vim-syntastic/syntastic'
Plug 'gcmt/taboo.vim'
Plug 'majutsushi/tagbar'
Plug 'vim-airline/vim-airline'
Plug 'easymotion/vim-easymotion'
Plug 'Valloric/YouCompleteMe'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'nathanaelkane/vim-indent-guides'
Plug 'inkarkat/vim-SpellCheck'
Plug 'inkarkat/vim-ingo-library'
Plug 'rhysd/vim-clang-format'
Plug 'junegunn/fzf.vim'
Plug 'rust-lang/rust.vim'
" color themes
Plug 'baskerville/bubblegum'
Plug 'chriskempson/base16-vim'
Plug 'nightsense/vimspectr'
Plug 'aradunovic/perun.vim'
Plug 'nightsense/stellarized'
Plug 'dim13/smyck.vim'
Plug 'kadekillary/skull-vim'
Plug 'ajmwagar/vim-deus'
Plug 'nanotech/jellybeans.vim'
Plug 'preocanin/greenwint'
Plug 'rhysd/vim-color-spring-night'
Plug 'fneu/breezy'
Plug 'davidklsn/vim-sialoquent'
Plug 'robertmeta/nofrils'
Plug 'dylanaraps/crayon'
Plug 'juanpabloaj/vim-pixelmuerto'
Plug 'kamwitsta/nordisk'
Plug 'mbbill/vim-seattle'
Plug 'rakr/vim-one'
Plug 'arcticicestudio/nord-vim'
Plug 'romainl/Apprentice'
Plug 'jacoborus/tender.vim'
Plug 'joshdick/onedark.vim'
Plug 'dikiaap/minimalist'
Plug 'morhetz/gruvbox'
Plug 'cocopon/iceberg.vim'
Plug 'jdkanani/vim-material-theme'
Plug 'vim-airline/vim-airline-themes'
Plug 'srcery-colors/srcery-vim'
Plug 'sainnhe/gruvbox-material'
Plug 'sainnhe/sonokai'
Plug 'haystackandroid/stellarized'
Plug 'haystackandroid/snow'
Plug 'haystackandroid/carbonized'
Plug 'haystackandroid/vimspectr'
" Initialize plugin system
call plug#end()
filetype plugin on
syntax on
set nu rnu tgc lbr ar cc=80 et sw=4
" colo base16-tomorrow-night
set t_Co=256
set guioptions= "remove menu bar
set popt=paper:letter
" Keybindings for tagbar
nmap <F8> :TagbarToggle<CR>
nmap <F9> :e .<CR>
autocmd VimEnter * nested :TagbarOpen
let g:tagbar_width = 25
" cursor mode blinking and stuff
set gcr+=n-v-c:blinkon80-blinkoff80-blinkwait700
set gcr+=i:ver20-blinkon80-blinkoff80-blinkwait700
" Easy motion search bindings
map / <Plug>(easymotion-sn)
omap / <Plug>(easymotion-tn)
" Recommended Syntastic settings from https://github.com/scrooloose/syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_matlab_checkers = ['mlint']
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
let g:airline_powerline_fonts = 1
let g:airline#parts#ffenc#skip_expected_string='utf-8[unix]'
let g:airline#extensions#default#section_truncate_width = {
\ 'b': 79,
\ 'x': 60,
\ 'y': 88,
\ 'z': 105,
\ 'warning': 140,
\ 'error': 140,
\ }
" fast buffer switching
nmap <silent> <A-k> :wincmd k<CR>
nmap <silent> <A-j> :wincmd j<CR>
nmap <silent> <A-h> :wincmd h<CR>
nmap <silent> <A-l> :wincmd l<CR>
tnoremap <A-h> <C-\><C-N><C-w>h
tnoremap <A-j> <C-\><C-N><C-w>j
tnoremap <A-k> <C-\><C-N><C-w>k
tnoremap <A-l> <C-\><C-N><C-w>l
" quick saving
nmap <C-S> :update<CR>
" open a terminal in a new tab
nmap <C-T> :tabed term://zsh<CR> :set nonu nornu<CR>a
nmap <C-W><C-T> :sp term://zsh<CR> :set nonu nornu<CR>a
" fzf bindings
nmap <C-\><C-E> :Files<CR>
let g:NERDTreeWinSize = 26
map <C-n> :NERDTreeToggle<CR>
colo srcery