Compare commits

..

2 Commits

Author SHA1 Message Date
e1a2bde564 [vim] vim configfile styleguide 2022-08-21 17:11:07 +03:00
832aec46d7 [vim] revamped somehow broken AirlineTheme command 2022-08-21 17:10:48 +03:00
2 changed files with 15 additions and 8 deletions

7
vim/ftplugin/vim.vim Normal file
View File

@@ -0,0 +1,7 @@
" show existing tab with 2 spaces width
set tabstop=2
" when indenting with '>', use 2 spaces width
set shiftwidth=2
" On pressing tab, insert 2 spaces
set expandtab

View File

@@ -35,16 +35,16 @@ call plug#end() "Перестать это делать
"
set term=xterm-256color
colorscheme atom-dark-256
AirlineTheme dark
let g:airline_theme='dark'
function ToggleColors()
if (g:colors_name == "atom-dark-256")
colorscheme antiphoton
AirlineTheme light
else
colorscheme atom-dark-256
AirlineTheme dark
endif
if (g:colors_name == "atom-dark-256")
colorscheme antiphoton
let g:airline_theme='light'
else
colorscheme atom-dark-256
let g:airline_theme='dark'
endif
endfunction
nnoremap <C-b> :call ToggleColors()<CR>