From 6f4641ed3ffb3d49f4b9e01dc1625837454b0ee3 Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 6 Jan 2022 20:42:11 -0500 Subject: .vimrc: Map search for file with word under cursor --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index c956b9d..9312081 100644 --- a/.vimrc +++ b/.vimrc @@ -133,6 +133,9 @@ nmap dm :exe ':term ++close fzf-man ' . expand('') nmap di :exe ':term ++close fzf-doc ' . expand('') nmap dt :exe ':term dict -h localhost -d dict-moby-thesaurus-latest ' . expand('') +" Search for file containing word under cursor +nmap ag :Ag + " View function documentation nmap dp :call fzf#run({'options': ['--preview', 'echo doc {} \| psysh \| fold -s -w 80'], 'source': "psysh-doc", 'sink': ':term psysh-doc', 'down': '50%'}) -- cgit v1.2.3