1
0
Fork 0
vdotfiles/vimplugrc
Von Random 13dc4b614f meh
2019-11-15 19:39:48 +03:00

55 lines
1.3 KiB
Text

" support my own way of using plugins in vim / bash
autocmd BufRead *vimplugrc set ft=vim
" enable plugins
execute 'source' fnameescape(plug)
silent!call plug#begin(plugdir)
" plugin manager for self updates
Plug 'junegunn/vim-plug'
" general plugins
Plug 'itchyny/lightline.vim'
Plug 'junegunn/fzf.vim'
Plug 'junegunn/vim-easy-align'
Plug 'mhinz/vim-signify'
Plug 'NLKNguyen/papercolor-theme'
Plug 'sheerun/vim-polyglot'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-rsi'
Plug 'tpope/vim-vinegar'
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)
" 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>
" lightline
set noshowmode
let g:lightline = {}
let g:lightline.separator = { 'left': "\ue0b0", 'right': "\ue0b2" }
let g:lightline.subseparator = { 'left': "\ue0b1", 'right': "\ue0b3" }
" vimwiki
let g:vimwiki_list = [{'path': '$HOME/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
" color theme
if $TERM !~ '^linux'
set bg=light
colorscheme PaperColor
endif