常用vim配制

call plug#begin(‘~/vimfiles/pluggin‘)
Plug ‘preservim/nerdtree‘
Plug ‘vim-airline/vim-airline‘
Plug ‘lambdalisue/vim-fullscreen‘
Plug ‘altercation/vim-colors-solarized‘
Plug ‘vim-airline/vim-airline-themes‘
call plug#end()
set nu ts=4 sw=4
set cindent
syntax enable
set backspace=indent,eol,start
set guifont=Consolas_for_Powerline_FixedD:h14:cANSI:qDRAFT
map<C-p> : ! g++ %<.cpp -o %< -O2 --std=c++11 -Wall -m32 -Wl,--stack=200000000 && %<<CR>
set rnu
imap ` <ESC>
set encoding=utf-8
set ambiwidth=double
set langmenu=zh_CN.UTF-8

let g:airline_powerline_fonts=1
let g:airline_theme=‘solarized‘
let g:airline#extensions#tabline#enabled = 1
if !exists(‘g:airline_symbols‘)
let g:airline_symbols = {}
endif
let g:airline_left_sep = ‘?‘
let g:airline_left_alt_sep = ‘?‘
let g:airline_right_sep = ‘?‘
let g:airline_right_alt_sep = ‘?‘
let g:airline_symbols.branch = ‘?‘
let g:airline_symbols.readonly = ‘?‘
let g:airline_symbols.linenr = ‘?‘
let g:airline_symbols.notexists = ‘?‘
let g:airline_symbols.whitespace = ‘Ξ‘
let g:airline_symbols.paste = ‘ρ‘
let g:airline_symbols.paste = ‘T‘
let g:airline_symbols.paste = ‘∥‘
let g:airline_symbols.colnr = ‘ ℅:‘
let g:airline_symbols.linenr = ‘?‘
let g:airline_symbols.maxlinenr = ‘㏑‘

 

map <C-n> :NERDTree<CR>
map <C-tab> :bn<CR>
set foldlevelstart=99
set foldmethod=indent
nnoremap j h
nnoremap k j
nnoremap l k
nnoremap ; l
vnoremap j h
vnoremap k j
vnoremap l k
vnoremap ; l
map ` <ESC>
colorscheme solarized

常用vim配制

上一篇:C# WPF全局捕获异常 防止程序崩溃闪退


下一篇:shell脚本—awk