It could also be that /usr/share/vim/vim/syntax/syntax.vim exists, in which case, as an alternative, you could create a link: sudo mkdir -p /usr/share/vim/syntax/
#Syntax files for macvim mac os x
I'd expect Mac OS X "Snow Leopard" to follow a similar pattern, so why is the path different? What has changed in vim, have you compiled a newer version or replaced it?
Mac OS X 10.5.8 "Leopard" /usr/share/vim/vim70/syntax/syntax.vim OS X 10.8.3 "Mountain Lion" /usr/share/vim/vim73/syntax/syntax.vim Many new features have been added, like multi-level undo, syntax highlighting, command line history, on-line help, spell checking, filename completion, block operations, etc. If you take a closer look, though, it is quite surprising that vim tries to open /usr/share/vim/syntax/syntax.vim: I checked the path of syntax.vim on different OS X versions and this is what I got: Vim is an almost compatible version of the UNIX editor Vi. Which is valid (at the very least) for vim 7.0 through 7.3, as the file hasn't changed in years. " already was set manually (e.g., help buffers). " Always do the syntaxset autocommands, for buffers where the 'filetype' " If the filetype wasn't detected yet, do that now. " Execute the syntax autocommands for the each buffer. " This makes the syntax automatically set when the file type is detected.Īu! FileType * exe "set syntax=". " Set up the connection between FileType and Syntax autocommands. " Load the FileType autocommands if not done yet. " Load the Syntax autocommands and set the default methods for highlighting. If exists("syntax_on") || exists("syntax_manual") " If Syntax highlighting appears to be on already, turn it off first, so that To later upgrade MacVim, run: sudo port selfupdate & sudo port upgrade MacVim. To see what files were installed by MacVim, run: port contents MacVim. That's how I realized that 'something' happened in upstream vim somewhere between patchsets. Next (but still not current) release with - no colors in Plug 'foobar' line for 'foobar' string.
#Syntax files for macvim install
" It installs the autocommands and starts highlighting for all buffers. To install MacVim, run the following command in macOS terminal (Applications->Utilities->Terminal) sudo port install MacVim. Later I've tried older release of MacVim with vim 8.2.539 and boom - looked like in my 'builtin' /usr/bin/vim, 8.2.850. A quick and dirty fix is to create the missing file with contents: " Vim syntax support file