read only flag

This commit is contained in:
ManjaroOne666 2018-03-18 00:55:19 +00:00
parent 9413680f65
commit a2cef1fe33
1 changed files with 11 additions and 5 deletions

View File

@ -11,7 +11,7 @@ function! GetStatus(isactive) "{{{
let l:statusline = '' let l:statusline = ''
" file percentage " file percentage
let l:statusline .= '%#FoldColumn#: ' let l:statusline .= '%#FoldColumn#: '
if a:isactive if a:isactive
let l:statusline .= '%#StatusLineNormal#' let l:statusline .= '%#StatusLineNormal#'
else else
@ -72,8 +72,13 @@ function! GetStatus(isactive) "{{{
if a:isactive if a:isactive
let l:statusline .= GetStatusFrag("mode() == 'i'", 'StatusLineDivInput', '%<', l:divider) let l:statusline .= GetStatusFrag("mode() == 'i'", 'StatusLineDivInput', '%<', l:divider)
endif endif
let l:statusline.= l:separator . '%*%=' let l:statusline.= l:separator . '%*%='
if !a:isactive
let l:statusline .= ' '
endif
"}}} "}}}
" path/filename.extension " path/filename.extension
@ -87,7 +92,8 @@ function! GetStatus(isactive) "{{{
let l:statusline.='%#StatusLineDotActive#' let l:statusline.='%#StatusLineDotActive#'
let l:statusline.="%{strlen(expand('%:e'))?'.':''}" let l:statusline.="%{strlen(expand('%:e'))?'.':''}"
let l:statusline.='%#StatusLineExtActive#' let l:statusline.='%#StatusLineExtActive#'
let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')}" let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')} "
let l:statusline .= '%#InterfaceSignWarning# %R' " TODO
let l:statusline.=' %*' let l:statusline.=' %*'
else else
let l:statusline.='%#StatusLineDir# ' let l:statusline.='%#StatusLineDir# '
@ -99,10 +105,10 @@ function! GetStatus(isactive) "{{{
let l:statusline.='%#StatusLineDot#' let l:statusline.='%#StatusLineDot#'
let l:statusline.="%{strlen(expand('%:e'))?'.':''}" let l:statusline.="%{strlen(expand('%:e'))?'.':''}"
let l:statusline.='%#StatusLineExt#' let l:statusline.='%#StatusLineExt#'
let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')}" let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')} "
let l:statusline .= '%#InterfaceSignWarning# %R' " TODO
let l:statusline.=' %*' let l:statusline.=' %*'
endif endif
let l:statusline .= '%#CRNormal#%r' " TODO color
"}}} "}}}
" linter status " " linter status "