Skip to content

Instantly share code, notes, and snippets.

@dmi3mis
Forked from dragonken/.vimrc
Last active February 19, 2021 20:35
Show Gist options
  • Select an option

  • Save dmi3mis/756ee5d8def5d9608bf6e2f9ba809da0 to your computer and use it in GitHub Desktop.

Select an option

Save dmi3mis/756ee5d8def5d9608bf6e2f9ba809da0 to your computer and use it in GitHub Desktop.

Revisions

  1. dmi3mis revised this gist Feb 19, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab


    if &diff
    " change vimdiff color scheme
    " 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
  2. dmi3mis revised this gist Feb 19, 2021. 2 changed files with 12 additions and 13 deletions.
    13 changes: 12 additions & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,15 @@ 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
    autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab



    if &diff
    " change vimdiff color scheme
    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

    12 changes: 0 additions & 12 deletions mydiff-altcolorcheme.vim
    Original file line number Diff line number Diff line change
    @@ -1,12 +0,0 @@
    cat .vimrc

    if &diff
    colorscheme mycolorscheme.vim
    endif


    cat ~/.vim/colors/mycolorscheme.vim
    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
  3. dmi3mis renamed this gist Feb 19, 2021. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion mycolorscheme.vim → mydiff-altcolorcheme.vim
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,11 @@
    "" ~/.vim/colors/mycolorscheme.vim
    cat .vimrc

    if &diff
    colorscheme mycolorscheme.vim
    endif


    cat ~/.vim/colors/mycolorscheme.vim
    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
  4. dmi3mis revised this gist Feb 19, 2021. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions mycolorscheme.vim
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    "" ~/.vim/colors/mycolorscheme.vim
    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
  5. @dragonken dragonken revised this gist Aug 5, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .vimrc
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    syntax on
    filetype plugin indent on

    # Get the 2-space YAML as the default when hit carriage return after the colon
    "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
  6. @dragonken dragonken revised this gist Feb 16, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,5 @@
    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
  7. @dragonken dragonken created this gist Feb 16, 2017.
    2 changes: 2 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # 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