From ede78da06aea317a9ac7eb038b74e7d9adbb2c40 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Sat, 9 Mar 2024 20:38:45 -0800 Subject: [PATCH] [vim] Add :Q as :q like :W/:w --- .vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index c07d3ce..33ae6e0 100644 --- a/.vimrc +++ b/.vimrc @@ -657,11 +657,15 @@ set statusline+=\ %P "percent through file " ** SMALL FUNCTIONS THAT DON'T FIT AS PLUGINS *** -" Add capital W so I can be lazy about my shift key +" Add capital W and Q so I can be lazy about my shift key if !exists(":W") command W :w endif +if !exists(":Q") + command Q :q +endif + " CD to the path of the file I'm editing. command Cdf :cd %:p:h