move all plugin configuration into init.plugins.vim
This commit is contained in:
parent
b4ae067792
commit
37e6bd37c3
3 changed files with 161 additions and 47 deletions
46
vimrc
46
vimrc
|
|
@ -1,41 +1,5 @@
|
|||
" ●
|
||||
|
||||
if &shell =~# 'fish$'
|
||||
set shell=bash
|
||||
endif
|
||||
|
||||
" #plugins {{{
|
||||
|
||||
if has('nvim')
|
||||
if empty(glob('~/.config/nvim/autoload/plug.vim'))"{{{
|
||||
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
|
||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||
endif
|
||||
"}}}
|
||||
|
||||
call plug#begin('~/.vim/bundle')
|
||||
source ~/.config/nvim/init.plugins.vim
|
||||
"
|
||||
else
|
||||
if empty(glob('~/.vim/autoload/plug.vim'))"{{{
|
||||
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||
endif
|
||||
"}}}
|
||||
|
||||
call plug#begin('~/.config/nvim/bundle')
|
||||
source ~/.config/vim/vimrc.plugins.vim
|
||||
endif
|
||||
|
||||
source ~/.config/vim/vimrc.plugins.shared
|
||||
call plug#end()
|
||||
|
||||
runtime macros/matchit.vim
|
||||
|
||||
|
||||
"----------------------------------------------------------------------------}}}
|
||||
" #functions {{{
|
||||
|
||||
function! MyFoldText() "{{{
|
||||
|
|
@ -247,7 +211,16 @@ command! ScratchVertical vnew | setlocal buftype=nofile | setlocal bufhidden=hid
|
|||
"}}}
|
||||
"}}}
|
||||
" #settings {{{
|
||||
|
||||
scriptencoding utf-8
|
||||
set ttyfast
|
||||
|
||||
set dictionary+=/usr/share/dict/brit-a-z.txt,/usr/share/dict/britcaps.txt
|
||||
set thesaurus+=/usr/share/dict/mthesaur.txt
|
||||
|
||||
" disable background color erase
|
||||
" https://sunaku.github.io/vim-256color-bce.html
|
||||
set t_ut=
|
||||
|
||||
syntax on
|
||||
set fillchars=stl:\ ,stlnc:\ ,vert:\|,fold:\
|
||||
|
|
@ -550,7 +523,6 @@ iabbrev ct'' content-type: '';
|
|||
set statusline+=\
|
||||
|
||||
"----------------------------------------------------------------------------}}}
|
||||
runtime vimrc-overrides
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue