开发者

Setting syntax in Gvim for Assembly

开发者 https://www.devze.com 2023-01-26 19:47 出处:网络
How can I automatically set the syntax of a certain file extension same as that of an existing language(say Perl) in Gvim ?

How can I automatically set the syntax of a certain file extension same as that of an existing language(say Perl) in Gvim ?

I know that I can do this u开发者_如何转开发sing

au BufNewFile,BufRead *.pl setf perl

I want to do it for assembly now..

seems like this is not working.. au BufNewFile,BufRead *.pl setf assembly

for IA assembly


You could try setf asm

To know what syntaxes you have, list $VIMRUNTIME/syntax.

0

精彩评论

暂无评论...
验证码 换一张
取 消