diff options
author | Teddy Wing | 2022-06-28 19:48:15 +0200 |
---|---|---|
committer | Teddy Wing | 2022-06-28 21:24:54 +0200 |
commit | 282cd406e02a54c978003b86977559842434cd93 (patch) | |
tree | c090fafde896491f6fbe6ecef3ca34b604c04d84 | |
parent | e3ec82e56b08d6d0fc9098eb93dcaf121f536904 (diff) | |
download | dotvim-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.
-rw-r--r-- | vimrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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> |