| Summary: | editors/vim-tiny: Unable to turn off syntax highlighting | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | bourne.identity <bourne.identity> |
| Component: | Individual Port(s) | Assignee: | Adam Weinberger <adamw> |
| Status: | Closed Not A Bug | ||
| Severity: | Affects Some People | CC: | adamw, fernape, obrien |
| Priority: | --- | Flags: | koobs:
maintainer-feedback+
|
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
bourne.identity@hotmail.com
2020-04-20 09:12:04 UTC
vim-tiny doesn't install any syntax highlighting files in the first place. In what context are you getting syntax highlighting that you want to disable? Can you show me how to reproduce the highlighting that you want to disable? I am not sure there is any pre-existing syntax highlighting with vim-tiny. The problem I run into is with vim-tiny parsing my .vimrc which has the following line as the last line : :syn off That line gets vim to throw the error that the file nosyntax.vim was not found. Since there is no pre-existing syntax highlighting with vim-tiny, it should be nice to pre-package nosyntax.vim into the vim-tiny package so that `:syn off` is interpreted normally, rather than yielding an unexpected error message. Thanks. Manish Jain The problem is that the same is true of indent configs. And macros, keymaps, spell files, colors, filetype plugins, compiler plugins, etc. The alternative that I'd go with is try/catch. In fact, I use it extensively in my own vimrc for precisely the same reason you brought up here. try syn off catch endtry Ah ! I was not aware of try/catch mechanism. That should solve my problem. Perhaps you can close this bug. And thanks a lot. Manish Jain |