vim:aucmd: Don't overwrite constants when sourcing

When resourcing the vimscript (i.e. writing it) currently three errors
are printed that constant values cannot be overwritten.
This commit is contained in:
2024-04-03 13:07:57 +02:00
parent 6dd226d305
commit e84eaba7a2

View File

@@ -1,9 +1,11 @@
" Autocommands """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Bitfield for highlight_current augroup
const s:CLEAR_HIGHS_CWORD = 1
const s:CLEAR_HIGHS_VISUAL = 2
const s:CLEAR_HIGHS_ALL = 3
if !exists('s:CLEAR_HIGHS_ALL')
const s:CLEAR_HIGHS_CWORD = 1
const s:CLEAR_HIGHS_VISUAL = 2
const s:CLEAR_HIGHS_ALL = 3
endif
" Terminal
if (has('nvim'))