Mark Oteiza wrote:
> ---
> All the syntax files shipped with nano use the .nanorc file extension
>
> $ ls /usr/share/nano
> asm.nanorc fortran.nanorc lua.nanorc patch.nanorc
> spec.nanorc
> awk.nanorc gentoo.nanorc makefile.nanorc perl.nanorc
> tcl.nanorc
> c.nanorc go.nanorc man.nanorc php.nanorc
> tex.nanorc
> changelog.nanorc groff.nanorc mgp.nanorc po.nanorc
> texinfo.nanorc
> cmake.nanorc html.nanorc mutt.nanorc pov.nanorc
> xml.nanorc
> css.nanorc java.nanorc nanorc.nanorc python.nanorc
> debian.nanorc javascript.nanorc objc.nanorc ruby.nanorc
> default.nanorc json.nanorc ocaml.nanorc sh.nanorc
>
> so, for reading these (and writing own syntax files following this
> trend), the .nanorc file extension ought to be recognized.
>
> diff --git a/runtime/filetype.vim b/runtime/filetype.vim
> --- a/runtime/filetype.vim
> +++ b/runtime/filetype.vim
> @@ -1295,7 +1295,7 @@
> au BufNewFile,BufRead Mutt{ng,}rc setf muttrc
>
> " Nano
> -au BufNewFile,BufRead */etc/nanorc,.nanorc setf nanorc
> +au BufNewFile,BufRead */etc/nanorc,*.nanorc setf nanorc
>
> " Nastran input/DMAP
> "au BufNewFile,BufRead *.dat setf nastran
Thanks, I'll include it.
--
Another bucket of what can only be described as human ordure hits ARTHUR.
ARTHUR: ... Right! (to the KNIGHTS) That settles it!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.