vim: Add keybind to close buffer and quickly grep

master
Chan Wen Xu 2021-12-22 23:08:08 +07:00
parent 9486d5a52e
commit ae3f62b6a8
Signed by: chanbakjsd
GPG Key ID: 7E9A74B1B07A7558
2 changed files with 5 additions and 3 deletions

@ -8,6 +8,7 @@
home.packages = with pkgs; [
discord-canary
bitwarden
ripgrep
zoom-us # Class Requirement
];

@ -59,13 +59,14 @@ autocmd BufRead,BufNewFile *.svelte set filetype=html
noremap // :nohls<CR>
inoremap jj <Esc>
" (q)uit, (w)ith path edit, (e)dit, (r)eload
noremap ,q :wqa<CR>
noremap ,w :edit<SPACE>
noremap ,e :Files<CR>
noremap ,r :so ~/.vimrc<CR>
" (h)elp
noremap ,f :CocCommand explorer --toggle<CR>
noremap ,t :CocCommand explorer --toggle<CR>
noremap ,d :bp<CR>:bd #<CR>
noremap ,f :Rg<CR>
noremap ,h :help<SPACE>
noremap <C-j> :bn<CR>