" when called explicitly, changelog.vim sets \o as a mapping to open a " pre-existing ChangeLog file in the current directory " Fix for b:undo_ftplugin not being set if !exists("b:undo_ftplugin") let b:undo_ftplugin = "" endif runtime ftplugin/changelog.vim " Fix for b:undo_ftplugin being set to `" | silent! exe 'nunmap o"` let uftp_matches = matchstrpos(b:undo_ftplugin, "^ *| *") "# echo uftp_matches if uftp_matches[1] == 0 " Replace with contents of the string after the command separator let b:undo_ftplugin = b:undo_ftplugin[uftp_matches[2]:] endif "# let b:undo_ftplugin = ""