From 8b6e283089d995b39a847c59cd12c4623995d03d Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 7 Jan 2023 03:50:15 -0500 Subject: [PATCH] vim: Add yomichan-like command with tango Note that although this was great from a proof-of-concept point of view, it's significantly easier and more effective to simply use the yomichan add-on in a web browser like firefox. --- vim/.vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index d243e1f8..a2fa5589 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -214,6 +214,9 @@ autocmd FileType jsx nnoremap b :call JsxBeautify() autocmd FileType html nnoremap b :call HtmlBeautify() autocmd FileType css nnoremap b :call CSSBeautify() +" Experimental yomichan-like command with tango +vnoremap y:silent !notify-send -t 4000 "成果" "$(tango '0')": + " Easily enter 'zen mode' with Goyo and Pencil (Note: Goyo resets the color scheme) nnoremap 2 :PencilSoft:Goyo:hi vertsplit ctermfg=0 ctermbg=none