From ae3f62b6a8cd4bb5f7144501eb38e505e33d03db Mon Sep 17 00:00:00 2001 From: Chan Wen Xu Date: Wed, 22 Dec 2021 23:08:08 +0800 Subject: [PATCH] vim: Add keybind to close buffer and quickly grep --- home/home.nix | 1 + home/vimrc | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/home/home.nix b/home/home.nix index ecf68c1..0dd79ca 100644 --- a/home/home.nix +++ b/home/home.nix @@ -8,6 +8,7 @@ home.packages = with pkgs; [ discord-canary bitwarden + ripgrep zoom-us # Class Requirement ]; diff --git a/home/vimrc b/home/vimrc index 81d757b..75c1f3d 100644 --- a/home/vimrc +++ b/home/vimrc @@ -59,13 +59,14 @@ autocmd BufRead,BufNewFile *.svelte set filetype=html noremap // :nohls inoremap jj -" (q)uit, (w)ith path edit, (e)dit, (r)eload noremap ,q :wqa noremap ,w :edit noremap ,e :Files noremap ,r :so ~/.vimrc -" (h)elp -noremap ,f :CocCommand explorer --toggle +noremap ,t :CocCommand explorer --toggle + +noremap ,d :bp:bd # +noremap ,f :Rg noremap ,h :help noremap :bn