On Tue, 2008-12-02 at 10:28 +0100, Benct Philip Jonsson wrote:
> > From: Benct Philip Jonsson, Mon, December 01,
> > 2008 5:37 am
> > 
> > > > 3. How can I make Mason syntax highlighting be
> > > > automatically choosen for files with an
> > > > .html ending?
> > 
> > You can override Vim's defaults with a file
> > modeline.
> 
> What should it look like? I'm a newbie, I'm
> afraid...

For HTML, put this at the bottom of the file:

<!-- vim:filetype=mason
-->

Or you can do this at the command line (Ctrl+L):

  :set filetype=mason


> > You can also force your own highlighting with
> > customized autocmds in your cream-user.
> 
> I tried putting
> 
> au! Bufread,BufNewFile *.html    set filetype=mason
> 
> into ~/.cream/cream-user.vim, but it doesn't seem
> to do anything.
> 
> Also I downloaded some syntax definitions for
> mediawiki and pandoc. Where should I put the
> files and what should I put it cream-user to
> invoke them?

These are pure Vim customizations, you don't need to edit Cream at
all. Just drop your syntax customizations into:

  ~/.vim/syntax/

maybe called "mason.vim"?


> > > > 6. Can I run html tidy on an open file from
> > > > within Cream?
> > 
> > You'll need to write a little Vimscript. If
> > you can figure out what to type on the
> > commandline, putting it in a menu item or
> > keystroke is simple.
> 
> Can you give an example? Basically what I put on
> the commandline is
> 
> tidy [options] file.html

Try this at the command line:

  :!tidy [options] file.html

A shortcut substitution for the current file is:

  :!tidy [options] %

which may or may not work, depending on how Vim presents the buffer
name to the tidy program. You may also be prompted to re-load the file
if the external command changes it.

Does any of that help?

-- 
Steve Hall  [ digitect dancingpaper com ]
:: Cream... usability for Vim
::   http://cream.sourceforge.net


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
cream-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cream-general

Reply via email to