zoukankan      html  css  js  c++  java
  • .vimrc

    "
    " A (not so) minimal vimrc.
    "
    
    " You want Vim, not vi. When Vim finds a vimrc, 'nocompatible' is set anyway.
    " We set it explicitely to make our position clear!
    set nocompatible
    
    filetype plugin indent on  " Load plugins according to detected filetype.
    syntax on                  " Enable syntax highlighting.
    
    set autoindent             " Indent according to previous line.
    set expandtab              " Use spaces instead of tabs.
    set softtabstop =4         " Tab key indents by 4 spaces.
    set shiftwidth  =4         " >> indents by 4 spaces.
    set shiftround             " >> indents to next multiple of 'shiftwidth'.
    
    set backspace   =indent,eol,start  " Make backspace work as you would expect.
    set hidden                 " Switch between buffers without having to save first.
    set laststatus  =2         " Always show statusline.
    set display     =lastline  " Show as much as possible of the last line.
    
    set showmode               " Show current mode in command-line.
    set showcmd                " Show already typed keys when more are expected.
    
    set incsearch              " Highlight while searching with / or ?.
    set hlsearch               " Keep matches highlighted.
    
    set ttyfast                " Faster redrawing.
    set lazyredraw             " Only redraw when necessary.
    
    set splitbelow             " Open new windows below the current window.
    set splitright             " Open new windows right of the current window.
    
    set cursorline             " Find the current line quickly.
    set wrapscan               " Searches wrap around end-of-file.
    set report      =0         " Always report changed lines.
    set synmaxcol   =200       " Only highlight the first 200 columns.
    
    set list                   " Show non-printable characters.
    if has('multi_byte') && &encoding ==# 'utf-8'
      let &listchars = 'tab:▸ ,extends:❯,precedes:❮,nbsp:±'
    else
      let &listchars = 'tab:> ,extends:>,precedes:<,nbsp:.'
    endif
    
    " The fish shell is not very compatible to other shells and unexpectedly
    " breaks things that use 'shell'.
    if &shell =~# 'fish$'
      set shell=/bin/bash
    endif
    
    " Put all temporary files under the same directory.
    " https://github.com/mhinz/vim-galore#handling-backup-swap-undo-and-viminfo-files
    set backup
    set backupdir   =$HOME/.vim/files/backup/
    set backupext   =-vimbackup
    set backupskip  =
    set directory   =$HOME/.vim/files/swap//
    set updatecount =100
    set undofile
    set undodir     =$HOME/.vim/files/undo/
    set viminfo     ='100,n$HOME/.vim/files/info/viminfo
     
  • 相关阅读:
    day 26 python2和python3的区别 模块logging 的高级版,collections 模块,random模块
    常用模块:time,os,sys,rondom
    模块 hashlib(算法) configparser(配置) logging(日志)
    序列化,json pickle,shelve
    面向对象的封装,多态,单例模式
    属性,类方法,静态方法,反射
    面向对象的接口类 以及鸭子类型
    面向对象的继承
    面向对象的介绍
    reset internet explorer settings with registry
  • 原文地址:https://www.cnblogs.com/zuoruining/p/7357777.html
Copyright © 2011-2022 走看看