添加 home/.vimrc

master
yutent 2023-08-31 20:48:27 +08:00
parent f4d331af56
commit b559d7b151
1 changed files with 97 additions and 0 deletions

97
home/.vimrc Normal file
View File

@ -0,0 +1,97 @@
  ~ cat .vimrc
" show line number
set nu
" highlight code
syntax enable
syntax on
set t_Co=256
set showcmd
set foldenable
set laststatus=2
"auto indent
set autoindent
" c-like indent
set cindent
set ts=2
set sw=2
set expandtab
set smarttab
set backspace=2
set pastetoggle=<F2>
" default charset
set encoding=utf-8
set fencs=utf-8,gb18030,gbk,gb2312
set fileencodings=utf-8,ucs-bom,chinese
" no backup file & cache
set nobackup
set noswapfile
" diabled visual cpopy
xnoremap p "_dp
" can use mouse anywhere
set mouse=a
"set selection=exclusive
"set selectmode=mouse,key
set clipboard=unnamedplus
" reload file if it changed outside
set autoread
" remmeber histories
set history=100