From 282cd406e02a54c978003b86977559842434cd93 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 28 Jun 2022 19:48:15 +0200 Subject: vimrc: Add `m,` mapping to save session I've been testing this binding as a candidate for a potential replacement of my existing `mk` mapping. It's easier on the hands than the existing one. Since `,` doesn't seem to be a valid mark location, and it's right next to the "m" key on a Qwerty keyboard, this seemed like an ideal combination of keys for a relatively frequent action. --- vimrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 914ad40..5527518 100644 --- a/vimrc +++ b/vimrc @@ -493,6 +493,9 @@ " * Add `yp` mapping to paste from the "0 register. " * Disable context.vim by default. " +" 2022.06.23: +" * Add `m,` mapping to save a Vim session file. +" " Pathogen @@ -912,6 +915,7 @@ inoremap =expand('%:t:r') " Save the current session to a file nnoremap mk :mksession! vimsession +nnoremap m, :mksession! vimsession " Toggle spell checking nnoremap sp :setlocal spell! spell? -- cgit v1.2.3