首页 > 代码库 > 我组装的vimrc(备份)
我组装的vimrc(备份)
先来个低幼版方案,这是芝麻街之类儿童节目VI配置而成的吧? 接着看到这个脑中浮现出屏幕前一双马尾萝莉吃着棒棒糖写前端的画面。 【救命!太甜无法直视.. 】 昨天无意中用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(备份)
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。