vim where to put syntax plugins

my home has a .viminfo file but no .vim directory so where am i supposed to put syntax plugins.

MacBook Pro, Mac OS X (10.7.2)

Posted on Mar 20, 2012 1:39 PM

Reply
3 replies

Oct 1, 2017 5:57 PM in response to driprado

I'm not sure what you are asking.


Anything you put into your own mine.vim syntax file, if stored in the correct location will be loaded automatically by Vim when you enable syntax coloring via the ":syntax enable" command, which you would normally put in your $HOME/.vimrc file.


I have a correction for the original reply. Your own personal syntax files should be put into

mkdir -p $HOME/.vim/syntax

Vim might find the files in $HOME/.vim, but the ":help syntax" says they should be put in $HOME/.vim/syntax


And your .vimrc file should include

syntax enable


If this does not help, could you please provide more information about what you really want.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

vim where to put syntax plugins

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.