I do a lot of console work under vim, for which I prefer the package vim-tiny. The vim command packaged in vim-tiny runs into a nasty problem trying to disable syntax highlighting (with the vim command `:syn off`). vim reports that it was unable to find the file nosyntax.vim (under its data directory, probably under /usr/local/share).
Could the nosyntax.vim file be kindly inserted into the vim-tiny package so that the user can resort to distraction-free no-syntax environment when required ?
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 :
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.
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.
Ah ! I was not aware of try/catch mechanism. That should solve my problem.
Perhaps you can close this bug.
And thanks a lot.