This may be useful to any VIM users on the list (but you probably already thought of it). I do a fair ammount of copying and pasting from the ipython history into an existing file. This mapping: :map <C-S-i> :%s/^\d\+:\s\+//<cr> removes the #:space from the beginning of those lines. Ryan