coder1.com

  • home
  • drupal articles
  • contact
Home

VI Editor: Revert to last save

Mike Milano — July 6, 2008 - 6:40pm

Use the following command to revert to the last saved version of the current file in VI: (make sure you are not in insert mode)

:e!

  • vi
  • vim

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <img> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h3> <h4> <h5> <h6> <h7>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].

More information about formatting options

Poll

Have you used any NoSQL Databases?:

User login

  • Request new password

Navigation

  • Recent posts

  • home
  • drupal articles
  • contact