Browse Source

deal with statusline

remotes/origin/master
Ein Verne 10 years ago
parent
commit
76be1a28ac
  1. 14
      _vimrc
  2. 3
      vundle_vimrc

14
_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 <F2> :NERDTreeToggle<cr>
@ -196,6 +196,16 @@ let g:indent_guides_enable_on_vim_startup = 1
let g:jedi#completions_command = "<C-N>"
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 <up> ddkP
" no <down> ddp
" Delete trailing white space on save, useful for Python and CoffeeScript ;)
func! DeleteTrailingWS()
exe "normal mz"

3
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'

Loading…
Cancel
Save