Skip to content

expand %FILE% improperly #116

@DreamAndDead

Description

@DreamAndDead

I touch a .vim-template:.md template file and want to expand %FILE% in file start, then I touch a new md file

:new 2.66.md

I found %FILIE% expanded to 2 instead of 2.66

I check the source

https://github.com/aperezdc/vim-template/blob/master/plugin/templates.vim#L344-L367

why L344 code use :r 3 times

let l:filen      = expand("%:t:r:r:r")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions