From b559d7b151cea3a42bb2b4b94c289c7ca452d090 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 31 Aug 2023 20:48:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20home/.vimrc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/.vimrc | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 home/.vimrc diff --git a/home/.vimrc b/home/.vimrc new file mode 100644 index 0000000..e765dd5 --- /dev/null +++ b/home/.vimrc @@ -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= + +" 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 +