To keep the extension use: :inoremap \fn =expand("%:t") To insert the absolute path of the directory the file is in use: :inoremap \fn =expand("%:p:h") To insert the relative path of the directory the file is in use: :inoremap \fn =expand("%:h")
Entity | Attribute | Value | Rank |
---|