码迷,mamicode.com
首页 > 其他好文 > 详细

我组装的vimrc(备份)

时间:2014-08-22 22:37:37      阅读:378      评论:0      收藏:0      [点我收藏+]

标签:备份   vim   vimrc   linux   code   

先来个低幼版方案,这是芝麻街之类儿童节目VI配置而成的吧?

 bubuko.com,布布扣

接着看到这个脑中浮现出屏幕前一双马尾萝莉吃着棒棒糖写前端的画面。
【救命!太甜无法直视.. 】


昨天无意中用mv把辛苦而做都vimrc搞没了。。。
今天重新噜一遍。。

“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”下面 才是干货“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“

"set to auto read when a file is changed from the outside
set autoread

" Ignore compiled files
set wildignore=*.o,*~,*.pyc

"Always show current position
set ruler

" Height of the command bar
set cmdheight=2

" A buffer becomes hidden when it is abandoned
set hid

" Configure backspace so it acts as it should act
set backspace=eol,start,indent
set whichwrap+=<,>,h,l

" 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

" Don‘t redraw while executing macros (good performance config)
set lazyredraw


" For regular expressions turn magic on
set magic

" Show matching brackets when text indicator is over them
set showmatch
" How many tenths of a second to blink when matching brackets
set mat=2

" No annoying sound on errors
set noerrorbells
set novisualbell
set t_vb=
set tm=500


"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Colors and Fonts
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Enable syntax highlighting
syntax enable

colorscheme torte 


" Set utf8 as standard encoding and en_US as the standard language
set encoding=utf8

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Files, backups and undo
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set backup
set backupdir=~/.vim/backup
set directory=~/.vim/tmp

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Text, tab and indent related
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Use spaces instead of tabs
set expandtab

" Be smart when using tabs ;)
set smarttab

" 1 tab == 4 spaces
set shiftwidth=4
set tabstop=4

" Linebreak on 500 characters
set lbr
set tw=500

set ai "Auto indent
set si "Smart indent
set wrap "Wrap lines

""""""""""""""""""""""""""""""
" => Visual mode related
""""""""""""""""""""""""""""""
" Visual mode pressing * or # searches for the current selection
" Super useful! From an idea by Michael Naumann
vnoremap <silent> * :call VisualSelection(‘f‘)<CR>
vnoremap <silent> # :call VisualSelection(‘b‘)<CR>

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Moving around, tabs, windows and buffers
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Return to last edit position when opening files (You want this!)
autocmd BufReadPost *
     \ if line("‘\"") > 0 && line("‘\"") <= line("$") |
     \   exe "normal! g`\"" |
     \ endif
" Remember info about open buffers on close
set viminfo^=%


""""""""""""""""""""""""""""""
" => Status line
""""""""""""""""""""""""""""""
" Always show the status line
set laststatus=2
"set statusline=%t%h%m%r%=[%b\ 0x%02B]\ \ \ %l,%c%V\ %P
set statusline=%2*%n\|%<%*%-.40F%2*\|\ %2*%M\ %3*%=%1*\ %1*%2.6l%2*x%1*%1.9(%c%V%)%2*[%1*%P%2*]%1*%2B

"""""""""""""""""""""""""""""
set cursorline

"""""""""""""""""""""""""""""    
"Sometimes the simplest things are the most valuable. The 2 lines in my .vimrc that are totally indispensable:

    nore ; :
    nore , ;

"Some fixes for common typos have saved me a surprising amount of time:
"
":command WQ wq
":command Wq wq
":command W w
":command Q q 

我组装的vimrc(备份)

标签:备份   vim   vimrc   linux   code   

原文地址:http://blog.csdn.net/christopherwu/article/details/38762191

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!