Friday, December 31, 2010

Re: Fortran Keywords Auto Capitalize

Thank you!
I think I can learn your experience.

于 2010/12/31 17:14, Francesc Salvat-Pujol 写道:
> On Fri, Dec 31 2010, at 00:04 +0800, PcX wrote:
>> Hi All,
>>
>> I want to use autocmd to auto capitalize the fortran keywords.
>> For example,
>> I used:
>> autocmd FileType fortran abbr write WRITE
>>
>> but there is a question here, if the keyword write is in one string,
>> it's also capitalized.
>> That is, write(*,*) "write" -> WRITE(*,*) "WRITE"
>>
>> But I only want to change it to the WRITE(*,*) "write".
>> Is there any solution for this?
>>
>> Thanks.
>>
>> --
>> Regards
>> PcX
>>
>> --
>> You received this message from the "vim_use" 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
> I have been using FORTRANcase.vim for a while. It basically capitalizes
> everything except strings. Check it out for inspiration (or use it
> directly):
>
> http://na-wiki.csc.kth.se/mediawiki/index.php/FORTRANcase.vim
>
> Regards,
>
> Cesc
>

--
Regards
PcX

--
You received this message from the "vim_use" 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

No comments:

Post a Comment