Jakson Aquino wrote:

> When the file extension is either .r or .R, Vim looks for some clues
> that may allow the identification of the script as R, Rebol or Rexx.
> If no clue is found, filetype.vim assumes that the file is a Rexx
> script. However, I wonder whether this default could be changed to R
> because, at least in Linux systems, it seems that there are far more R
> users than Rexx users:
> 
> http://qa.debian.org/popcon.php?package=regina-rexx
> http://qa.debian.org/popcon.php?package=r-base

I don't know how to read these graphs.  Also, it's Debian only, suppose
the picture is very different for mac or MS-Windows users?

We could add a g:filetype_r variable to allow users to change the
fallback:

  " Nothing recognized, use user default or assume Rexx
  if exists("g:filetype_r")
    exe "setf " . g:filetype_r
  else
    setf rexx
  endif

-- 
Back up my hard drive?  I can't find the reverse switch!

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

Raspunde prin e-mail lui