Vim: using <afile> in autogroup command
My goal is to highlight the <basename>.<extension>.erb , since I would like to highlight the <basename>.<extension> files.
As a first pass, I'm fine with <basename>.<filetype>.erb , which I tried to do with
au BufNewFile,BufRead *.erb setf <afile>:r:e But this does not seem to work. What should I do?
+4
2 answers