Re: using command gf or map to other key for matlab function

2007-04-04 Thread Gary Johnson
On 2007-04-04, frank wang <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am a lot of matlab function files. the function name is the same as
> file name without the file extension .m. In the Vim, if I use command
> gf trying to find the file under the cursor, it could not find it
> since it missed the extension .m. Could someone help me to create a
> map to solve this problem?

You don't even need a map to solve this one.  Just put this setting 
in your .vimrc or _vimrc:

set suffixesadd+=.m

See

:help suffixesadd

Regards,
Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Mobile Broadband Division
 | Spokane, Washington, USA


using command gf or map to other key for matlab function

2007-04-04 Thread frank wang

Hi,

I am a lot of matlab function files. the function name is the same as
file name without the file extension .m. In the Vim, if I use command
gf trying to find the file under the cursor, it could not find it
since it missed the extension .m. Could someone help me to create a
map to solve this problem?

Thanks

Frank