mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 14:07:01 +08:00
34 lines
1.0 KiB
Plaintext
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%%]
|
||
|
|