25 lines
818 B
VimL
25 lines
818 B
VimL
" Install vim-plug automatically
|
|
|
|
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
|
if empty(glob(data_dir . '/autoload/plug.vim'))
|
|
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
|
endif
|
|
|
|
" Run PlugInstall if there are missing plugins
|
|
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
|
|
\| PlugInstall --sync | source $MYVIMRC
|
|
\| endif
|
|
|
|
call plug#begin('~/.vim/plugged')
|
|
|
|
Plug 'jcherven/jummidark.vim'
|
|
Plug 'catppuccin/vim', { 'as': 'catppuccin' }
|
|
Plug 'tpope/vim-sensible'
|
|
|
|
call plug#end()
|
|
|
|
syntax enable
|
|
colorscheme catppuccin_mocha
|
|
|
|
set tabstop=4 softtabstop=0 expandtab shiftwidth=2 smarttab termguicolors |