↧
Answer by Stéphane Chazelas for Can a file be closed in vim without exiting?
That would be :bd. :help :bd in vim 8.2 gives::[N]bd[elete][!] *:bd* *:bdel* *:bdelete* *E516*:bd[elete][!] [N] Unload buffer [N] (default: current buffer) and delete it from the buffer list. If the...
View ArticleCan a file be closed in vim without exiting?
I have a file open in vim, and I have finished my edits. Is there a way for me to close the file so that the vim screen is blank?
View ArticleAnswer by D. Ben Knoble for Can a file be closed in vim without exiting?
Let me add a few more ideas and try to address some questions of terminology.Vim doesn't manipulate files directly very often. Commands like :edit read a file into a buffer. The buffer and file share a...
View Article