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")
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
Version |
|
dbkwik:vim/property/wikiPageUsesTemplate | |
Previous |
|
Category |
|
Author |
|
Complexity |
|
Created |
|
ID |
|
NEXT |
|
Rating |
|
abstract |
|