[m-rev.] Added vim directory to distribution
David Overton
dmo at cs.mu.OZ.AU
Wed Mar 13 20:41:22 AEDT 2002
On Wed, Mar 13, 2002 at 06:48:04PM +1100, Ralph Becket wrote:
> Estimated hours taken: 2
> Branches: main
>
> Files and instructions for adding Mercury syntax highlighting under Vim.
>
> NEWS:
> Mention the new directory.
>
> vim:
> vim/README:
> vim/mercury.vim:
> vim/mercuryhdr.sh:
> vim/myfiletypes.vim:
> vim/mysyntax.vim:
> New directory added and populated.
>
>
> Index: README
> ===================================================================
> RCS file: README
> diff -N README
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ README 13 Mar 2002 06:56:57 -0000
> @@ -0,0 +1,31 @@
> +To use the Mercury syntax highlighting file presented here for Vim do
> +the following (if you have a slightly different vim set-up you will
> +have to change the directory and file names listed below as
> +appropriate and possibly edit the `mercury.vim' file.)
The process of installing new filetypes and syntax definitions has
changed (and simplified) for Vim 6.0. Basically, what you should do is:
1. Create directory `~/.vim/' (note the `.').
2. Place the contents of myfiletypes.vim into
`~/.vim/filetype.vim'.
3. Move `mercury.vim' to `~/.vim/syntax/mercury.vim'.
4. The parts of `mercury.vim' that define new commands, etc,
rather than syntax should really be in
`~/.vim/ftplugin/mercury.vim' so move them there.
5. Make sure your `~/.vimrc' contains
filetype on
filetype plugin on
syntax on
`mysyntax.vim' is not required.
It would be a good idea to add this documentation to the README file.
--
David Overton Computer Science and Software Engineering
PhD Student The University of Melbourne +61 3 8344 9159
Research Fellow Monash University (Clayton) +61 3 9905 5779
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list