This repository was archived by the owner on Sep 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
80 lines (68 loc) · 2.04 KB
/
vimrc
File metadata and controls
80 lines (68 loc) · 2.04 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
"Check for PlugVim in in the relevent directories for nvim and vim
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
"Activate Plugins
call plug#begin()
Plug 'preservim/nerdtre'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-surround'
"Plug 'scrooloose/syntastic' --too many external dependencies.
Plug 'christoomey/vim-tmux-navigator'
Plug 'edkolev/tmuxline.vim'
Plug 'ctrlpvim/ctrlp.vim'
"Plug 'valloric/youcompleteme' --too many external dependencies and little
"RHEL support.
"Plug 'sjl/gundo.vim' --requires Python2 in 2021?
Plug 'mbbill/undotree'
Plug 'morhetz/gruvbox'
call plug#end()
"set rnu
set number
set nuw=2
syntax on
set mouse=a
filetype plugin indent on
set autoindent
set backspace=indent,eol,start
set listchars=eol:\\,tab:>-,trail:~,extends:>,precedes:<
set list
set noexpandtab
set wildmode=list:longest
set hlsearch
set incsearch
set termguicolors
set showcmd
set noshowmode
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
:map <F2> :NERDTreeToggle<CR>
:map <F3> :UndotreeToggle <CR>
:map <C-B> :CtrlPBuffer <CR>
"airline settings
let g:airline#extensions#tabline#enabled=1
let g:airline#extensions#tabline#fnamemod= ':t'
let g:airline_theme='tomorrow'
"tmuxline settings
let g:tmuxline_separators = {
\ 'left' : '',
\ 'left_alt': '>',
\ 'right' : '',
\ 'right_alt' : '<',
\ 'space' : ' '}
"syntastic settings
"set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatuslineFlag()}
"set statusline+=%*
"let g:syntastic_always_populate_loc_list = 1
"let g:syntastic_auto_loc_list = 1
"let g:syntastic_check_on_open = 1
":let g:syntastic_check_on_wq = 0
let gruvbox_contrast_light='hard'
colorscheme gruvbox
set background=light