Remove git branch from status line.
This commit is contained in:
parent
af07768694
commit
ade3b3b7d1
2 changed files with 0 additions and 15 deletions
|
@ -19,7 +19,6 @@ hi Visual ctermbg=241
|
||||||
|
|
||||||
"Цвета, используемые в статусной строке
|
"Цвета, используемые в статусной строке
|
||||||
hi StatusLineEditorMode ctermfg=15 ctermbg=57 cterm=bold
|
hi StatusLineEditorMode ctermfg=15 ctermbg=57 cterm=bold
|
||||||
hi StatusLineGitBranch ctermfg=15 ctermbg=63 cterm=bold
|
|
||||||
hi StatusLineFilePath ctermfg=0 ctermbg=15
|
hi StatusLineFilePath ctermfg=0 ctermbg=15
|
||||||
hi StatusLineFileFormat ctermfg=0 ctermbg=251
|
hi StatusLineFileFormat ctermfg=0 ctermbg=251
|
||||||
hi StatusLineEmpty ctermbg=239
|
hi StatusLineEmpty ctermbg=239
|
||||||
|
|
14
vimrc
14
vimrc
|
@ -32,17 +32,6 @@ function GetMode()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"Git branch
|
|
||||||
function GetGitBranchName()
|
|
||||||
return system('git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d "\n"')
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function StatuslineGetGitBranch()
|
|
||||||
let l:branch = GetGitBranchName()
|
|
||||||
|
|
||||||
return strlen(l:branch) > 0 ? l:branch : ''
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
"Менеджер плагинов: Vim-Plug
|
"Менеджер плагинов: Vim-Plug
|
||||||
"Подключение плагинов (для установки - :PlugInstal)
|
"Подключение плагинов (для установки - :PlugInstal)
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
|
@ -72,9 +61,6 @@ set laststatus=2
|
||||||
|
|
||||||
set statusline=
|
set statusline=
|
||||||
set statusline+=%#StatusLineEditorMode#\ %{GetMode()}\
|
set statusline+=%#StatusLineEditorMode#\ %{GetMode()}\
|
||||||
if strlen(GetGitBranchName()) > 0
|
|
||||||
set statusline+=%#StatusLineGitBranch#\ %{StatuslineGetGitBranch()}\
|
|
||||||
endif
|
|
||||||
set statusline+=%#StatusLineFileName#\ %f\
|
set statusline+=%#StatusLineFileName#\ %f\
|
||||||
set statusline+=%#StatusLineFileFormat#\ %{&ff}\
|
set statusline+=%#StatusLineFileFormat#\ %{&ff}\
|
||||||
set statusline+=%#StatusLineEmpty#%=
|
set statusline+=%#StatusLineEmpty#%=
|
||||||
|
|
Loading…
Reference in a new issue