其他分享
首页 > 其他分享> > 常用vim配制

常用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 = 'Þ'
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

标签:Plug,常用,sep,vim,symbols,配制,let,airline
来源: https://www.cnblogs.com/Saltywater/p/14861751.html