[nvim] Recognize :x<cr> in edit mode

Along with pre-existing :w<cr> and :q<cr>
This commit is contained in:
Midgard 2024-07-03 15:28:16 +02:00
parent b400763a4b
commit bbf8d18d09
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -181,6 +181,7 @@ command W :execute ':silent w !sudo tee % > /dev/null' | :edit!
noremap <leader>m ` noremap <leader>m `
inoremap :w<cr> <esc>:w<cr> inoremap :w<cr> <esc>:w<cr>
inoremap :x<cr> <esc>:x<cr>
inoremap :q<cr> <esc>:q<cr> inoremap :q<cr> <esc>:q<cr>
" Consistent aliases to jump to first non-whitespace character and last character " Consistent aliases to jump to first non-whitespace character and last character