Showing posts with label ignore. Show all posts
Showing posts with label ignore. Show all posts

Tuesday, January 27, 2009

Ignore the Modified Flag

There are times when I'm working on a temporary buffer, and I want to do something like a `gf' (go to file), but Vim insists that the buffer is modified and refuses to abandon the file. You can get around this by telling Vim the file isn't modified.

:set hidden

This effectively makes Vim treat the file like it's already saved. Please avoid using this for any production files as it can make Vim think that the file on disk is different than it actually is.