0

I an studying how to use vim and I don't understand why 'const' is always highlighted.

the question looks like this

My vimrc:

set background=dark
set tabstop=4
set softtabstop=4
set shiftwidth=4

set autoindent
set smartindent

colorscheme janah
map <F3> :NERDTreeToggle<CR>

"set hlsearch          
set nowrap               
set shortmess=atI        

set nobackup
set autoread
"set showmatch
set ruler
autocmd InsertLeave * se nocul
autocmd InsertEnter * se cul

inoremap jj <Esc>

my plugs: auto-pairs, nerdtree, vim-javascript

romainl
  • 186,200
  • 21
  • 280
  • 313
KumaC
  • 1
  • Is this more appropriate for https://superuser.com? – evolutionxbox Jan 06 '21 at 12:25
  • This looks a lot like your colorscheme's highlighting for search. Do `:nohlsearch` to disable it temporarily. – romainl Jan 06 '21 at 12:32
  • 1
    @evolutionxbox I didn't know about it until I read your comment. I will try – KumaC Jan 06 '21 at 12:40
  • StackOverflow is more for programming questions. This is more of a software configuration issue. -- Unless you were coding your own syntax highlights that is. – evolutionxbox Jan 06 '21 at 12:43
  • @ romainl I didn't search for anything but it works. thank you – KumaC Jan 06 '21 at 12:45
  • @evolutionxbox I know it and thanks for your introduction – KumaC Jan 06 '21 at 12:54
  • Does this answer your question? [Vim clear last search highlighting](https://stackoverflow.com/questions/657447/vim-clear-last-search-highlighting) – Doktor OSwaldo Jan 08 '21 at 07:27
  • 1
    @evolutionxbox I would suggest vim.stackexchange.com. It's a combination of how (most likely) the default JavaScript syntax highlighter tags the `const` keyword and wha the `janah` color scheme specifies values with those tags to be displayed. – chepner Jan 08 '21 at 20:47

0 Answers0