1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-25 20:47:45 +01:00

nvim: added ZQ back with safety confirmation

This commit is contained in:
tiyn 2024-04-01 03:40:29 +02:00
parent 9f70da80e3
commit ef8e6556ab

View File

@ -34,6 +34,7 @@ m.inoremap("<F12>", '<NOP>')
m.nnoremap("<F12>", '<NOP>')
-- shortcuts for quitting
m.nnoremap("ZQ", ':conf q<CR>', 'Exit: quit current buffer')
m.nnoremap("ZZ", ':x<CR>', 'Exit: write and quit current buffer')
m.nnoremap("ZA", ':conf xa<CR>', 'Exit: write and quit all buffers')