Tim Chase wrote: > :%d > :r % > :1d > > which (1) deletes all the content, (2) reads in the content > from disk below the one blank line remaining, and then (3) > deletes the spurious blank line. > > The above could be wrapped in a function/command/mapping and > then used in place of ":e!" to "reload" the file in the same setup. > Your undo should then walk back beyond this "reload".
That's exactly what this tip does: http://vim.wikia.com/wiki/Reload_file_without_losing_undo_history John --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
