vim-rdf icon indicating copy to clipboard operation
vim-rdf copied to clipboard

"No such variable" error after installing Turtle syntax file

Open ldesousa opened this issue 4 years ago • 1 comments

I work with vim 8.2.3458 on Ubuntu 20.04. I just installed the Turtle syntax highlight file, whenever I open a Turtle file I get this error message:

Error detected while processing function <SNR>105_NetrwBrowseChgDir[197]..BufRead Autocommands for "*.ttl"..FileType Autocommands for "*"..Synt
ax Autocommands for "*"..function <SNR>4_SynSet[25]..script /home/duque004/.vim/syntax/turtle.vim:
line    9:
E108: No such variable: "b:current_syntax"
E108: No such variable: "b:current_syntax"

ldesousa avatar Nov 24 '21 15:11 ldesousa

Ah, this is because syntax/turtle.vim file depends on syntax/n3.vim. If you copy them both, it should work OK.

You might prefer installing all of vim-rdf as a package though. I personally use vim-plug for this to manage plugins nowadays. Or if you prefer more manual control, you can put vim-rdf inside a package start directory. See :help packages for details about that.

niklasl avatar Dec 17 '21 19:12 niklasl