remove ending newline for editWithVim command