Last active
September 18, 2019 16:16
-
-
Save mipmip/78153fcf8ae78afac0e4bb9389e59ab1 to your computer and use it in GitHub Desktop.
Vim mapping: saveas with proposed new filename populated in Ex-mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! s:saveas() | |
return ":saveas ". expand("%:r") . "_COPY." .expand("%:e") | |
endfunction | |
nnoremap <expr> <leader>sa <SID>saveas() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment