From d876b7a1bff53802bd5a797c8ee64ea8177aec6a Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Fri, 1 Feb 2019 13:54:47 -0600 Subject: [PATCH] Add Normal Mode Binding To Just Quit as a vim til --- README.md | 3 ++- vim/normal-mode-binding-to-just-quit.md | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 vim/normal-mode-binding-to-just-quit.md diff --git a/README.md b/README.md index f516a76..fe77a80 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_752 TILs and counting..._ +_753 TILs and counting..._ --- @@ -798,6 +798,7 @@ _752 TILs and counting..._ - [Navigating By Blank Lines](vim/navigating-by-blank-lines.md) - [NETRW Listing Styles](vim/netrw-listing-styles.md) - [Next Modified Buffer](vim/next-modified-buffer.md) +- [Normal Node Binding To Just Quit](vim/normal-mode-binding-to-just-quit.md) - [Open A Tag In A Split Window](vim/open-a-tag-in-a-split-window.md) - [Open an Unnamed Buffer](vim/open-an-unnamed-buffer.md) - [Open Routes File With vim-rails](vim/open-routes-file-with-vim-rails.md) diff --git a/vim/normal-mode-binding-to-just-quit.md b/vim/normal-mode-binding-to-just-quit.md new file mode 100644 index 0000000..e06e2bc --- /dev/null +++ b/vim/normal-mode-binding-to-just-quit.md @@ -0,0 +1,8 @@ +# Normal Mode Binding To Just Quit + +I'm already familiar with the normal mode binding to write and quit -- `ZZ`. +It turns out there is an equivalent binding to quit without writing. Hit +`ZQ` and Vim will quit the current window disregarding any unsaved changes. +This behaves in the same way as if you had executed the `:q!` command. + +See `:help ZQ`.