dotfiles/.vimrc2
Dict Xiong e247588a51
Dev (#4)
* .vimrc2; tmux disable mouse default

* use vundle; vundle and tpm autoinstall&config

* move tpm&vundle install to install.sh

* minor color fixes in install.sh
2022-05-21 01:59:56 +08:00

34 lines
1.0 KiB
Plaintext

" 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
set tabstop=4
set expandtab "spaces instead of tabs
set number "line numbers
set history=1000
set ignorecase "when searching
set smartcase "but not when containing upper case chars
set linebreak
"set termguicolors "true color
set completeopt=preview,menu "auto complete
set laststatus=2 "always show statusline
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()}\ %*[%n][%F](%{\"\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\ &bomb)?\"+\":\"\").\"\"},%{&ff},%Y)%2*%r%1*%m%*%<%=\'0x%B\'\ [Line:%l/%L,Col:%c][%p%%]