aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-16 20:45:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-16 20:45:26 +1200
commit8e32154a72d26673913d7a679d8c893ea44d682b (patch)
tree455f7c4ff44ef58fa7224e0e60c2c37d819b263d
parentAdd a rough normal mode map to repeat with bang (diff)
downloaddotfiles-8e32154a72d26673913d7a679d8c893ea44d682b.tar.gz
dotfiles-8e32154a72d26673913d7a679d8c893ea44d682b.zip
Add <Plug>SelectOldFiles mapping
-rw-r--r--vim/plugin/select_old_files.vim2
-rw-r--r--vim/vimrc3
2 files changed, 3 insertions, 2 deletions
diff --git a/vim/plugin/select_old_files.vim b/vim/plugin/select_old_files.vim
index dbfbd64c..5d880404 100644
--- a/vim/plugin/select_old_files.vim
+++ b/vim/plugin/select_old_files.vim
@@ -4,3 +4,5 @@ endif
let loaded_select_old_files = 1
command! -bar SelectOldFiles
\ call select_old_files#()
+nnoremap <Plug>SelectOldFiles
+ \ :<C-U>SelectOldFiles<CR>
diff --git a/vim/vimrc b/vim/vimrc
index 9f4d68e5..7f2d9ae8 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1470,8 +1470,7 @@ nnoremap <Leader>j
" <Leader>,\ to jump back to the last remembered position in that file, since
" by definition viminfo remembers that mark, too.
"
-nnoremap <Leader>o
- \ :<C-U>SelectOldFiles<CR>
+nmap <Leader>o <Plug>SelectOldFiles
" This group defines mappings for filtering and batch operations to clean up
" buffer text. All of these mappings use commands from my custom plugins: