On 06/15/2018 07:08 AM, Alexander Monakov wrote:
> On Tue, 12 Jun 2018, Martin Liška wrote:
> 
>> This is equivalent of gimple.vim file. I'm aware of not full coverage of RTL
>> instructions, but hope it's a good start point.
> 
> I think this is nice to have and hope you'll get an OK for both this and
> the gimple.vim patch.

Hi.

Well, it's sitting in contrib, thus I'm planning to install that eventually
if there will be not response.


> 
> One nit-pick: unlike "GIMPLE", "RTL" is not a GCC-specific abbreviation.
> I'd prefer to use gcc-rtl.vim to avoid possible clashes.

Good idea, let me fix that.

> 
> Do you use it quite literally as described in gimple.vim, i.e. with
> editing ftdetect.vim by hand? I made a plugin for gcc/match.pd syntax
> highlighting, and I opted to use a common plugin file layout for it.
> That way, I only need to symlink the plugin directory under .vim/bundle.

I use it as follows:

vimrc:

au BufRead,BufNewFile *.[0-2][0-9][0-9][ti].* set filetype=gimple
au BufRead,BufNewFile *.[2-3][0-9][0-9]r.* set filetype=rtl

Then I copied these .vim files into syntax folder. I know it's not ideal.
For all other vim extensions I use plugin system (Dein) that installs plugins
from github repos.

So you prefer to come up with a plugin folder with the *.vim files?

Thanks,
Martin

> 
> Thanks.
> Alexander
> 

Reply via email to