2019-11-11 15:08:59 +02:00
|
|
|
" support my own way of using plugins in vim / bash
|
|
|
|
autocmd BufRead *vimplugrc set ft=vim
|
|
|
|
|
|
|
|
" enable plugins
|
2019-11-15 18:39:48 +02:00
|
|
|
execute 'source' fnameescape(plug)
|
2019-11-11 15:08:59 +02:00
|
|
|
silent!call plug#begin(plugdir)
|
|
|
|
|
|
|
|
" plugin manager for self updates
|
|
|
|
Plug 'junegunn/vim-plug'
|
|
|
|
|
|
|
|
" general plugins
|
2021-02-10 20:52:02 +02:00
|
|
|
"Plug 'sheerun/vim-polyglot'
|
2021-06-23 19:52:39 +03:00
|
|
|
Plug 'itchyny/lightline.vim'
|
2019-11-11 16:26:30 +02:00
|
|
|
Plug 'junegunn/fzf.vim'
|
2019-11-11 15:08:59 +02:00
|
|
|
Plug 'junegunn/vim-easy-align'
|
2019-11-22 17:55:06 +02:00
|
|
|
Plug 'lifepillar/vim-solarized8'
|
|
|
|
Plug 'lifepillar/vim-gruvbox8'
|
2019-11-11 15:08:59 +02:00
|
|
|
Plug 'mhinz/vim-signify'
|
|
|
|
Plug 'tpope/vim-commentary'
|
|
|
|
Plug 'tpope/vim-fugitive'
|
|
|
|
Plug 'tpope/vim-rsi'
|
2019-11-11 16:26:30 +02:00
|
|
|
Plug 'tpope/vim-vinegar'
|
2021-02-10 20:52:02 +02:00
|
|
|
Plug 'w0rp/ale', {'for': ['sh']}
|
2019-11-11 15:08:59 +02:00
|
|
|
Plug 'vimwiki/vimwiki', {'on': 'VimwikiIndex'}
|
|
|
|
|
|
|
|
call plug#end()
|
|
|
|
|
|
|
|
" easy-align
|
|
|
|
xmap <Leader>a <Plug>(EasyAlign)
|
|
|
|
nmap <Leader>a <Plug>(EasyAlign)
|
|
|
|
|
2019-11-11 16:26:30 +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>
|
|
|
|
|
2019-11-11 15:08:59 +02:00
|
|
|
let g:vimwiki_list = [{'path': '$HOME/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
|
|
|
|
|
2021-06-23 19:52:39 +03:00
|
|
|
if $TERM !~ '^linux'
|
|
|
|
if has('gui_running')
|
|
|
|
set guifont=Cascadia\ Mono\ PL\ 13
|
|
|
|
set guicursor=a:blinkon0,a:block,i:ver1-Cursor/lCursor,r:hor1-Cursor/lCursor
|
|
|
|
set bg=dark guiheadroom=0 guioptions=aei mouse=a
|
|
|
|
|
|
|
|
map <S-Insert> <MiddleMouse>
|
|
|
|
map! <S-Insert> <MiddleMouse>
|
|
|
|
else
|
|
|
|
set bg=dark tgc guicursor=
|
|
|
|
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
|
|
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
|
|
|
let &t_ut = ""
|
|
|
|
endif
|
2021-02-10 20:52:02 +02:00
|
|
|
|
2020-02-10 18:37:26 +02:00
|
|
|
let g:gruvbox_filetype_hi_groups = 1
|
2021-06-23 19:52:39 +03:00
|
|
|
let g:lightline = {
|
|
|
|
\ 'colorscheme': 'gruvbox8',
|
2021-07-01 22:25:56 +03:00
|
|
|
\ 'separator': { 'left': "\ue0b8", 'right': "\ue0ba" },
|
|
|
|
\ 'subseparator': { 'left': "\ue0b9", 'right': "\ue0bb" }
|
2021-06-23 19:52:39 +03:00
|
|
|
\ }
|
2020-01-17 17:43:39 +02:00
|
|
|
colorscheme gruvbox8
|
2019-11-11 15:08:59 +02:00
|
|
|
endif
|