---
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
--
--
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.