aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2022-06-28 19:48:15 +0200
committerTeddy Wing2022-06-28 21:24:54 +0200
commit282cd406e02a54c978003b86977559842434cd93 (patch)
treec090fafde896491f6fbe6ecef3ca34b604c04d84 /vimrc
parente3ec82e56b08d6d0fc9098eb93dcaf121f536904 (diff)
downloaddotvim-282cd406e02a54c978003b86977559842434cd93.tar.bz2
vimrc: Add `m,` mapping to save session
I've been testing this binding as a candidate for a potential replacement of my existing `<leader>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.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc4
1 files changed, 4 insertions, 0 deletions
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 <C-r><C-f> <C-r>=expand('%:t:r')<CR>
" Save the current session to a file
nnoremap <leader>mk :mksession! vimsession<cr>
+nnoremap m, :mksession! vimsession<cr>
" Toggle spell checking
nnoremap <leader>sp :setlocal spell! spell?<cr>