Common parts of ropemacs and ropevim.