Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting breaks sometimes #216

Open
salcode opened this issue May 6, 2021 · 1 comment
Open

Syntax highlighting breaks sometimes #216

salcode opened this issue May 6, 2021 · 1 comment

Comments

@salcode
Copy link
Owner

salcode commented May 6, 2021

See Fix syntax highlighting

This article has a number of things to explore but the most actionable seems to be Using a mapping to fix when broken which points out running:

:syntax sync fromstart

should reset the syntax highlighting and correct the problem at hand.

Along with this, they offer up mappings for this:

noremap <F12> <Esc>:syntax sync fromstart<CR>
inoremap <F12> <C-o>:syntax sync fromstart<CR>
@salcode
Copy link
Owner Author

salcode commented May 6, 2021

Perhaps we want to add a command for this, e.g. :SyntaxHighlightingReset with something like

command! SyntaxHighlightingReset syntax sync fromstart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant