Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where should I put a .vim plugin?

Tags:

vi

this is the file: https://github.com/mozilla/rust/blob/master/src/etc/vim/syntax/rust.vim

this is for rust [a new language from Mozilla] syntax highlight(?) in VIM They provided 3 .vim files actually. where should I put them?

like image 300
Anders Lind Avatar asked Feb 01 '12 06:02

Anders Lind


2 Answers

GNU Linux (see Greg's answer): ~/.vim/syntax/rust.vim

Windows: C:\Program Files (x86)\Vim\vimfiles\syntax

like image 20
Matt R Avatar answered Oct 24 '22 20:10

Matt R


That looks like a syntax highlight file, so put it in

~/.vim/syntax/rust.vim

Create the directories as necessary. See the Vim documentation on :syn-files for more information.

like image 122
Greg Hewgill Avatar answered Oct 24 '22 21:10

Greg Hewgill