Change adjust color for tab and status bar's.
This commit is contained in:
parent
a65e18cedd
commit
4e016e7b67
2 changed files with 29 additions and 27 deletions
|
@ -19,21 +19,21 @@ hi Visual ctermbg=241
|
|||
hi ColorColumn ctermbg=250
|
||||
|
||||
hi TabLine cterm=None ctermfg=252 ctermbg=236
|
||||
hi TabLineSel cterm=None ctermfg=0 ctermbg=111
|
||||
hi TabLineSel cterm=None ctermfg=0 ctermbg=208
|
||||
hi TabLineFill cterm=None ctermfg=None ctermbg=236
|
||||
|
||||
" для заголовков markdown
|
||||
hi Title cterm=bold ctermfg=171
|
||||
|
||||
"Цвета, используемые в статусной строке
|
||||
hi StatusLineEditorMode ctermfg=0 ctermbg=111
|
||||
hi StatusLineEditorMode ctermfg=0 ctermbg=190
|
||||
hi StatusLineFileName cterm=bold ctermfg=252 ctermbg=NONE
|
||||
hi StatusLineFileFormat ctermfg=247 ctermbg=NONE
|
||||
hi StatusLineEmpty ctermbg=NONE
|
||||
hi StatusLineReadOnlyFlag ctermfg=247 ctermbg=NONE
|
||||
hi StatusLineEncoding ctermfg=247 ctermbg=NONE
|
||||
hi StatusLineFileType cterm=bold ctermfg=252 ctermbg=NONE
|
||||
hi StatusLinePosition ctermfg=0 ctermbg=111
|
||||
hi StatusLinePosition ctermfg=0 ctermbg=190
|
||||
|
||||
"Vim-Gitgutter цвета
|
||||
hi SignColumn ctermbg=NONE
|
||||
|
|
50
vimrc
50
vimrc
|
@ -1,3 +1,4 @@
|
|||
" === Пользовательские функции ===
|
||||
"Функция получения текущего режима редактора
|
||||
function GetMode()
|
||||
let l:editor_mode = mode()
|
||||
|
@ -37,21 +38,6 @@ function GetMode()
|
|||
endif
|
||||
endfunction
|
||||
|
||||
"Менеджер плагинов: Vim-Plug
|
||||
"Подключение плагинов (для установки - :PlugInstal)
|
||||
call plug#begin('~/.vim/plugged')
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
call plug#end()
|
||||
|
||||
"Включаем подсветку синтаксиса
|
||||
syntax on
|
||||
|
||||
set nocompatible
|
||||
" Включение поддержки мыши
|
||||
"set mouse=a
|
||||
|
||||
set encoding=utf8
|
||||
|
||||
function TabLine()
|
||||
let s = ''
|
||||
|
||||
|
@ -83,6 +69,30 @@ function TabLabel(n)
|
|||
return bufname(buflist[winnr - 1])
|
||||
endfunction
|
||||
|
||||
function LessBehaviour()
|
||||
if (!&modifiable || &ro)
|
||||
set nonumber
|
||||
set nospell
|
||||
set laststatus=0
|
||||
set cmdheight=1
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" === Плагины ===
|
||||
"Менеджер плагинов: Vim-Plug
|
||||
"Подключение плагинов (для установки - :PlugInstal)
|
||||
call plug#begin('~/.vim/plugged')
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
call plug#end()
|
||||
|
||||
" === Настройки ===
|
||||
"Включаем подсветку синтаксиса
|
||||
syntax on
|
||||
|
||||
set nocompatible
|
||||
|
||||
set encoding=utf8
|
||||
|
||||
set showtabline=2
|
||||
set tabline=%!TabLine()
|
||||
|
||||
|
@ -91,7 +101,7 @@ set number
|
|||
set numberwidth=4
|
||||
set cursorline
|
||||
|
||||
"Не показывать режим (он отображается в нашей строке статуса)
|
||||
"Не показывать режим (он отображается в кастомной строке статуса)
|
||||
set noshowmode
|
||||
|
||||
"Настройки строки статуса
|
||||
|
@ -156,14 +166,6 @@ colorscheme custom_scheme_dark
|
|||
"Довольно удобная реализация поддержки русских букв (говорят официальная)
|
||||
set langmap=ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKLMNOPQRSTUVWXYZ,фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz
|
||||
|
||||
function LessBehaviour()
|
||||
if (!&modifiable || &ro)
|
||||
set nonumber
|
||||
set nospell
|
||||
set laststatus=0
|
||||
set cmdheight=1
|
||||
endif
|
||||
endfunction
|
||||
|
||||
"Автоматическое включение LessBehaviour
|
||||
augroup ReadOnly
|
||||
|
|
Loading…
Reference in a new issue