From a23159e50dc1301104bb2e4bb3795fbd09a94f54 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 3 Sep 2025 13:07:35 +0200 Subject: [PATCH] vim:keys: Merge fzf mappings --- .config/vim/vimrc.d/40-keys.vim | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index 9718a8d..f5ee752 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -102,6 +102,14 @@ if (get(g:, 'loaded_fzf')) nmap t Tags nmap bt BTags endif + + " git files that `git status` lists + nmap gf GFiles? + " 'git log (log?)' and 'git log buffer ' + map gll Commits + map glb BCommits + " TODO: glb should restrict the log to all staged files when called + " in .git/COMMIT_EDITMSG, maybe with an ftplugin? endif " Search for selected text. @@ -195,15 +203,6 @@ if exists('g:loaded_gitgutter') nmap ]h (GitGutterNextHunk)zz endif -if (get(g:, 'loaded_fzf')) - " git files that `git status` lists - nmap gf GFiles? - " 'git log (log?)' and 'git log buffer ' - map gll Commits - map glb BCommits - " TODO: glb should restrict the log to all staged files when called - " in .git/COMMIT_EDITMSG, maybe with an ftplugin? -endif " Y should behave like D & C does nnoremap Y y$