mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-04 23:17:22 +01:00
Add own statusline till we get powerline to work as expected
This commit is contained in:
18
vimrc
18
vimrc
@@ -83,6 +83,21 @@ au GUIEnter * set vb t_vb=
|
|||||||
|
|
||||||
syntax enable " enable syntax highlighting
|
syntax enable " enable syntax highlighting
|
||||||
|
|
||||||
|
" Statusline
|
||||||
|
|
||||||
|
if has('statusline')
|
||||||
|
set laststatus=2
|
||||||
|
|
||||||
|
" Broken down into easily includeable segments
|
||||||
|
set statusline=%<%f\ " Filename
|
||||||
|
set statusline+=%w%h%m%r " Options
|
||||||
|
set statusline+=%{fugitive#statusline()} " Git Hotness
|
||||||
|
set statusline+=\ [%{&ff}/%Y] " filetype
|
||||||
|
set statusline+=\ [%{getcwd()}] " current dir
|
||||||
|
"set statusline+=\ [A=\%03.3b/H=\%02.2B] " ASCII / Hexadecimal value of char
|
||||||
|
set statusline+=%=%-14.(%l,%c%V%)\ %p%% " Right aligned file nav info
|
||||||
|
endif
|
||||||
|
|
||||||
" VIM 7.3 FEATURES
|
" VIM 7.3 FEATURES
|
||||||
|
|
||||||
if v:version >= 703
|
if v:version >= 703
|
||||||
@@ -248,9 +263,6 @@ au FileType python set noexpandtab
|
|||||||
au FileType javascript setlocal ts=2 sts=2 sw=2
|
au FileType javascript setlocal ts=2 sts=2 sw=2
|
||||||
au BufRead,BufNewFile *.json set ft=json
|
au BufRead,BufNewFile *.json set ft=json
|
||||||
|
|
||||||
" always show status line
|
|
||||||
set laststatus=2
|
|
||||||
|
|
||||||
|
|
||||||
"" MISC FUNCTIONS
|
"" MISC FUNCTIONS
|
||||||
function! FileSize()
|
function! FileSize()
|
||||||
|
|||||||
Reference in New Issue
Block a user