diff --git a/.vimrc2 b/.vimrc2 index b40402e..7890204 100644 --- a/.vimrc2 +++ b/.vimrc2 @@ -1,5 +1,16 @@ -set cursorline +" vundle 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 autoindent set smartindent @@ -13,10 +24,10 @@ set linebreak "set termguicolors "true color set completeopt=preview,menu "auto complete 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 User3 ctermfg=15 ctermbg=2 au InsertEnter * hi User3 ctermfg=15 ctermbg=5 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%%] -filetype on +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%%] + diff --git a/.zshrc2 b/.zshrc2 index cf9da01..ee48c2f 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -65,10 +65,28 @@ antigen apply TMUX_TPM="$HOME/.tmux/plugins/tpm" command -v tmux > /dev/null 2>&1 if [[ $? == 0 && ! -d "$TMUX_TPM" ]]; then + echo "installing 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 " + fi fi # 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 export DOTFILES=$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd )