aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-09-19 05:18:52 +0200
committerTeddy Wing2017-09-19 05:18:52 +0200
commit5b5d9d0cecf3be595737b40ec5dba63b690f53c8 (patch)
tree2d9c54999e40d80955f3a49eef1c67f38c35c2a8
parentb5b423cd084be4b04e55acdd919f2a43448ff60b (diff)
downloaddotvim-5b5d9d0cecf3be595737b40ec5dba63b690f53c8.tar.bz2
vimrc: Add <leader>mk mapping to save Vim session
I had previously defined this command as 'af83'-project-specific. Now I've become used to it and want to use it everywhere, so promote it to a global mapping.
-rw-r--r--projects/af83.vim3
-rw-r--r--vimrc4
2 files changed, 4 insertions, 3 deletions
diff --git a/projects/af83.vim b/projects/af83.vim
index 2617c2e..75544a7 100644
--- a/projects/af83.vim
+++ b/projects/af83.vim
@@ -6,8 +6,5 @@ augroup af83
\ let g:pick_command = "ag -l -a -p './.agignore' -g ''"
autocmd BufRead,BufEnter $VIM_PROJECT_PATH_AF83/*
- \ nnoremap <buffer> <leader>mk :mksession! vimsession<cr>
-
- autocmd BufRead,BufEnter $VIM_PROJECT_PATH_AF83/*
\ let g:rspec_command = "!bundle exec spring rspec {spec}"
augroup END
diff --git a/vimrc b/vimrc
index b511318..d61defe 100644
--- a/vimrc
+++ b/vimrc
@@ -378,6 +378,7 @@
" 2017.09.19:
" * Set 'backspace=2' because that doesn't get set by default on some
" Vims.
+" * Add <leader>mk to save a Vim session file.
"
@@ -739,6 +740,9 @@ nnoremap <leader>gp :!git log -p -- %<cr>
" Copy the current file path into the OS X pasteboard
nnoremap <leader>cf :call system('pbcopy', expand('%'))<cr>
+" Save the current session to a file
+nnoremap <leader>mk :mksession! vimsession<cr>
+
" Project Settings