l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Aug 30 12:34

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] debian/vim question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] debian/vim question

On Fri, Aug 30, 2002 at 11:21:31AM -0700, Peter Jay Salzman wrote:
> i want to play around with vim syntax files.  however, i don't want to
> start mucking around in /usr.  i'd have to place a file in
> /usr/share/vim/vim61 and edit a file /usr/share/vim/vim61/filetype.vim.
> suggestions on the best way to proceed?

# MAKING YOUR OWN SYNTAX FILES                            *mysyntaxfile*
# When you create your own syntax files, and you want to have Vim use these
# automatically with ":syntax enable", do this:
# 1. Create your user runtime directory.  You would normally use the first item
#    of the 'runtimepath' option.  Example for Unix: >
#         mkdir ~/.vim
# 2. Create a directory in there called "syntax".  For Unix: >
#         mkdir ~/.vim/syntax
# 3. Write the Vim syntax file.  Or download one from the internet.  Then write
#    it in your syntax directory.  For example, for the "mine" syntax: > 
#         :w ~/.vim/syntax/mine.vim 
# Now you can start using your syntax file manually: >
#         :set syntax=mine
# You don't have to exit Vim to use this.

  Is that what you are looking for?


  more info found via starting vim, ":help syntax".

  On checking strace of this event I can clearly see vim read in the
~/.vim/syntax/c.vim file then read in the system provided one ... however
after making some changes to my local copy I'm certain the local one
is overriding the system one.
  It seems to be wasteful to load both... and even then why doesn't seem
like it should load the system files second.
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.