vim config, 主打一个简洁,自用备份
set background=dark
let g:ale_enabled = 1
filetype plugin indent on
filetype on
syntax enable
set showcmd “ Show (partial) command in status line.
set showmatch “ Show matching brackets.
set ignorecase “ Do case insensitive matching
set smartcase “ Do smart case matching
set incsearch “ Incremental search
set showmatch “ Show matching brackets.
set ignorecase “ Do case insensitive matching
set smartcase “ Do smart case matching
set incsearch “ Incremental search
set autowrite “ Automatically save before commands like :next and :make
set hidden “ Hide buffers when they are abandoned
set mouse=a “ Enable mouse usage (all modes)
setlocal noswapfile “ Don’t generate swap file
set bufhidden=hide “ Hide buffer when it’s abandoned
“ colorscheme evening “ Set color scheme
set number “ Show line numbers
set cursorline “ Highlight current line
set ruler “ Enable status bar ruler
set shiftwidth=2 “ Set << and >> command width to 2
set softtabstop=2 “ Make backspace delete 2 spaces at once
set tabstop=2 “ Set tab length to 2
set nobackup “ Don’t backup files when overwriting
set autochdir “ Automatically switch directory to file’s directory
set backupcopy=yes “ Set backup behavior to overwrite
set hlsearch “ Highlight search matches
set noerrorbells “ Disable error beeps
set novisualbell “ Disable visual bell
set t_vb= “ Clear terminal bell code
set matchtime=2 “ Short pause on matching bracket jump
set magic “ Enable magic pattern searching
set smartindent “ Enable smart indentation
set backspace=indent,eol,start “ Don’t delete with
set cmdheight=1 “ Set command line height to 1
set laststatus=2 “ Show status bar (default is 1, no bar)
set statusline=\ %<%F[%1*%M*%n*R%H]%=%y\ %0(%{&fileformat}% {&encoding}Ln\ %l,\ Col\ %c/%L%) “ Set status line format
“ set foldenable “ Enable folding
“ set foldmethod=syntax “ Enable syntax folding
“ set foldcolumn=0 “ Set fold column width to 0
“ setlocal foldlevel=1 “ Set fold level to 1
“ nnoremap