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
|
2019-11-15 18:39:48 +02: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'
|
|
|
|
Plug 'mhinz/vim-signify'
|
2019-11-15 18:39:48 +02:00
|
|
|
Plug 'NLKNguyen/papercolor-theme'
|
2019-11-11 15:08:59 +02:00
|
|
|
Plug 'sheerun/vim-polyglot'
|
|
|
|
Plug 'tpope/vim-commentary'
|
|
|
|
Plug 'tpope/vim-fugitive'
|
|
|
|
Plug 'tpope/vim-rsi'
|
2019-11-11 16:26:30 +02:00
|
|
|
Plug 'tpope/vim-vinegar'
|
2019-11-11 15:08:59 +02:00
|
|
|
Plug 'davidhalter/jedi-vim', {'for': 'python'}
|
|
|
|
Plug 'w0rp/ale', {'for': ['python', 'sh']}
|
|
|
|
Plug 'vimwiki/vimwiki', {'on': 'VimwikiIndex'}
|
|
|
|
|
|
|
|
call plug#end()
|
|
|
|
|
|
|
|
" ale
|
|
|
|
let g:ale_python_flake8_executable = 'python2'
|
|
|
|
|
|
|
|
" 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-15 18:39:48 +02:00
|
|
|
" lightline
|
|
|
|
set noshowmode
|
|
|
|
let g:lightline = {}
|
|
|
|
let g:lightline.separator = { 'left': "\ue0b0", 'right': "\ue0b2" }
|
|
|
|
let g:lightline.subseparator = { 'left': "\ue0b1", 'right': "\ue0b3" }
|
|
|
|
|
2019-11-11 15:08:59 +02:00
|
|
|
" vimwiki
|
|
|
|
let g:vimwiki_list = [{'path': '$HOME/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
|
|
|
|
|
|
|
|
" color theme
|
|
|
|
if $TERM !~ '^linux'
|
2019-11-15 18:39:48 +02:00
|
|
|
set bg=light
|
|
|
|
colorscheme PaperColor
|
2019-11-11 15:08:59 +02:00
|
|
|
endif
|