I have the following lines in my .vimrc:
nnoremap <nowait><silent> ¡ :colorscheme tokyonight<CR>
nnoremap <nowait><silent> ™ :colorscheme tone<CR>
nnoremap <nowait><silent> £ :colorscheme darktooth<CR>
nnoremap <nowait><silent> ¢ :colorscheme soft-morning<CR>
nnoremap <nowait><silent> ∞ :colorscheme gruvbox<CR>
nnoremap <nowait><silent> § :colorscheme shirotelin<CR>
hi Normal ctermbg=NONE guibg=NONE
hi! NonText ctermbg=NONE guibg=NONE guifg=NONE ctermfg=NONE
How should I do to make all of these nnoremap mappings to execute the two lines
hi Normal ctermbg=NONE guibg=NONE
hi! NonText ctermbg=NONE guibg=NONE guifg=NONE ctermfg=NONE
at the end?
function!instead or I will get error. Is the reason because I need to call it many times? – NeoZoom.lua Apr 12 '21 at 11:36!: This is often needed!when you create a function. This allows to redefine a function with the same name which can happen when you source your vimrc several time. See:h E122– statox Apr 12 '21 at 11:49