diff --git a/colors/my_first_scheme.vim b/colors/my_first_scheme.vim index 9e28012..0870dc9 100644 --- a/colors/my_first_scheme.vim +++ b/colors/my_first_scheme.vim @@ -19,7 +19,6 @@ hi Visual ctermbg=241 "Цвета, используемые в статусной строке hi StatusLineEditorMode ctermfg=15 ctermbg=57 cterm=bold -hi StatusLineGitBranch ctermfg=15 ctermbg=63 cterm=bold hi StatusLineFilePath ctermfg=0 ctermbg=15 hi StatusLineFileFormat ctermfg=0 ctermbg=251 hi StatusLineEmpty ctermbg=239 diff --git a/vimrc b/vimrc index 5a403da..54cf6c2 100644 --- a/vimrc +++ b/vimrc @@ -32,17 +32,6 @@ function GetMode() endif 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 "Подключение плагинов (для установки - :PlugInstal) call plug#begin('~/.vim/plugged') @@ -72,9 +61,6 @@ set laststatus=2 set statusline= set statusline+=%#StatusLineEditorMode#\ %{GetMode()}\ -if strlen(GetGitBranchName()) > 0 - set statusline+=%#StatusLineGitBranch#\ %{StatuslineGetGitBranch()}\ -endif set statusline+=%#StatusLineFileName#\ %f\ set statusline+=%#StatusLineFileFormat#\ %{&ff}\ set statusline+=%#StatusLineEmpty#%=