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