From fc5919c2814d8d7caef1b8d829a30dfd9abad4fe Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Tue, 28 Apr 2015 11:06:07 +0800 Subject: [PATCH] set no backup file --- _vimrc | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/_vimrc b/_vimrc index f7db82f..972b894 100644 --- a/_vimrc +++ b/_vimrc @@ -36,6 +36,18 @@ behave mswin " using monokai background color let g:molokai_original = 1 +" Ignore case when searching +set ignorecase + +" When searching try to be smart about cases +set smartcase + +" Highlight search results +set hlsearch + +" Makes search act like search in modern browsers +set incsearch + "vim内部编码 set encoding=utf-8 "按照utf-8 without bom,utf-8,顺序识别打开文件 @@ -91,7 +103,13 @@ set statusline+=%3*%c, "column set statusline+=%l/%L "line no/all line" set statusline+=\ %P - +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" => Files, backups and undo +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" Turn backup off, since most stuff is in SVN, git et.c anyway... +set nobackup +set nowb +set noswapfile set diffexpr=MyDiff() function MyDiff()