-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
executable file
·95 lines (86 loc) · 2.38 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
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Vim Plugins to use
call plug#begin()
Plug 'junegunn/vim-easy-align'
Plug 'junegunn/vim-github-dashboard'
Plug 'scrooloose/nerdtree'
Plug 'sheerun/vim-polyglot'
Plug 'vim/killersheep'
"Plug 'govim/govim' "autocomplete is nice, but is a little more wonky than VScode
Plug 'Yggdroot/indentLine'
" Colors
Plug 'gruvbox-material/vim', {'as': 'gruvbox-material'}
Plug 'morhetz/gruvbox'
call plug#end()
" Replace <YOURS> with your GitHub username and password/Personal-Access-Token
let g:github_dashboard = { 'username': '<USER>', 'password': '<PASSWORD/PERSONAL-ACCESS-TOKEN>' }
let g:github_dashboard['position'] = 'top'
let g:github_dashboard['open_command'] = 'open'
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
"autocmd vimenter * NERDTree
map <C-n> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1
" set termguicolors
set background=dark
" for use in tty# when true color isnt available
" set t_Co=256
" colorscheme synthwave84
" colorscheme anderson
let g:gruvbox_material_background = 'medium'
colorscheme gruvbox-material
" colorscheme desert-night
"
" For lightline
let g:lightline = {}
let g:lightline.colorscheme = 'gruvbox_material'
"
" Found these online, i forgot where i got them
filetype indent plugin on
syntax on
set hidden
set ai
set mouse=a
set incsearch
set confirm
set number
set ignorecase
set smartcase
set wildmenu
set showcmd
set hlsearch
set nomodeline
set backspace=indent,eol,start
set autoindent
set nostartofline
set ruler
set laststatus=2
set shiftwidth=4
set softtabstop=4
set expandtab
" C-J,K,L,H to move between split panes and files
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" C-t to make the cycle background transparency
let t:is_transparent = 0
function! Toggle_transparent()
if t:is_transparent == 0
hi Normal guibg=NONE ctermbg=NONE
let t:is_transparent = 1
else
set background=dark
if t:is_transparent == 1
let t:is_transparent = 0
else
let t:is_trasparent = 1
endif
endif
endfunction
nnoremap <C-t> : call Toggle_transparent()<CR>