[vim] Add :Q as :q like :W/:w

This commit is contained in:
Barak Michener 2024-03-09 20:38:45 -08:00
parent bf1dbe95e9
commit ede78da06a

6
.vimrc
View file

@ -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