From 76be1a28ac7aa5d060b7f213e0f0d03aafeaf603 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Sat, 9 May 2015 23:57:08 +0800 Subject: [PATCH] deal with statusline --- _vimrc | 14 ++++++++++++-- vundle_vimrc | 3 +++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/_vimrc b/_vimrc index 5730ac4..18d1f86 100644 --- a/_vimrc +++ b/_vimrc @@ -109,6 +109,7 @@ endif set nobomb "不自动设置字节序标记 set guifont=Courier\ New\:h12 +" set guifont=Droid\ Sans\ Mono\ for\ Powerline\:h12 set guifontwide=NSimsun\:h12 @@ -166,7 +167,7 @@ hi User3 ctermbg=blue ctermfg=green guibg=blue guifg=green " always show the status line set laststatus=2 set statusline= -"full filename modified flag read only flag help file flag Preview +" full filename modified flag read only flag help file flag Preview set statusline=%1*%F%m%r%h%w\ set statusline+=%2*[%{strlen(&fenc)?&fenc:'none'}, "file encoding set statusline+=%{&ff}] "file format @@ -178,7 +179,6 @@ set statusline+=\ %P - " Plugin settings " NERDTree map :NERDTreeToggle @@ -196,6 +196,16 @@ let g:indent_guides_enable_on_vim_startup = 1 let g:jedi#completions_command = "" let g:jedi#popup_on_dot = 0 +" powerline +" hide the default mode text (e.g. -- INSERT -- below the statusline) +" set t_Co=256 +" let g:Powerline_symbols='fancy' + + +" general mapping +" no ddkP +" no ddp + " Delete trailing white space on save, useful for Python and CoffeeScript ;) func! DeleteTrailingWS() exe "normal mz" diff --git a/vundle_vimrc b/vundle_vimrc index 2f68625..bffeac4 100644 --- a/vundle_vimrc +++ b/vundle_vimrc @@ -28,6 +28,9 @@ Plugin 'ervandew/supertab' Plugin 'Raimondi/delimitMate' "show tabs Plugin 'nathanaelkane/vim-indent-guides' +" Plugin 'powerline/powerline', {'rtp': 'powerline/bindings/vim/'} +" Plugin 'Lokaltog/vim-powerline' +" Plugin 'bling/vim-airline' " plugin from http://vim-scripts.org/vim/scripts.html Plugin 'L9'