" ===main setting commands let mapleader=" " syntax on colorscheme evening set cursorline " set cursorcolumn set background=dark set noeb vb t_vb= set nobackup set noundofile set nohlsearch set number set relativenumber set showcmd set ignorecase set smartcase set tabstop=4 set expandtab set shiftwidth=4 set autoindent set fileencodings=utf-8,UTF-8,gbk,ucs-bom,cp936,latin1 set encoding=utf-8 set guifont=Consolas:h10 set clipboard=unnamed " ===screen split noremap sk :set nosplitbelow:split noremap sj :set splitbelow:split noremap sh :set nosplitright:vsplit noremap sl :set splitright:vsplit noremap q :q noremap w :w noremap :q! noremap K 5k noremap J 5j noremap H 5h noremap L 5l map k map j map h map l map :res +5 map :res -5 map :vertical resize -5 map :vertical resize +5 vnoremap ' di''hp vnoremap [ di[]hp vnoremap { di{}hp vnoremap ( di()hp vnoremap < di<>hp inoremap o inoremap O " === Vim-Plugs let plugpath = '~/.vim/plugged' call plug#begin(plugpath) Plug 'junegunn/vim-plug' Plug 'preservim/nerdtree' Plug 'gcmt/wildfire.vim' Plug 'tpope/vim-surround' Plug 'mg979/vim-visual-multi' call plug#end() " === nerdtree config noremap :NERDTreeToggle autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif