Skip to content

Commit

Permalink
make toggle work
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMF committed Aug 8, 2023
1 parent 869c508 commit 978fbed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion editors/vim/colors/nice-term.vim
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ let g:colors_name="nice-term"

" Uncomment and complete the commands you want to change from the default.

hi Normal cterm=none ctermbg=none ctermfg=none
hi Normal cterm=none ctermbg=none ctermfg=none cterm=none guibg=Black guifg=White

hi Cursor cterm=none ctermbg=none ctermfg=Red
hi CursorIM cterm=none ctermbg=none ctermfg=Red
Expand Down
2 changes: 1 addition & 1 deletion editors/vim/my_settings/keymap.vim
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ imap <Nul> <Space>
":map ;a i<<Esc>Ea><Esc>| " angles <> around a word
:map ;a <Esc>magq}``| " par command paragraph formatting
:map ;b i*<Esc>Ea*<Esc>| " * * around a word
:map ;c <Esc>:call My_Colours_Toggle()<CR>| " toggle between my colorschemes dark and lignt
:map ;c <Esc>:colorscheme nice<CR>| " switch to preferred colorscheme
:map ;cc <Esc>:call My_Colours_Change()<CR>| " toggle between my colorschemes and vim's (gui and con)
:map ;cu i{<Esc>Ea}<Esc>| " curlies {} around a word
:map ;cf <Esc>:call My_Fonts_Change()<CR>|
Expand Down
10 changes: 4 additions & 6 deletions editors/vim/my_settings/scripts.vim
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ augroup END
: let s:colors = "dark"
: endif
: if has ("gui_running")
: if g:colors_name == "nice" || g:colors_name == "nice-gui"
: if g:colors_name == "nice" || g:colors_name == "nice-gui" || g:colors_name == "nice-term"
: if s:colors == "light"
: let s:colors = "dark"
: hi Normal guifg=White guibg=Black
Expand All @@ -104,13 +104,11 @@ augroup END
: let s:colors = "light"
: colorscheme nice
: endif
: endif
: else
: if g:colors_name == "nice-term"
: execute "colorscheme" s:colorscheme
: else
: colorscheme nice-term
: execute "colorscheme" s:colorscheme
: endif
: else
: colorscheme nice-term
: endif
:endfunction

Expand Down

0 comments on commit 978fbed

Please sign in to comment.