News for hackers. Stuff that matters.
Re:Neovim 0.5 is overpowering by bisby on Wednesday May 26, 2021 @01:55PM (#27293861)
That explains a lot. I often have a syntax highlighting quirk where it thinks that a fold has an open quotation mark in it. And will highlight everything below the fold as if it's a part of a string. I unfold, and clears it all up. but it's annoying in the moment.

I look forward to all of this

Re:Neovim 0.5 is overpowering by alpaca128 on Wednesday May 26, 2021 @02:02PM (#27293927)
You can often fix it with `:syntax sync fromstart`, but Vim's syntax highlighting just keeps being a bit weird.
Re:Neovim 0.5 is overpowering by nucleardog on Wednesday May 26, 2021 @06:05PM (#27296696)
I usually just keep space bound along the lines of:

    :noremap <silent> <Space> :silent noh <Bar>echo<cr>:syn sync fromstart<cr>

This recalculates syntax highlighting as well as removes highlighting on search results/etc.

Basically, whenever stuff "looks weird", just mash space in normal mode and it fixes it. The fact that I have this bound to something like space should tell you how often I end up using it. :)

Re:Neovim 0.5 is overpowering by alpaca128 on Thursday May 27, 2021 @02:44AM (#27300130)
I recently gained a liking to search result highlighting, it's much more useful than I originally thought. The problem is not the highlighting itself but its persistence. I added a few autocmds to automatically hide it in certain events and a manual shortcut. Works better for me now, though it is annoying that `:noh` has some weird special status that makes it nonfunctional in autocmd.
Re:Neovim 0.5 is overpowering by ajitid on Thursday May 27, 2021 @05:18AM (#27300865)
I evaluated few plugins around this and this one I liked the most: https://github.com/romainl/vim-cool
Re:Neovim 0.5 is overpowering by alpaca128 on Thursday May 27, 2021 @07:27AM (#27301680)
I tend to avoid plugins for things that I can just do myself with a few keybindings or autocmds. I like that aspect of Vim (and Emacs) where the user is less reliant on plugins because there isn't really a clear, fixed boundary between configuration, scripting and external extensions. Though it comes with downsides (e.g. when plugin developers make the questionable decision of overriding user configuration).
Re:Neovim 0.5 is overpowering by kbenson on Wednesday May 26, 2021 @05:23PM (#27296295)
I added 'autocmd BufEnter * syntax sync minlines=4000' to my .vimrc to make it buffer more of large files initially, so it gets less confused when you reopen a file and it resumes at a prior location deep inside and has no syntax highlighting.

I guess fromstart would work as well, but is probably best manually run like you do so a very large file doesn't bring the system to a halt.

Re:Neovim 0.5 is overpowering by OJFord on Thursday May 27, 2021 @03:54AM (#27300454)
That's why that happens, and a fix - thanks!