Skip to content

Instantly share code, notes, and snippets.

@dmi3mis
Forked from dragonken/.vimrc
Last active February 19, 2021 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmi3mis/756ee5d8def5d9608bf6e2f9ba809da0 to your computer and use it in GitHub Desktop.
Save dmi3mis/756ee5d8def5d9608bf6e2f9ba809da0 to your computer and use it in GitHub Desktop.
YAML space indent for vim
syntax on
filetype plugin indent on
"Get the 2-space YAML as the default when hit carriage return after the colon
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
if &diff
" change vimdiff color scheme https://stackoverflow.com/questions/2019281/load-different-colorscheme-when-using-vimdiff
highlight DiffAdd cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
highlight DiffDelete cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
highlight DiffChange cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
highlight DiffText cterm=bold ctermfg=10 ctermbg=88 gui=none guifg=bg guibg=Red
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment