dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 4e7fc8e4a0aab84dc97417dae6c759c17d24b611
parent 667e6211c410b20684e8fc9d625f86b71cdab660
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Thu, 21 Dec 2017 15:18:59 -0500

Open vim+fzf in History mode with Ctrl-o

Diffstat:
Mlinks/.zshrc | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/links/.zshrc b/links/.zshrc @@ -88,6 +88,14 @@ _editor_fuzzy_find() { zle -N _editor_fuzzy_find bindkey '^f' _editor_fuzzy_find +# launch vim+fzf for recent files with Ctrl-o +_editor_fuzzy_history() { + BUFFER="vim -c ':History'" + zle accept-line +} +zle -N _editor_fuzzy_history +bindkey '^o' _editor_fuzzy_history + # launch vim+fzf+rg with Ctrl-g _editor_fuzzy_grep() { BUFFER="vim -c ':Rg'"