Here is user-defined RENAME command that seems to work:

    :command! -narg=1 RENAME if rename(expand('%'),<q-args>)==0|file
  <args>|else| echo "Renaming error"| endif

Thanks! I'll give it a try...


The :rename command is in the todo list. (':help todo', search for :rename).

Oh, i see, kudos to developers for their hard work!

--
Best regards, Pavel

Reply via email to