- 设置好%home%
- %home%下设置
_vimrc
,_vimfiles
-
darcula
字体各种报错,选择了gvim自带的ron
- 各种fonts,主要powline-fonts,windows可以下载zip后,搜索
ttf
,全选中进行安装
- gvim在配置文件
_vimrc
中设置字体set guifont=Source_Code_Pro_for_Powerline:h14
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
" 如果刚开始plugininstall无效,考虑此处路径是否指向正确的地方
set rtp+=~/_vimfiles/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
"theme
colorscheme ron
syntax on
" airline
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" air-line
" "https://vi.stackexchange.com/questions/3359/how-do-i-fix-the-status-bar-symbols-in-the-airline-plugin"
let g:airline_powerline_fonts = 1
let g:airline_theme='simple'
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
" unicode symbols
let g:airline_left_sep = '»'
let g:airline_left_sep = '▶'
let g:airline_right_sep = '«'
let g:airline_right_sep = '◀'
let g:airline_symbols.linenr = '␊'
let g:airline_symbols.linenr = '
'
let g:airline_symbols.linenr = '¶'
let g:airline_symbols.branch = '⎇'
let g:airline_symbols.paste = 'ρ'
let g:airline_symbols.paste = 'Þ'
let g:airline_symbols.paste = '∥'
let g:airline_symbols.whitespace = 'Ξ'
"
" airline symbols
" 字体选择生效,这部分才会在gui显示正常
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 = ''
" highlight code
Plugin 'scrooloose/syntastic'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" encoding
set encoding=utf-8
" fonts
"windows终端显示不正常,尝试使用此部分配置
if has('gui_running')
set guioptions-=T " no toolbar
colorscheme ron
set lines=30 columns=108 linespace=0
if has('gui_win32')
set guifont=Source_Code_Pro_for_Powerline:h14:cANSI
else
set guifont=Source_Code_Pro_for_Powerline:h14
endif
endif
"set guifont=Source_Code_Pro_for_Powerline:h10
"set lines=35 columns=118
winpos 300 0
" split
set splitbelow
set splitright
"split navigations
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" autoindent
au BufNewFile,BufRead *.py,*.md,*.dot
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=79 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix
au BufNewFile,BufRead *.js, *.html, *.css
\ set tabstop=2 |
\ set softtabstop=2 |
\ set shiftwidth=2
set relativenumber
set nu
" map the keys 'jk' to the escape key to improve efficiency.
imap jk <Esc>