1
0
Fork 0
vdotfiles/vimplugrc

60 lines
1.4 KiB
Text
Raw Normal View History

2022-12-25 03:36:59 +02:00
vim9script
autocmd BufRead *vimplugrc set ft=vim
2022-04-11 18:20:36 +03:00
2022-12-25 03:36:59 +02:00
execute 'source' fnameescape(g:plug)
plug#begin(g:plugdir)
Plug 'junegunn/vim-plug'
2022-12-25 03:36:59 +02:00
Plug 'lifepillar/vim-gruvbox8'
Plug 'hashivim/vim-terraform'
Plug 'itchyny/lightline.vim'
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
Plug 'junegunn/vim-easy-align'
Plug 'mhinz/vim-signify'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-rsi'
Plug 'tpope/vim-vinegar'
Plug 'w0rp/ale', {'for': ['sh']}
2022-12-25 03:36:59 +02:00
plug#end()
2021-07-14 23:18:26 +03:00
2022-12-25 03:36:59 +02:00
# easy-align
xmap <Leader>a <Plug>(EasyAlign)
nmap <Leader>a <Plug>(EasyAlign)
2022-12-25 03:36:59 +02:00
# fzf
nmap <Leader>ff :Files<CR>
nmap <Leader>fg :GFiles<CR>
nmap <Leader>fb :Buffers<CR>
nmap <Leader>fl :Lines<CR>
nmap <Leader>ft :Filetypes<CR>
2022-12-25 03:36:59 +02:00
# lightline
g:lightline = {
colorscheme: 'gruvbox8',
separator: { left: "\ue0b0", right: "\ue0b2"},
subseparator: { left: "\ue0b1", right: "\ue0b3"}
}
2022-04-11 18:20:36 +03:00
2022-12-25 03:36:59 +02:00
if $TERM == 'xterm-256color'
set term=xterm-direct
endif
2022-12-25 03:36:59 +02:00
g:gruvbox_transp_bg = 1
g:gruvbox_plugin_hi_groups = 1
g:gruvbox_filetype_hi_groups = 1
&t_8f = "\u1b[38;2;%lu;%lu;%lum"
&t_8b = "\u1b[48;2;%lu;%lu;%lum"
&tgc = 1
&bg = 'dark'
colorscheme gruvbox8
if has('gui_running')
set guifont=JetBrains\ Mono:h14
set guicursor=a:blinkon0,a:block,i:ver1-Cursor/lCursor,r:hor1-Cursor/lCursor
set guiheadroom=0 guioptions=aei mouse=a
map <S-Insert> <MiddleMouse>
map! <S-Insert> <MiddleMouse>
endif