[vim] New light colorscheme added with toggle option

This commit is contained in:
2022-08-21 16:38:20 +03:00
parent 05c40d2882
commit 2b34d08bf5
2 changed files with 230 additions and 3 deletions

View File

@@ -1,14 +1,31 @@
filetype plugin indent on "Включает определение типа файла, загрузку...
"... соответствующих ему плагинов и файлов отступов
set encoding=utf-8 "Ставит кодировку UTF-8
set encoding=utf-8
syntax enable
set term=xterm-256color
set timeoutlen=200 ttimeoutlen=0 " https://www.johnhawthorn.com/2012/09/vi-escape-delays/
colorscheme atom-dark-256
set number relativenumber
set backspace=indent,eol,start
filetype plugin indent on
"
" Colors configuration
"
set term=xterm-256color
colorscheme atom-dark-256
AirlineTheme dark
function ToggleColors()
if (g:colors_name == "atom-dark-256")
colorscheme antiphoton
AirlineTheme light
else
colorscheme atom-dark-256
AirlineTheme dark
endif
endfunction
nnoremap <C-b> :call ToggleColors()<CR>
" Changing <leader> key from \ to <space>
nnoremap <SPACE> <Nop>
let mapleader=" "
@@ -31,6 +48,7 @@ endif
call plug#begin('~/.vim/bundle') "Начать искать плагины в этой директории
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'Yggdroot/indentLine'
Plug 'airblade/vim-gitgutter'
Plug 'jreybert/vimagit'