mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-25 03:37:03 +08:00
use vundle; vundle and tpm autoinstall&config
This commit is contained in:
parent
b42f51dd9b
commit
ceddd5f113
19
.vimrc2
19
.vimrc2
|
@ -1,5 +1,16 @@
|
||||||
set cursorline
|
" vundle
|
||||||
set nocompatible
|
set nocompatible
|
||||||
|
filetype off
|
||||||
|
set rtp+=~/.vim/bundle/Vundle.vim
|
||||||
|
call vundle#begin()
|
||||||
|
Plugin 'https://hub.fastgit.xyz/VundleVim/Vundle.vim'
|
||||||
|
Plugin 'https://hub.fastgit.xyz/joshdick/onedark.vim'
|
||||||
|
call vundle#end()
|
||||||
|
filetype plugin indent on
|
||||||
|
" end vundle
|
||||||
|
colorscheme onedark
|
||||||
|
|
||||||
|
set cursorline
|
||||||
set syntax=on
|
set syntax=on
|
||||||
set autoindent
|
set autoindent
|
||||||
set smartindent
|
set smartindent
|
||||||
|
@ -13,10 +24,10 @@ set linebreak
|
||||||
"set termguicolors "true color
|
"set termguicolors "true color
|
||||||
set completeopt=preview,menu "auto complete
|
set completeopt=preview,menu "auto complete
|
||||||
set laststatus=2 "always show statusline
|
set laststatus=2 "always show statusline
|
||||||
hi User1 ctermfg=21 ctermbg=15
|
hi User1 ctermfg=14 ctermbg=236
|
||||||
hi User2 ctermfg=237 ctermbg=214
|
hi User2 ctermfg=237 ctermbg=214
|
||||||
hi User3 ctermfg=15 ctermbg=2
|
hi User3 ctermfg=15 ctermbg=2
|
||||||
au InsertEnter * hi User3 ctermfg=15 ctermbg=5
|
au InsertEnter * hi User3 ctermfg=15 ctermbg=5
|
||||||
au InsertLeave * hi User3 ctermfg=15 ctermbg=2
|
au InsertLeave * hi User3 ctermfg=15 ctermbg=2
|
||||||
set statusline=%3*\ %{mode()}\ %*[%F](%{\"\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\ &bomb)?\"+\":\"\").\"\"},%{&ff},%Y)%2*%r%1*%m%*%<%=\'0x%B\'\ [Line:%l/%L,Col:%c][%p%%]
|
set statusline=%3*\ %{mode()}\ %*[%n][%F](%{\"\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\ &bomb)?\"+\":\"\").\"\"},%{&ff},%Y)%2*%r%1*%m%*%<%=\'0x%B\'\ [Line:%l/%L,Col:%c][%p%%]
|
||||||
filetype on
|
|
||||||
|
|
18
.zshrc2
18
.zshrc2
|
@ -65,10 +65,28 @@ antigen apply
|
||||||
TMUX_TPM="$HOME/.tmux/plugins/tpm"
|
TMUX_TPM="$HOME/.tmux/plugins/tpm"
|
||||||
command -v tmux > /dev/null 2>&1
|
command -v tmux > /dev/null 2>&1
|
||||||
if [[ $? == 0 && ! -d "$TMUX_TPM" ]]; then
|
if [[ $? == 0 && ! -d "$TMUX_TPM" ]]; then
|
||||||
|
echo "installing tmux tpm ..."
|
||||||
git clone https://hub.fastgit.xyz/tmux-plugins/tpm "$TMUX_TPM"
|
git clone https://hub.fastgit.xyz/tmux-plugins/tpm "$TMUX_TPM"
|
||||||
|
command -v g++
|
||||||
|
if [[ $? == 0 ]]; then
|
||||||
|
echo "initializing tmux plugins ..."
|
||||||
|
~/.tmux/plugins/tpm/bin/install_plugins
|
||||||
|
else
|
||||||
|
echo "pls install g++ and init tmux plugins by <prefix + I>"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
# end of tpm
|
# end of tpm
|
||||||
|
|
||||||
|
# install vundle
|
||||||
|
VIM_VUNDLE="$HOME/.vim/bundle/Vundle.vim"
|
||||||
|
command -v vim > /dev/null 2>&1
|
||||||
|
if [[ $? == 0 && ! -d "$VIM_VUNDLE" ]]; then
|
||||||
|
echo "installing vim vundle ..."
|
||||||
|
git clone https://hub.fastgit.xyz/gmarik/Vundle.vim.git "$VIM_VUNDLE"
|
||||||
|
echo "initializing vim plugins ..."
|
||||||
|
vim +PluginInstall +qall
|
||||||
|
fi
|
||||||
|
# end of vundle
|
||||||
|
|
||||||
# functions
|
# functions
|
||||||
export DOTFILES=$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd )
|
export DOTFILES=$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user