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 +